Vuo  0.5.7
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
VuoSceneObject.c File Reference

Description

VuoSceneObject implementation.

Functions

VuoSceneObject VuoSceneObject_makeEmpty (void)
 Creates a new, empty scene object.
 
VuoSceneObject VuoSceneObject_make (VuoList_VuoVertices verticesList, VuoShader shader, VuoTransform transform, VuoList_VuoSceneObject childObjects)
 Creates a visible (mesh) scene object.
 
VuoSceneObject VuoSceneObject_makeQuad (VuoShader shader, VuoPoint3d center, VuoPoint3d rotation, VuoReal width, VuoReal height)
 Returns a scene object that renders a quad with the specified shader.
 
VuoSceneObject VuoSceneObject_makeQuadWithNormals (VuoShader shader, VuoPoint3d center, VuoPoint3d rotation, VuoReal width, VuoReal height)
 Returns a scene object that renders a quad with the specified shader.
 
VuoSceneObject VuoSceneObject_makeImage (VuoImage image, VuoPoint3d center, VuoPoint3d rotation, VuoReal width, VuoReal alpha)
 Returns an unlit scene object with the specified image.
 
VuoSceneObject VuoSceneObject_makeLitImage (VuoImage image, VuoPoint3d center, VuoPoint3d rotation, VuoReal width, VuoReal alpha, VuoColor highlightColor, VuoReal shininess)
 Returns a lit scene object with the specified image.
 
VuoSceneObject VuoSceneObject_makeCube (VuoTransform transform, VuoShader frontShader, VuoShader leftShader, VuoShader rightShader, VuoShader backShader, VuoShader topShader, VuoShader bottomShader)
 Returns a scene object consisting of 6 child objects (square quads), each with its own shader.
 
VuoSceneObject VuoSceneObject_makePerspectiveCamera (VuoText name, VuoTransform transform, float fieldOfView, float distanceMin, float distanceMax)
 Returns a perspective camera having the position and negative-rotation specified by transform (its scale is ignored).
 
VuoSceneObject VuoSceneObject_makeOrthographicCamera (VuoText name, VuoTransform transform, float width, float distanceMin, float distanceMax)
 Returns an orthographic camera having the position and negative-rotation specified by transform (its scale is ignored).
 
VuoSceneObject VuoSceneObject_makeDefaultCamera (void)
 Returns a perspective camera at (0,0,1), facing along -z, 90 degree FOV, and clip planes at 0.1 and 10.0.
 
VuoSceneObject VuoSceneObject_findCamera (VuoSceneObject so, VuoText nameToMatch, bool *foundCamera)
 Performs a depth-first search of the scenegraph.
 
VuoSceneObject_CameraType VuoSceneObject_cameraTypeFromCString (const char *cameraTypeString)
 Returns the VuoSceneObject_CameraType corresponding with the string cameraTypeString.
 
const char * VuoSceneObject_cStringForCameraType (VuoSceneObject_CameraType cameraType)
 Returns a string constant representing cameraType.
 
VuoSceneObject VuoSceneObject_makeAmbientLight (VuoColor color, float brightness)
 Returns an ambient light with the specified color and brightness (typically between 0 and 1).
 
VuoSceneObject VuoSceneObject_makePointLight (VuoColor color, float brightness, VuoPoint3d position, float range, float sharpness)
 Returns a point light (uniform emission in all directions).
 
VuoSceneObject VuoSceneObject_makeSpotlight (VuoColor color, float brightness, VuoTransform transform, float cone, float range, float sharpness)
 Returns a spot light (emists only in the specified direction).
 
VuoSceneObject_LightType VuoSceneObject_lightTypeFromCString (const char *lightTypeString)
 Returns the VuoSceneObject_LightType corresponding with the string lightTypeString.
 
const char * VuoSceneObject_cStringForLightType (VuoSceneObject_LightType lightType)
 Returns a string constant representing lightType.
 
void VuoSceneObject_findLights (VuoSceneObject so, VuoColor *ambientColor, float *ambientBrightness, VuoList_VuoSceneObject *pointLights, VuoList_VuoSceneObject *spotLights)
 Finds and returns all the lights in the scene.
 
VuoSceneObject VuoSceneObject_valueFromJson (json_object *js)
 Decodes the JSON object js to create a new value.
 
json_object * VuoSceneObject_jsonFromValue (const VuoSceneObject value)
 Encodes value as a JSON object.
 
unsigned long VuoSceneObject_getVertexCount (const VuoSceneObject value)
 Returns the total number of vertices in the scene object (but not its descendants).
 
unsigned long VuoSceneObject_getElementCount (const VuoSceneObject value)
 Returns the total number of element in the scene object (but not its descendants).
 
void VuoSceneObject_getStatistics (const VuoSceneObject value, unsigned long *descendantCount, unsigned long *totalVertexCount, unsigned long *totalElementCount, unsigned long *totalTextureCount)
 Traverses the specified scenegraph and returns statistics about it.
 
char * VuoSceneObject_summaryFromValue (const VuoSceneObject value)
 Produces a brief human-readable summary of value.
 
void VuoSceneObject_dump (const VuoSceneObject so)
 Outputs information about the sceneobject (and its descendants).
 

Function Documentation

unsigned long VuoSceneObject_getElementCount ( const VuoSceneObject  value)

Returns the total number of element in the scene object (but not its descendants).

void VuoSceneObject_getStatistics ( const VuoSceneObject  value,
unsigned long *  descendantCount,
unsigned long *  totalVertexCount,
unsigned long *  totalElementCount,
unsigned long *  totalTextureCount 
)

Traverses the specified scenegraph and returns statistics about it.

unsigned long VuoSceneObject_getVertexCount ( const VuoSceneObject  value)

Returns the total number of vertices in the scene object (but not its descendants).