Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KglAuto

Hierarchy

Index

Constructors

Properties

_resize?: Function | EventListener
alpha: boolean
ambientColor: Vec3 = ...
aspect: number = 1
cameraPosition: Vec3 = ...
cameraRotation: Vec2 = ...
canvasNativeHeight: number = 0
canvasNativeWidth: number = 0
clearedColor: Vec4
currentProgramId: number = -1
disableClear: boolean
effectList: EffectInstance[] = []
effects: {} = {}

Type declaration

extraFar: number = 0
eyeDirection: Vec3 = ...
far: number = 2000
fov: number = 50
framebuffers: {} = {}

Type declaration

hasCamera: boolean
hasLight: boolean
height: number = 0
indexProgram: number = -1
isAutoUpdateCameraPositionZ: boolean = false
isFullSize: boolean
isUpdateMatrix: boolean = false
lightDirection: Vec3 = ...
near: number = 0.1
onResize?: Function
pMatrix: Float32Array = ...
pixelRatio: number = 1
pixelRatioFixed: number
pixelRatioMax: number
premultipliedAlpha: boolean
programs: {} = {}

Type declaration

requestID: number = 0
root: ObjectGl
stencil: boolean
textureIndex: number = -1
textures: KglTexture[] = []
ticks: Function[] = []
vMatrix: Float32Array = ...
vpMatrix: Float32Array = ...
width: number = 0

Methods

  • _initResize(): void
  • Returns void

  • addTick(tick: Function): void
  • Parameters

    • tick: Function

    Returns void

  • bindFramebuffer(key?: null | string): void
  • clear(): void
  • createFramebuffer(key: string, width?: number, height?: number): void
  • Parameters

    • key: string
    • width: number = ...
    • height: number = ...

    Returns void

  • createFramebufferFloat(key: string, width: number, height?: number): void
  • destroy(): void
  • draw(): void
  • Returns void

  • resize(): void
  • resizeFramebuffer(key: string, width?: number, height?: number): void
  • Parameters

    • key: string
    • width: number = ...
    • height: number = ...

    Returns void

  • setIsUpdateMatrix(): void
  • setPixelRatio(): void
  • start(): void
  • Returns void

  • stop(): void
  • Returns void

  • unbindFramebuffer(): void
  • updateCamera(): void
  • updateLight(): void
  • updateMatrix(): void

Generated using TypeDoc