![]() |
Public API Reference |
#include <sprite3d.h>
Inheritance diagram for iSprite3DFactoryState:
Public Methods | |
virtual void | SetMaterialWrapper (iMaterialWrapper *material)=0 |
Set material of sprite. More... | |
virtual iMaterialWrapper * | GetMaterialWrapper () const=0 |
Get material of sprite. More... | |
virtual void | AddVertices (int num)=0 |
Reserve space for the given number of vertices. More... | |
virtual int | GetVertexCount () const=0 |
Return the current number of vertices. More... | |
virtual const csVector3 & | GetVertex (int frame, int vertex) const=0 |
Get a vertex. More... | |
virtual void | SetVertex (int frame, int vertex, const csVector3 &Value)=0 |
Set a vertex. More... | |
virtual csVector3 * | GetVertices (int frame) const=0 |
Get vertex array. More... | |
virtual void | SetVertices (csVector3 const *vert, int frame)=0 |
Set array of vertices. More... | |
virtual const csVector2 & | GetTexel (int frame, int vertex) const=0 |
Get a texel. More... | |
virtual void | SetTexel (int frame, int vertex, const csVector2 &Value)=0 |
Set a texel. More... | |
virtual csVector2 * | GetTexels (int frame) const=0 |
Get array of texels. More... | |
virtual void | SetTexels (csVector2 const *tex, int frame)=0 |
Set array of texels. More... | |
virtual const csVector3 & | GetNormal (int frame, int vertex) const=0 |
Get a normal. More... | |
virtual void | SetNormal (int frame, int vertex, const csVector3 &Value)=0 |
Set a normal. More... | |
virtual csVector3 * | GetNormals (int frame) const=0 |
Get normal array. More... | |
virtual void | SetNormals (csVector3 const *norms, int frame)=0 |
Set array of normals. More... | |
virtual void | AddTriangle (int a, int b, int c)=0 |
Add a triangle to the normal, texel, and vertex meshes a, b and c are indices to texel vertices. More... | |
virtual csTriangle | GetTriangle (int x) const=0 |
Returns the texel indices for triangle 'x'. More... | |
virtual csTriangle * | GetTriangles () const=0 |
Returns the triangles of the texel_mesh. More... | |
virtual int | GetTriangleCount () const=0 |
Returns the number of triangles in the sprite. More... | |
virtual void | SetTriangleCount (int count)=0 |
Set the count of triangles. More... | |
virtual void | SetTriangles (csTriangle const *trigs, int count)=0 |
Set array of triangles. The array is copied. More... | |
virtual iSpriteFrame * | AddFrame ()=0 |
Create and add a new frame to the sprite. More... | |
virtual iSpriteFrame * | FindFrame (const char *name) const=0 |
Find a named frame. More... | |
virtual int | GetFrameCount () const=0 |
Query the number of frames. More... | |
virtual iSpriteFrame * | GetFrame (int f) const=0 |
Query the frame number f. More... | |
virtual iSpriteAction * | AddAction ()=0 |
Create and add a new action frameset to the sprite. More... | |
virtual iSpriteAction * | FindAction (const char *name) const=0 |
Find a named action. More... | |
virtual iSpriteAction * | GetFirstAction () const=0 |
Get the first action. More... | |
virtual int | GetActionCount () const=0 |
Get number of actions in sprite. More... | |
virtual iSpriteAction * | GetAction (int No) const=0 |
Get action number No. More... | |
virtual iSpriteSocket * | AddSocket ()=0 |
Create and add a new socket to the sprite. More... | |
virtual iSpriteSocket * | FindSocket (const char *name) const=0 |
find a named socket into the sprite. More... | |
virtual iSpriteSocket * | FindSocket (iMeshWrapper *mesh) const=0 |
find a socked based on the sprite attached to it. More... | |
virtual int | GetSocketCount () const=0 |
Query the number of sockets. More... | |
virtual iSpriteSocket * | GetSocket (int f) const=0 |
Query the socket number f. More... | |
virtual void | EnableSkeletalAnimation ()=0 |
Enable skeletal animation for this factory. More... | |
virtual iSkeleton * | GetSkeleton () const=0 |
Get the skeleton. More... | |
virtual void | EnableTweening (bool en)=0 |
Enable/disable tweening. More... | |
virtual bool | IsTweeningEnabled () const=0 |
Query state of tweening. More... | |
virtual void | SetLightingQuality (int qual)=0 |
Set lighting quality (one of CS_SPR_LIGHTING_*). More... | |
virtual int | GetLightingQuality () const=0 |
Get lighting quality (one of CS_SPR_LIGHTING_*). More... | |
virtual void | SetLightingQualityConfig (int qual)=0 |
Sets which lighting config variable that all new sprites created from this template will use. More... | |
virtual int | GetLightingQualityConfig () const=0 |
Get the lighting quality config. More... | |
virtual void | SetLodLevelConfig (int config_flag)=0 |
Sets which lod config variable that all new sprites created from this template will use. More... | |
virtual int | GetLodLevelConfig () const=0 |
Returns what this template is using for determining the lod quality. More... | |
virtual void | MergeNormals (int base, int frame)=0 |
Smooth out the gouraud shading by merging the precalculated vertex normals along seams in frame 'frame' based on which vertices are very close in frame 'base'. More... | |
virtual void | MergeNormals (int base)=0 |
Smooth out the gouraud shading by merging the precalculated vertex normals along seams in all frames based on which vertices are very close in frame 'base'. More... | |
virtual void | MergeNormals ()=0 |
Smooth out the gouraud shading by merging the precalculated vertex normals along seams in all frames based on which vertices are very close in each frame. More... | |
virtual void | SetMixMode (uint mode)=0 |
Set default mix mode for new sprites. More... | |
virtual uint | GetMixMode () const=0 |
Get default mix mode for new sprites. More... |
Definition at line 153 of file sprite3d.h.
|
Create and add a new action frameset to the sprite.
|
|
Create and add a new frame to the sprite.
|
|
Create and add a new socket to the sprite.
|
|
Add a triangle to the normal, texel, and vertex meshes a, b and c are indices to texel vertices.
|
|
Reserve space for the given number of vertices. A vertex includes information about its position, normal and texel. This function will not write any information into the reserved space.
Note that this function requires that at least one frame exists in the sprite factory, otherwise this function will fail! |
|
Enable skeletal animation for this factory.
|
|
Enable/disable tweening.
|
|
Find a named action.
|
|
Find a named frame.
|
|
find a socked based on the sprite attached to it.
|
|
find a named socket into the sprite.
|
|
Get action number No.
|
|
Get number of actions in sprite.
|
|
Get the first action.
|
|
Query the frame number f.
|
|
Query the number of frames.
|
|
Get lighting quality (one of CS_SPR_LIGHTING_*).
|
|
Get the lighting quality config.
|
|
Returns what this template is using for determining the lod quality.
|
|
Get material of sprite.
|
|
Get default mix mode for new sprites.
|
|
Get a normal.
|
|
Get normal array.
|
|
Get the skeleton. Will only be valid if skeletal animation has been enabled with EnableSkeletalAnimation(). Otherwise it will return NULL. |
|
Query the socket number f.
|
|
Query the number of sockets.
|
|
Get a texel.
|
|
Get array of texels.
|
|
Returns the texel indices for triangle 'x'.
|
|
Returns the number of triangles in the sprite.
|
|
Returns the triangles of the texel_mesh.
|
|
Get a vertex.
|
|
Return the current number of vertices.
|
|
Get vertex array.
|
|
Query state of tweening.
|
|
Smooth out the gouraud shading by merging the precalculated vertex normals along seams in all frames based on which vertices are very close in each frame.
|
|
Smooth out the gouraud shading by merging the precalculated vertex normals along seams in all frames based on which vertices are very close in frame 'base'.
|
|
Smooth out the gouraud shading by merging the precalculated vertex normals along seams in frame 'frame' based on which vertices are very close in frame 'base'.
|
|
Set lighting quality (one of CS_SPR_LIGHTING_*).
|
|
Sets which lighting config variable that all new sprites created from this template will use. The options are:
|
|
Sets which lod config variable that all new sprites created from this template will use. The options are:
|
|
Set material of sprite.
|
|
Set default mix mode for new sprites.
|
|
Set a normal.
|
|
Set array of normals. The array is copied. It must contain as many normals as the vertex count of this sprite. |
|
Set a texel.
|
|
Set array of texels. The array is copied. It must contain as many texels as the vertex count of this sprite. |
|
Set the count of triangles.
|
|
Set array of triangles. The array is copied.
|
|
Set a vertex.
|
|
Set array of vertices. The array is copied. It must contain as many vertices as the vertex count of this sprite. |