![]() |
Public API Reference |
#include <sprite3d.h>
Inheritance diagram for iSprite3DState:
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 | SetMixMode (uint mode)=0 |
Set mix mode. More... | |
virtual uint | GetMixMode () const=0 |
Get mix mode. More... | |
virtual void | SetLighting (bool l)=0 |
Set lighting. More... | |
virtual bool | IsLighting () const=0 |
Get lighting. More... | |
virtual iSkeletonState * | GetSkeletonState () const=0 |
Get the skeleton state. More... | |
virtual void | SetFrame (int f)=0 |
Go to a specified frame. More... | |
virtual int | GetCurFrame () const=0 |
Get the current frame number. More... | |
virtual int | GetFrameCount () const=0 |
Get the number of frames. More... | |
virtual bool | SetAction (const char *name, bool loop=true, float speed=1)=0 |
Select an action. More... | |
virtual void | SetReverseAction (bool reverse)=0 |
Set whether action should run in reverse or not. More... | |
virtual void | SetSingleStepAction (bool singlestep)=0 |
Set single-step frame advance flag on actions. More... | |
virtual bool | SetOverrideAction (const char *name, float speed=1)=0 |
This sets an action to run one time, then the sprite reverts to the prior action. More... | |
virtual bool | PropagateAction (const char *name)=0 |
Propogate set action to all children. More... | |
virtual iSpriteAction * | GetCurAction () const=0 |
Get the current action. More... | |
virtual bool | GetReverseAction () const=0 |
Get whether the current action is reversed or not. More... | |
virtual void | EnableTweening (bool en)=0 |
Enable/disable tweening. More... | |
virtual bool | IsTweeningEnabled () const=0 |
Query state of tweening. More... | |
virtual void | UnsetTexture ()=0 |
Unset the texture (i.e. use the one from the factory). More... | |
virtual int | GetLightingQuality ()=0 |
Returns the lighting quality level used by this sprite. More... | |
virtual void | SetLocalLightingQuality (int lighting_quality)=0 |
Sets the local lighting quality for this sprite. More... | |
virtual void | SetLightingQualityConfig (int config_flag)=0 |
Sets which lighting config variable this sprite will use. More... | |
virtual int | GetLightingQualityConfig () const=0 |
Returns what this sprite is using for determining the lighting quality. More... | |
virtual void | SetLodLevelConfig (int config_flag)=0 |
Sets which lighting config variable this sprite will use. More... | |
virtual int | GetLodLevelConfig () const=0 |
Returns what this sprite is using for determining the lighting quality. More... | |
virtual bool | IsLodEnabled () const=0 |
Returns true if lod is enabled, else false. More... | |
virtual void | SetBaseColor (const csColor &col)=0 |
Set the base color. More... | |
virtual void | GetBaseColor (csColor &col) const=0 |
Get the base color. More... | |
virtual iSpriteSocket * | FindSocket (iMeshWrapper *mesh) const=0 |
find a socked based on the sprite attached to it. More... | |
virtual iSpriteSocket * | FindSocket (const char *name) const=0 |
find a named socket into the sprite. More... |
Definition at line 335 of file sprite3d.h.
|
Enable/disable tweening.
|
|
find a named socket into the sprite.
|
|
find a socked based on the sprite attached to it.
|
|
Get the base color.
|
|
Get the current action.
|
|
Get the current frame number.
|
|
Get the number of frames.
|
|
Returns the lighting quality level used by this sprite. See SPR_LIGHTING_* macros defined in this header for the different types of lighting. |
|
Returns what this sprite is using for determining the lighting quality.
|
|
Returns what this sprite is using for determining the lighting quality.
|
|
Get material of sprite.
|
|
Get mix mode.
|
|
Get whether the current action is reversed or not.
|
|
Get the skeleton state. Will only be valid if skeletal animation has been enabled for the factory that this sprite was created from. Otherwise it will return NULL. |
|
Get lighting.
|
|
Returns true if lod is enabled, else false.
|
|
Query state of tweening.
|
|
Propogate set action to all children.
|
|
Select an action. If 'loop'==false the animation will not loop. |
|
Set the base color. This color will be added to the vertex colors of the sprite. If no lighting is used then this will be the color. |
|
Go to a specified frame.
|
|
Set lighting.
|
|
Sets which lighting config variable this sprite will use. The options are:
|
|
Sets the local lighting quality for this sprite. NOTE: you must use SetLightingQualityConfig (CS_SPR_LIGHT_LOCAL) for the sprite to use this. |
|
Sets which lighting config variable this sprite will use. The options are:
|
|
Set material of sprite.
|
|
Set mix mode.
|
|
This sets an action to run one time, then the sprite reverts to the prior action.
|
|
Set whether action should run in reverse or not.
|
|
Set single-step frame advance flag on actions.
|
|
Unset the texture (i.e. use the one from the factory).
|