renderWindow

vgl. renderWindow

new renderWindow(canvas) → {vgl.renderWindow}

Description:
  • Create a new instance of class renderWindow.

Source:
Parameters:
Name Type Description
canvas HTMLElement
Returns:
Type
vgl.renderWindow

Methods

activeRenderer() → {vgl.renderer}

Description:
  • Get active renderer of the the render window.

Source:
Returns:
Type
vgl.renderer

addRenderer(ren) → {boolean}

Description:
  • Add renderer to the render window.

Source:
Parameters:
Name Type Description
ren vgl.renderer
Returns:
Type
boolean

context() → {WebGLRenderingContext}

Description:
  • Return current GL context.

Source:
Returns:
Type
WebGLRenderingContext

hasRenderer(ren) → {boolean}

Description:
  • Check if the renderer exists.

Source:
Parameters:
Name Type Description
ren vgl.renderer
Returns:
Type
boolean

positionAndResize(x, y, width, height)

Description:
  • Resize and reposition the window.

Source:
Parameters:
Name Type Description
x number
y number
width number
height number

render()

Description:
  • Render the scene.

Source:

renderers() → {Array.<vgl.renderer>}

Description:
  • Return all renderers contained in the render window.

Source:
Returns:
Type
Array.<vgl.renderer>

windowPosition() → {Array.<number>}

Description:
  • Get window position (top left coordinates).

Source:
Returns:
Type
Array.<number>

windowSize() → {Array.<number>}

Description:
  • Get size of the render window.

Source:
Returns:
Type
Array.<number>