class csSpriteTemplate : public csObject A 3D sprite based on a triangle mesh with a single texture
| | AddAction () Create and add a new action frameset to the sprite. |
| | AddFrame () Create and add a new frame to the sprite. |
| | ComputeBoundingBox () Compute the object space bounding box for all frames in this template |
| | csSpriteTemplate () Create the sprite template |
| | FindAction (const char * name) find a named action into the sprite. |
| | FindFrame (char * name) find a named frame into the sprite. |
| | GenerateLOD () Generate the collapse order |
| | GetAction (int No) Get action number No |
| | GetBaseMesh () Get the base triangle mesh of this sprite |
| | GetEmergeFrom () Get the 'emerge_from' array from which you can construct triangles. |
| | GetFirstAction () Get the first action. |
| | GetFrame (int f) Query the frame number f |
| | GetNumActions () Get number of actions in sprite |
| | GetNumFrames () Query the number of frames |
| | GetNumVertices () Query the number of vertices. |
| | GetSkeleton () Get the skeleton for this sprite template. |
| | GetTexture () Get the texture |
| | GetTextureHandle () Get the texture handle. |
| | NewSprite () Create a new sprite for this template |
| | SetNumVertices (int v) Set the number of vertices. |
| | SetSkeleton (csSkeleton* sk) Set the skeleton for this sprite template. |
| | SetTexture (csTextureList* textures, char *texname) Set the texture used for this sprite |
| | ~csSpriteTemplate () Destroy the template |
| | actions The actions (a vector of csSpriteAction objects) |
| | base_mesh The triangles. |
| | cstxt Texture handle as returned by ITextureManager. |
| | emerge_from The order in which to introduce levels in order to get to a higher LOD |
| | frames The frames |
| | num_vertices The vertices. |
| | skeleton An optional skeleton. |
A 3D sprite based on a triangle mesh with a single texture. Animation is done with frames. This class represents a template from which a csSprite3D class can be made.
int num_vertices
csTriangleMesh* base_mesh
csSkeleton* skeleton
int* emerge_from
csObjVector frames
csObjVector actions
csSpriteTemplate()
virtual ~csSpriteTemplate()
csSprite3D* NewSprite()
csTriangleMesh* GetBaseMesh()
void SetSkeleton(csSkeleton* sk)
csSkeleton* GetSkeleton()
int* GetEmergeFrom()
void GenerateLOD()
void ComputeBoundingBox()
void SetNumVertices(int v)
int GetNumVertices()
csFrame* AddFrame()
csFrame* FindFrame(char * name)
int GetNumFrames()
csFrame* GetFrame(int f)
csSpriteAction* AddAction()
csSpriteAction* FindAction(const char * name)
csSpriteAction* GetFirstAction()
int GetNumActions()
csSpriteAction* GetAction(int No)
csTextureHandle* GetTexture()
ITextureHandle* GetTextureHandle()
void SetTexture(csTextureList* textures, char *texname)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de