Vuo  2.0.0
Classes | Functions
VuoSceneObjectGet.c File Reference

Description

VuoSceneGet implementation.

Definition in file VuoSceneObjectGet.c.

Go to the source code of this file.

Classes

struct  VuoSceneObjectGet_data
 A data buffer, and the curren read position inside it. More...
 

Functions

static size_t VuoSceneObjectGet_read (aiFile *af, char *buffer, size_t size, size_t count)
 Reads bytes from VuoSceneObjectGet_data. More...
 
static size_t VuoSceneObjectGet_tell (aiFile *af)
 Gives VuoSceneObjectGet_data's current position. More...
 
static size_t VuoSceneObjectGet_size (aiFile *af)
 Gives the size of VuoSceneObjectGet_data's data. More...
 
static aiReturn VuoSceneObjectGet_seek (aiFile *af, size_t p, aiOrigin origin)
 Moves VuoSceneObjectGet_data's position. More...
 
static aiFile * VuoSceneObjectGet_open (aiFileIO *afio, const char *filename, const char *mode)
 Reads a file into a data buffer, and provides functions for accessing it. More...
 
static void VuoSceneObjectGet_close (aiFileIO *afio, aiFile *af)
 Frees the data buffer. More...
 
static void convertAINodesToVuoSceneObjectsRecursively (const struct aiScene *scene, const struct aiNode *node, VuoShader *shaders, bool *shadersUsed, VuoSceneObject *sceneObject)
 Converts node and its children to VuoSceneObjects. More...
 
bool VuoSceneObject_get (VuoText sceneURL, VuoSceneObject *scene, bool center, bool fit, bool hasLeftHandedCoordinates)
 

Class Documentation

◆ VuoSceneObjectGet_data

struct VuoSceneObjectGet_data
Class Members
void * data
size_t dataLength
size_t position

Function Documentation

◆ convertAINodesToVuoSceneObjectsRecursively()

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

Converts node and its children to VuoSceneObjects.

Definition at line 187 of file VuoSceneObjectGet.c.

◆ VuoSceneObjectGet_close()

static void VuoSceneObjectGet_close ( aiFileIO *  afio,
aiFile *  af 
)
static

Frees the data buffer.

Definition at line 175 of file VuoSceneObjectGet.c.

◆ VuoSceneObjectGet_open()

static aiFile* VuoSceneObjectGet_open ( aiFileIO *  afio,
const char *  filename,
const char *  mode 
)
static

Reads a file into a data buffer, and provides functions for accessing it.

Definition at line 132 of file VuoSceneObjectGet.c.

◆ VuoSceneObjectGet_read()

static size_t VuoSceneObjectGet_read ( aiFile *  af,
char *  buffer,
size_t  size,
size_t  count 
)
static

Reads bytes from VuoSceneObjectGet_data.

Definition at line 68 of file VuoSceneObjectGet.c.

◆ VuoSceneObjectGet_seek()

static aiReturn VuoSceneObjectGet_seek ( aiFile *  af,
size_t  p,
aiOrigin  origin 
)
static

Moves VuoSceneObjectGet_data's position.

Definition at line 107 of file VuoSceneObjectGet.c.

◆ VuoSceneObjectGet_size()

static size_t VuoSceneObjectGet_size ( aiFile *  af)
static

Gives the size of VuoSceneObjectGet_data's data.

Definition at line 98 of file VuoSceneObjectGet.c.

◆ VuoSceneObjectGet_tell()

static size_t VuoSceneObjectGet_tell ( aiFile *  af)
static

Gives VuoSceneObjectGet_data's current position.

Definition at line 88 of file VuoSceneObjectGet.c.