CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

iIsoSprite Struct Reference

A sprite for the isometric engine. More...

#include <iso.h>

Inheritance diagram for iIsoSprite:

iBase iIsoMeshSprite List of all members.

Public Methods

virtual int GetVertexCount () const=0
 get the number of vertices. More...

virtual void AddVertex (const csVector3 &coord, float u, float v)=0
 add a new vertex to the polygon. More...

virtual const csVector3 & GetVertexPosition (int i)=0
 get a vertex position. More...

virtual void SetAllColors (const csColor &color)=0
 set all vertex colors to given. More...

virtual void AddToVertexColor (int i, const csColor &color)=0
 add color to color of vertex. More...

virtual void ResetAllColors ()=0
 reset all vertex colors to their static values. More...

virtual void SetAllStaticColors (const csColor &color)=0
 set all static vertex colors to given. More...

virtual void AddToVertexStaticColor (int i, const csColor &color)=0
 add color to static color of vertex. More...

virtual const csVector3 & GetPosition () const=0
 Get the world position of the sprite. More...

virtual void SetPosition (const csVector3 &pos)=0
 Set the position. In world space. More...

virtual void MovePosition (const csVector3 &delta)=0
 Move the position by delta. More...

virtual void ForcePosition (const csVector3 &pos)=0
 force position to a value - without updating other internal data structures. More...

virtual void SetMaterialWrapper (iMaterialWrapper *material)=0
 Set the materialwrapper to use. More...

virtual iMaterialWrapper * GetMaterialWrapper () const=0
 Get the materialwrapper. More...

virtual void SetMixMode (uint mode)=0
 Set the mixmode. More...

virtual uint GetMixMode () const=0
 Get the mixmode. More...

virtual void Draw (iIsoRenderView *rview)=0
 Draw using given renderview. More...

virtual void SetGrid (iIsoGrid *grid)=0
 Set the grid this sprite is part of (used as notification by grid/world). More...

virtual iIsoGrid * GetGrid () const=0
 get the grid this sprite is part of. More...

virtual void SetGridChangeCallback (iGridChangeCallback *cb)=0
 set a callback for when the sprite moves to another grid. More...

virtual iGridChangeCallback * GetGridChangeCallback () const=0
 get the callback for when the sprite moves to another grid. More...


Detailed Description

A sprite for the isometric engine.

Definition at line 395 of file iso.h.


Member Function Documentation

virtual void iIsoSprite::AddToVertexColor (  int    i,
const csColor &    color
)  [pure virtual]
 

add color to color of vertex.

virtual void iIsoSprite::AddToVertexStaticColor (  int    i,
const csColor &    color
)  [pure virtual]
 

add color to static color of vertex.

virtual void iIsoSprite::AddVertex (  const csVector3 &    coord,
float    u,
float    v
)  [pure virtual]
 

add a new vertex to the polygon.

virtual void iIsoSprite::Draw (  iIsoRenderView *    rview )  [pure virtual]
 

Draw using given renderview.

virtual void iIsoSprite::ForcePosition (  const csVector3 &    pos )  [pure virtual]
 

force position to a value - without updating other internal data structures.

Used by those internal data structures, to invalidate impossible movement

virtual iIsoGrid* iIsoSprite::GetGrid (    )  const [pure virtual]
 

get the grid this sprite is part of.

virtual iGridChangeCallback* iIsoSprite::GetGridChangeCallback (    )  const [pure virtual]
 

get the callback for when the sprite moves to another grid.

virtual iMaterialWrapper* iIsoSprite::GetMaterialWrapper (    )  const [pure virtual]
 

Get the materialwrapper.

virtual uint iIsoSprite::GetMixMode (    )  const [pure virtual]
 

Get the mixmode.

virtual const csVector3& iIsoSprite::GetPosition (    )  const [pure virtual]
 

Get the world position of the sprite.

virtual int iIsoSprite::GetVertexCount (    )  const [pure virtual]
 

get the number of vertices.

virtual const csVector3& iIsoSprite::GetVertexPosition (  int    i )  [pure virtual]
 

get a vertex position.

virtual void iIsoSprite::MovePosition (  const csVector3 &    delta )  [pure virtual]
 

Move the position by delta.

virtual void iIsoSprite::ResetAllColors (    )  [pure virtual]
 

reset all vertex colors to their static values.

virtual void iIsoSprite::SetAllColors (  const csColor &    color )  [pure virtual]
 

set all vertex colors to given.

virtual void iIsoSprite::SetAllStaticColors (  const csColor &    color )  [pure virtual]
 

set all static vertex colors to given.

virtual void iIsoSprite::SetGrid (  iIsoGrid *    grid )  [pure virtual]
 

Set the grid this sprite is part of (used as notification by grid/world).

virtual void iIsoSprite::SetGridChangeCallback (  iGridChangeCallback *    cb )  [pure virtual]
 

set a callback for when the sprite moves to another grid.

virtual void iIsoSprite::SetMaterialWrapper (  iMaterialWrapper *    material )  [pure virtual]
 

Set the materialwrapper to use.

virtual void iIsoSprite::SetMixMode (  uint    mode )  [pure virtual]
 

Set the mixmode.

virtual void iIsoSprite::SetPosition (  const csVector3 &    pos )  [pure virtual]
 

Set the position. In world space.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14