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

Description

VuoSceneGet implementation.

Functions

static void convertAINodesToVuoSceneObjectsRecursively (const struct aiScene *scene, const struct aiNode *node, VuoList_VuoShader shaders, VuoSceneObject *sceneObject)
 Converts node and its children to VuoSceneObjects.
 
bool VuoSceneObject_get (VuoText sceneURL, VuoSceneObject *scene, bool center, bool fit, bool hasLeftHandedCoordinates)
 Retrieves the scene at the specified sceneURL, creates a VuoSceneObject from it, and stores it in scene.
 

Function Documentation

static void convertAINodesToVuoSceneObjectsRecursively ( const struct aiScene *  scene,
const struct aiNode *  node,
VuoList_VuoShader  shaders,
VuoSceneObject sceneObject 
)
static

Converts node and its children to VuoSceneObjects.

Todo:
Can a single aiNode use multiple aiMaterials? If so, we need to split the aiNode into multiple VuoSceneObjects. For now, just use the first mesh's material.
Todo:
handle other texture coordinate channels