Class vxlRenderEngine


Extends vxlEngine.
Voxelent default rendering engine

Constructor

vxlRenderEngine()
This is the default rendering engine. It contains all the low level GL code that makes possible efficient rendering in Voxelent
Author: Diego Cantor.

Methods

.allocate(scene)
Implements basic allocation of memory. Creates the WebGL buffers for the actor

Parameters:

Type Name Description
vxlScene scene

the scene to allocate memory for

.configure()
Configures the engine
.deallocate(scene)

Parameters:

Type Name Description
vxlScene scene

the scene to deallocate memory from

.disableOffscreen(target)
Sets up the offscreen rendering variant

Parameters:

Type Name Description
vxlRenderTarget target

the render target

.enableOffscreen(target)
Sets up the offscreen rendering variant

Parameters:

Type Name Description
vxlRenderTarget target

the render target

true\false .isOffscreenEnabled()
Returns true if the offscreen rendering does not have any target.

Returns:

{true\false}
.readOffscreenPixel(x, y)

Parameters:

Type Name Description
Object x

position to read in the offscreen buffer

Object y

position to read in the offscreen buffer

.render(scene)
Renders the actors one by one

Parameters:

Type Name Description
vxlScene scene

the scene to render