Constructor
new ShapeGL()
OpenGL part of Shape
Methods
init(context)
Init of the OpenGL part: VBO creation
Parameters:
Name | Type | Description |
---|---|---|
context |
number | Graphics context |
isDirty()
Flag indicating if the OpenGL state of this shape is correct
render()
Render this shape; Called by the renderer