C4 Engine
C4 Engine API Documentation

Mesh::GetArray

Defined in:  C4Mesh.h
Returns a pointer to one of the geometrical arrays stored in a mesh.
Prototype

void *GetArray(int32 index) const;

template <typename type> type *GetArray<float>(int32 index) const;

Description
The GetArray function and associated template function return a pointer to one of the geometrical arrays stored in a mesh. Each of the functions returns a pointer representing the same address, but with a different type. Most arrays can only contain data of one type, but some can have different types for different geometries.
See Also

Mesh::GetArrayDescriptor