class csSprite3D : public csObject A 3D sprite based on a triangle mesh with a single texture
A 3D sprite based on a triangle mesh with a single texture. Animation is done with frames (a frame may be controlled by a skeleton).
static float* z_verts
static csVector2* uv_verts
static csVector2* persp
static bool* visible
static csLight** light_worktable
static void UpdateWorkTables(int max_size)
void UpdateDeferedLighting()
csObjVector sectors
static float cfg_lod_detail
csVector3 v_obj2world
csMatrix3 m_obj2world
csMatrix3 m_world2obj
static csTriangleMesh mesh
csColor* vertex_colors
csSpriteTemplate* tpl
csTextureHandle* cstxt
int cur_frame
csSpriteAction* cur_action
int last_time
bool force_otherskin
csLightHitsSprite* dynamiclights
csSkeletonState* skeleton_state
int defered_num_lights
int defered_lighting_flags
csSpriteCallback* draw_callback
bool is_visible
csSprite3D()
virtual ~csSprite3D()
void SetTemplate(csSpriteTemplate* tmpl)
csSpriteTemplate* GetTemplate()
csSkeletonState* GetSkeletonState()
void SetTexture(char * name, csTextureList* textures)
void MarkVisible()
void MarkInvisible()
bool IsVisible()
void SetVertexColor(int i, const csColor& col)
void AddVertexColor(int i, const csColor& col)
void ResetVertexColors()
void FixVertexColors()
void UpdateLighting(csLight** lights, int num_lights)
void DeferUpdateLighting(int flags, int num_lights)
void UnsetTexture()
void SetMixmode(UInt m)
void SetMove(const csVector3& v)
void SetMove(float x, float y, float z)
void SetTransform(const csMatrix3& matrix)
void Move(float dx, float dy, float dz)
void Move(csVector3& v)
bool MoveTo(const csVector3& v)
bool MoveTo(float x, float y, float z)
void Transform(csMatrix3& matrix)
void AddBoundingBox(csBspContainer* container)
void GenerateSpriteLOD(int num_vts)
void Draw(csRenderView& rview)
void SetDrawCallback(csSpriteCallback* callback)
csSpriteCallback* GetDrawCallback()
bool NextFrame(long current_time, bool onestep = false, bool stoptoend = false)
void SetFrame(int f)
int GetCurFrame()
csSpriteAction* GetCurAction()
int GetNumFrames()
void SetAction(const char * name)
void InitSprite()
inline csMatrix3 GetW2T()
inline csVector3 GetW2TTranslation()
void MoveToSector(csSector* s)
void RemoveFromSectors()
csVector3* GetObjectVerts(csFrame* fr)
Warning! The returned array should be used immediatelly or copied. It
points to a private static array in the sprite class and can be reused
if other calls to the sprite happen.
void UnlinkDynamicLight(csLightHitsSprite* lp)
void AddDynamicLight(csLightHitsSprite *lp)
csLightHitsSprite* GetDynamicLights()
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de