Class c3dl.Renderer
base class for 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 maximum line width supported which is implementation dependent.
|
|
|
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.
|
|
|
setLighting(isOn)
|
Method Detail
getContextHeight()
getContextWidth()
{int}
getFillMode()
Are objects filled in or are they rendered using wireframe?
- Returns:
- {int} either c3dl.FILL or c3dl.WIRE_FRAME.
getLighting()
{int}
getMaxLineWidth()
Get the maximum line width supported which is implementation dependent.
- Returns:
- {int} maximum line width supported.
{0.0 | 2.0}
getVersion()
Get the version of the renderer as a number.
- Returns:
- {0.0 | 2.0} A value of 0.0 is returned if the class was instantiated incorrectly.
{"Renderer interface" | "OpenGL ES 2.0"}
getVersionString()
Get the OpenGL ES Version string.
- Returns:
- {"Renderer interface" | "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.FILL | c3dl.WIRE_FRAME} mode
setLighting(isOn)
- Parameters:
- isOn