renderer

vgl. renderer

new renderer(arg) → {vgl.renderer}

Description:
  • Create a new instance of class renderer.

Source:
Parameters:
Name Type Description
arg object
Returns:
Type
vgl.renderer

Extends

Methods

addActor(actor) → {boolean}

Description:
  • Add new actor to the collection.

Source:
Parameters:
Name Type Description
actor vgl.actor
Returns:
Type
boolean

camera() → {vgl.camera}

Description:
  • Get main camera of the renderer.

Source:
Returns:
Type
vgl.camera

hasActor(actor) → {boolean}

Description:
  • Return true if this renderer has this actor attached, false otherwise.

Source:
Parameters:
Name Type Description
actor vgl.actor
Returns:
Type
boolean

height() → {number}

Description:
  • Get height of the renderer.

Source:
Returns:
Type
number

layer() → {number}

Description:
  • Get layer this renderer is associated with.

Source:
Returns:
Type
number

positionAndResize(x, y, width, height)

Description:
  • Resize viewport given a position, width and height.

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

removeActor(actor) → {boolean}

Description:
  • Remove the actor from the collection.

Source:
Parameters:
Name Type Description
actor vgl.actor
Returns:
Type
boolean

render()

Description:
  • Render the scene.

Source:

renderWindow() → {vgl.renderWindow}

Description:
  • Return render window (owner) of the renderer.

Source:
Returns:
Type
vgl.renderWindow

resize(width, height)

Description:
  • Resize viewport given a width and height.

Source:
Parameters:
Name Type Description
width number
height number

setLayer(layerNo)

Description:
  • Set the layer this renderer is associated with.

Source:
Parameters:
Name Type Description
layerNo number

setRenderWindow(renWin)

Description:
  • Set render window for the renderer.

Source:
Parameters:
Name Type Description
renWin vgl.renderWindow

setResetScene(reset)

Description:
  • If true the scene will be reset, otherwise the scene will not be automatically reset.

Source:
Parameters:
Name Type Description
reset boolean

width() → {number}

Description:
  • Get width of the renderer.

Source:
Returns:
Type
number