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 fastest. If webGL is not supported by the browser then this function will return a canvas renderer
Parameters:
- 
                    
                        widthNumberthe width of the renderers view 
- 
                    
                        heightNumberthe height of the renderers view 
- 
                    
                        viewCanvasthe canvas to use as a view, optional 
- 
                    
                        transparent=falseBooleanthe transparency of the render view, default false 
- 
                    
                        antialias=falseBooleansets antialias (only applicable in webGL chrome at the moment) antialias 
