geXFArray

Description: object to formalize an array of transforms

Source file: ...\genesis3d\OpenSource\Source\Actor\xfarray.h

Contents:

Functions: Create, Destroy, GetElements, SetAll

Types: geXFArray

Overview: view

 Additions for Genesis3D v1.6: None

Overview:

This is a simple object to formalize an array of transforms (geXForm3d). Unfortunately, it's not a very safe object. This object exports data (allows external access to one of it's data members). This is dangerous - no checking can be done on the use of that data, and no checking can be done on array boundry conditions. This is on purpose. ...In the name of optimal access to the array.

 

Return to Contents

Types:

typedef struct geXFArray geXFArray;

NOTE: The contents of this structure have been intentionally left out of the interface, by the designers of this module. Think of this as a handle only. 
Return to Contents

Functions:

geXFArray *GENESISCC geXFArray_Create(int Size);

Create the object. Creates an array of Size elements.

All elements are initialized to the identity transform

 

Return to Contents

void GENESISCC geXFArray_Destroy(geXFArray **XFA );

Destroy the object. Don't use the pointer returned by _GetElements

after destroying the ojbect!

 

Return to Contents

geXForm3d *GENESISCC geXFArray_GetElements(const geXFArray *XFA, int *Size);

Get a pointer to the array. For external iteration. The size of the

array is returned in Size. Valid array indicies are (0..Size-1)

 

Return to Contents

void GENESISCC geXFArray_SetAll(geXFArray *XFA, const geXForm3d *Matrix);

Sets every transform in the array to the given transform.

 
Return to Contents