Crafty.webgl
A collection of methods to handle webgl contexts.
Methods and Properties
Back to top
Crafty.webgl.init
public void Crafty.webgl.init(void)Events
- NoWebGL
- triggered if `Crafty.support.webgl` is false
This will create a canvas element inside Crafty.stage.elem, used for displaying "WebGL" components.
This method will automatically be called by any "WebGL" component if no Crafty.webgl.context is
found, so it is not neccessary to call this manually.
google groups
starwed@gmail.com
github