_RenderManager
Extends:
Manages the WebGL2 rendering of all renderable components in the scene. This manager is not intended to be referenced directly.
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
GL: * |
|
public |
|
|
public |
activeTextureIDs: *[] |
|
public |
|
|
public |
lastUpdate: * |
|
public |
|
|
public |
|
|
public |
|
|
public |
vao: * |
Method Summary
Public Methods | ||
public |
|
|
public |
registerTextRenderable(textRenderable: *, width: *, height: *) |
|
public |
start() Initial setup on GL rendering. |
|
public |
update() Update function for updating all renderable objects in each viewport in the current scene. |
Private Methods | ||
private |
_updateProgram(program: ProgramObject) Checks if the program for the next object to draw must be changed. |
|
private |
_updateTextures(textures: *) |
Inherited Summary
From class Manager | ||
public |
end() |
|
public |
pause() |
|
public |
start() |
|
public |
unpause() |
|
public |
update() |
Public Constructors
Public Members
public GL: * source
public activeTextureIDs: *[] source
public currentProgram: * source
public lastUpdate: * source
public positionAttributeLocation: * source
public texcoordAttributeLocation: * source
public texcoordBuffer: * source
public vao: * source
Public Methods
public forceUpdate() source
public registerTextRenderable(textRenderable: *, width: *, height: *) source
Params:
Name | Type | Attribute | Description |
textRenderable | * | ||
width | * | ||
height | * |
public update() source
Update function for updating all renderable objects in each viewport in the current scene.
Override:
Manager#updatePrivate Methods
private _updateProgram(program: ProgramObject) source
Checks if the program for the next object to draw must be changed. If it does, it will change WebGL programs.
Params:
Name | Type | Attribute | Description |
program | ProgramObject | A program object returned from ProgramManager.getProgram() |
private _updateTextures(textures: *) source
Params:
Name | Type | Attribute | Description |
textures | * |