Class Index | File Index

Classes


Class c3dl.RenderingObject

c3dl.RenderingObject is an object which is created dynamically and passed to the callback function defined within an effect when rendering objects.
Defined in: renderingobject.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
Get the rendering context.
 
Get the geometric object to render.
 
Get the ID of the program object which is to be used to render the geometry.
 
Get the renderer used to render the geometry.
Class Detail
c3dl.RenderingObject()
Method Detail
getContext()
Get the rendering context. Within the callback function, the context is used to do many things, some of which includes issuing commands to set the uniform variables, set rendering states and render the geometry.
Returns:
the rendering context.

{c3dl.Geometry} getGeometry()
Get the geometric object to render. The geometric object is composed of primitive sets, so the list of primitive sets must be queried and rendered.
Returns:
{c3dl.Geometry} the geometric object to render.

{int} getProgramObjectID()
Get the ID of the program object which is to be used to render the geometry. Pass this value to the context's useProgram() function to change the current rendering program.
Returns:
{int} the program object ID.

{c3dl.OpenGLES20} getRenderer()
Get the renderer used to render the geometry. The renderer will have useful state information as well as helper functions to easily set uniform and vertex attribute variables.
Returns:
{c3dl.OpenGLES20} the renderer used to render the geometry.

Documentation generated by JsDoc Toolkit 2.1.0 on Fri Feb 19 2010 17:58:41 GMT-0500 (EST)