Home Reference Source Test
import {_RenderManager} from 'seed-engine/src/manager/RenderManager.js'
private class | source

_RenderManager

You can directly use an instance of this class. RenderManager

Extends:

Manager → _RenderManager

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
public
public
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
public

update()

Public Constructors

public constructor() source

Override:

Manager#constructor

Public Members

public GL: * source

public RenderableTextIDCounter: number 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:

NameTypeAttributeDescription
textRenderable *
width *
height *

public start() source

Initial setup on GL rendering.

Override:

Manager#start

public update() source

Update function for updating all renderable objects in each viewport in the current scene.

Override:

Manager#update

Private 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:

NameTypeAttributeDescription
program ProgramObject

A program object returned from ProgramManager.getProgram()

private _updateTextures(textures: *) source

Params:

NameTypeAttributeDescription
textures *