Skip to content

Renderer

Gerd Christian Kunze edited this page Aug 22, 2013 · 3 revisions

Description

Engine.Renderer()


Api

Methods

  • Display()
  • Width()
  • Height()

Example

Use specific Html-Element for three.js Renderer-Output

Engine.Renderer().Display( 'div#element-id' );

Size of the Display will be inherited from Html-Element (fill)

Use a custom size for Display

Engine.Renderer().Width( 800 ).Height( 600 );

Size of the Display may be smaller then Html-Element. WARNING: Controls will be bound to the whole Html-Element!

Clone this wiki locally