Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Drawable

Hierarchy

Index

Constructors

  • new Drawable(gl: WebGL2RenderingContext, vertexShaderSource: string, fragmentShaderSource: string, shaderDefines?: {}, name?: string): Drawable

Properties

#uniforms: Map<string, Uniform> = ...
_children: SceneNode[] = []
_visible: boolean = true
boundingBox: BoundingBox
gl: WebGL2RenderingContext
modelMatrix: mat4 = ...
name?: string
normalMatrix: mat4 = ...
parentNode: null | SceneNode = null
position: vec3 = ...
program: WebGLProgram
rotation: vec3 = ...
scale: vec3 = ...
shouldUpdate: boolean = true
uid: string = ...
uploadWorldMatrixToGPU: boolean = false
vao: WebGLVertexArrayObject
vertexCount: number
worldMatrix: mat4 = ...
WORLD_MATRIX_UNIFORM_NAME: string = 'u_worldMatrix'

Accessors

  • get levelIndex(): number
  • get visible(): boolean
  • set visible(v: boolean): void

Methods

  • destroy(): void
  • findChildByName(name: string): null | SceneNode
  • findParentByName(name: string): null | SceneNode
  • getUniform(name: string): null | Uniform
  • render(): void
  • setUniform(name: string, __namedParameters: UniformInfo): boolean
  • updateWorldMatrix(parentWorldMatrix?: null | mat4): Drawable

Generated using TypeDoc