EventTarget Class
Adds event emitter functionality to a class
Item Index
Methods
- autoDetectRenderer static
Methods
autoDetectRenderer
(
static
-
width
-
height
-
view
-
transparent=false
-
antialias=false
This helper function will automatically detect which renderer you should be using. WebGL is the preferred renderer as it is a lot faster. If webGL is not supported by the browser then this function will return a canvas renderer
Parameters:
-
width
Numberthe width of the renderers view
-
height
Numberthe height of the renderers view
-
view
Canvasthe canvas to use as a view, optional
-
transparent=false
Booleanthe transparency of the render view, default false
-
antialias=false
Booleansets antialias (only applicable in webGL chrome at the moment)
antialias