Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Renderer

Hierarchy

Index

Constructors

constructor

Properties

H

H: number = 0

W

W: number = 0

animated

animated: boolean = false

buffers

buffers: Buffers = new Buffers()

cache

cache: {}

Type declaration

camera

camera: OrbitCamera = new OrbitCamera()

defaultMesh

defaultMesh: string

dirty

dirty: boolean = true

doubleSided

doubleSided: boolean

drawFunc_

drawFunc_: (deltaTime: number) => void

Type declaration

    • (deltaTime: number): void
    • Parameters

      • deltaTime: number

      Returns void

fragmentString

fragmentString: string

geometry

geometry: Geometry

gl

gl: WebGLRenderingContext | WebGL2RenderingContext

mesh

mesh: string

mode

modelViewMatrix

modelViewMatrix: mat4

mouse

mouse: Vector2 = new Vector2()

normalMatrix

normalMatrix: mat4

program

program: WebGLProgram

projectionMatrix

projectionMatrix: mat4

radians

radians: number = 0

textureList

textureList: ITextureInput[] = []

textures

textures: Textures = new Textures()

timer

uniforms

uniforms: Uniforms = new Uniforms()

updateUniformCamera_

updateUniformCamera_: () => void

Type declaration

    • (): void
    • Returns void

updateUniformDate_

updateUniformDate_: () => void

Type declaration

    • (): void
    • Returns void

updateUniformDelta_

updateUniformDelta_: (timer: CanvasTimer) => void

Type declaration

updateUniformMesh_

updateUniformMesh_: () => void

Type declaration

    • (): void
    • Returns void

updateUniformMouse_

updateUniformMouse_: () => void

Type declaration

    • (): void
    • Returns void

updateUniformTime_

updateUniformTime_: (timer: CanvasTimer) => void

Type declaration

vertexBuffers

vertexBuffers: ContextVertexBuffers

vertexString

vertexString: string

workpath

workpath: string

Methods

Protected createGeometry_

  • createGeometry_(): void

Protected createUniforms_

  • createUniforms_(): void

Protected create_

  • create_(): void

Protected drawArrays_

  • drawArrays_(deltaTime: number): void

logListeners

  • logListeners(): void

off

  • off(event: string, callback?: Function): this

on

  • on(event: string, callback: Function): this

Protected parseGeometry_

  • parseGeometry_(): void

Protected render

  • render(): void

setMesh

  • setMesh(mesh: string): void

setMode

subscribe

trigger

  • trigger(event: string, ...data: any[]): this

unsubscribe

unsubscribeAll

  • unsubscribeAll(): void

Protected updateModelViewMatrix_

  • updateModelViewMatrix_(deltaTime: number): mat4

Protected updateNormalMatrix_

  • updateNormalMatrix_(modelViewMatrix: mat4): mat4

Protected updateProjectionMatrix_

  • updateProjectionMatrix_(): mat4

Protected updateUniformCamera__

  • updateUniformCamera__(): void

Protected updateUniformDate__

  • updateUniformDate__(): void

Protected updateUniformDelta__

Protected updateUniformFlat__

  • updateUniformFlat__(): void

Protected updateUniformMesh__

  • updateUniformMesh__(): void

Protected updateUniformMouse__

  • updateUniformMouse__(): void

updateUniformNoop_

  • updateUniformNoop_(): void

Protected updateUniformTime__

Protected update_

  • update_(): void