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
- buildRoundedRectangle static
- renderGraphics static
- updateGraphics static
Methods
buildCircle
(
private
static
-
graphicsData
-
webGLData
Builds a circle to draw
Parameters:
-
graphicsData
GraphicsThe graphics object to draw
-
webGLData
Object
buildLine
(
private
static
-
graphicsData
-
webGLData
Builds a line to draw
Parameters:
-
graphicsData
GraphicsThe graphics object containing all the necessary properties
-
webGLData
Object
buildPoly
(
private
static
-
graphicsData
-
webGLData
Builds a complex polygon to draw
Parameters:
-
graphicsData
GraphicsThe graphics object containing all the necessary properties
-
webGLData
Object
buildRectangle
(
private
static
-
graphicsData
-
webGLData
Builds a rectangle to draw
Parameters:
-
graphicsData
GraphicsThe graphics object containing all the necessary properties
-
webGLData
Object
buildRoundedRectangle
(
private
static
-
graphicsData
-
webGLData
Builds a rounded rectangle to draw
Parameters:
-
graphicsData
GraphicsThe graphics object containing all the necessary properties
-
webGLData
Object
renderGraphics
(
private
static
-
graphics
-
renderSession
Renders the graphics object
Parameters:
-
graphics
Graphics -
renderSession
Object
updateGraphics
(
private
static
-
graphicsData
-
gl
Updates the graphics object
Parameters:
-
graphicsData
GraphicsThe graphics object to update
-
gl
WebGLContextthe current WebGL drawing context