Class c3dl.Renderer
base class for OpenGLES11 and OpenGLES20.
Defined in: renderer.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
|
Are objects filled in or are they rendered using wireframe?
|
|
|
Get the version of the renderer as a number.
|
|
|
Get the OpenGL ES Version string.
|
|
|
setFillMode(mode)
Set how objects will be rendered, either filled in or using wireframe.
|
Method Detail
{int}
getFillMode()
Are objects filled in or are they rendered using wireframe?
- Returns:
- {int} either c3dl.const.FILL or c3dl.const.WIRE_FRAME.
{0.0 | 1.1 | 2.0}
getVersion()
Get the version of the renderer as a number.
- Returns:
- {0.0 | 1.1 | 2.0} A value of 0.0 is returned if the class was instantiated incorrectly.
{"Renderer interface" | "OpenGL ES 1.1" | "OpenGL ES 2.0"}
getVersionString()
Get the OpenGL ES Version string.
- Returns:
- {"Renderer interface" | "OpenGL ES 1.1" | "OpenGL ES 2.0"} "Renderer interface" is returned if the Renderer was not instantiated correctly.
setFillMode(mode)
Set how objects will be rendered, either filled in or using wireframe.
- Parameters:
- {c3dl.const.FILL | c3dl.const.WIRE_FRAME} mode