WebGLGraphics Class
A set of functions used by the webGL renderer to draw the primitive graphics data
Item Index
Methods
- buildCircle static
- buildLine static
- buildPoly static
- buildRectangle static
- renderGraphics static
- updateGraphics static
Methods
buildCircle
(
private
static
-
graphicsData -
webGLData
Builds a circle to draw
Parameters:
-
graphicsDataGraphicsThe graphics object to draw
-
webGLDataObject
buildLine
(
private
static
-
graphicsData -
webGLData
Builds a line to draw
Parameters:
-
graphicsDataGraphicsThe graphics object containing all the necessary properties
-
webGLDataObject
buildPoly
(
private
static
-
graphicsData -
webGLData
Builds a polygon to draw
Parameters:
-
graphicsDataGraphicsThe graphics object containing all the necessary properties
-
webGLDataObject
buildRectangle
(
private
static
-
graphicsData -
webGLData
Builds a rectangle to draw
Parameters:
-
graphicsDataGraphicsThe graphics object containing all the necessary properties
-
webGLDataObject
renderGraphics
(
private
static
-
graphics -
renderSession
Renders the graphics object
Parameters:
-
graphicsGraphics -
renderSessionObject
updateGraphics
(
private
static
-
graphicsData -
gl
Updates the graphics object
Parameters:
-
graphicsDataGraphicsThe graphics object to update
-
glWebGLContextthe current WebGL drawing context
