Vuo  0.5.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Typedefs | Functions
VuoSceneRenderer.h File Reference

Description

VuoSceneRenderer interface.

Typedefs

typedef void * VuoSceneRenderer
 An object for rendering a scenegraph.
 

Functions

VuoSceneRenderer VuoSceneRenderer_make (void)
 Creates a reference-counted object for rendering a scenegraph.
 
void VuoSceneRenderer_prepareContext (VuoSceneRenderer sceneRenderer)
 Sets up OpenGL state on the current GL Context.
 
void VuoSceneRenderer_regenerateProjectionMatrix (VuoSceneRenderer sceneRenderer, unsigned int width, unsigned int height)
 Recalculates the projection matrix based on the specified viewport width and height.
 
void VuoSceneRenderer_draw (VuoSceneRenderer sceneRenderer)
 Renders the scene.
 
void VuoSceneRenderer_setRootSceneObject (VuoSceneRenderer sceneRenderer, VuoSceneObject rootSceneObject)
 Changes the scenegraph to be rendered.
 
void VuoSceneRenderer_drawElement (VuoSceneRenderer sr, int element, float length)
 Draws all vertex normals in sceneRenderer-rootSceneObject.
 

Typedef Documentation

typedef void* VuoSceneRenderer

An object for rendering a scenegraph.

Function Documentation

void VuoSceneRenderer_draw ( VuoSceneRenderer  sr)

Renders the scene.

Must be called from a thread with an active GL Context.

void VuoSceneRenderer_drawElement ( VuoSceneRenderer  sr,
int  element,
float  length 
)

Draws all vertex normals in sceneRenderer-rootSceneObject.

Must be called from a thread with an active GL Context.

Todo:
update VuoSceneRenderer_draw() to call this for each VuoSceneObject when debugging
VuoSceneRenderer VuoSceneRenderer_make ( void  )

Creates a reference-counted object for rendering a scenegraph.

May be called from any thread (doesn't require a GL Context).

void VuoSceneRenderer_prepareContext ( VuoSceneRenderer  sceneRenderer)

Sets up OpenGL state on the current GL Context.

Must be called from a thread with an active GL Context.

void VuoSceneRenderer_regenerateProjectionMatrix ( VuoSceneRenderer  sr,
unsigned int  width,
unsigned int  height 
)

Recalculates the projection matrix based on the specified viewport width and height.

May be called from any thread (doesn't require a GL Context).

Todo:
Where to place clip planes?
void VuoSceneRenderer_setRootSceneObject ( VuoSceneRenderer  sr,
VuoSceneObject  rootSceneObject 
)

Changes the scenegraph to be rendered.

May be called from any thread (automatically uses and disuses a GL Context).