Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

graphics
Class CSprite

   in Sprite.h
   in Sprite.cpp

class CSprite

========================================================================= File : Sprite.h Project : 0 A.D. Description : Billboarding sprite class - always faces the camera. It does this by getting the current model view matrix state. =========================================================================


Field Summary
private float[ 4 ] m_colour
          
private CVector3D[ 4 ] m_coords
          
private float m_height
          
private CVector3D m_scale
          
private CTexture* m_texture
          
private CVector3D m_translation
          
private float m_width
          
 
Constructor Summary
CSprite()
          ========================================================================= File : Sprite.
~CSprite()
          
 
Method Summary
private void BeginBillboard()
          
private void EndBillboard()
          
 float GetHeight()
          
 CVector3D GetScale()
          
 CVector3D GetTranslation()
          
 float GetWidth()
          
 void Render()
          
 void SetColour( float r, float g, float b, float a = 1. 0f )
          
 void SetColour( float* colour )
          
 void SetHeight( float height )
          
 void SetScale( CVector3D scale )
          
 void SetScale( float x, float y, float z )
          
 void SetSize( float width, float height )
          
 int SetTexture( CTexture* texture )
          
 void SetTranslation( float x, float y, float z )
          
 void SetTranslation( CVector3D trans )
          
 void SetWidth( float width )
          
 

Field Detail

m_colour

private float m_colour[ 4 ];

m_coords

private CVector3D m_coords[ 4 ];

m_height

private float m_height;

m_scale

private CVector3D m_scale;

m_texture

private CTexture* m_texture;

m_translation

private CVector3D m_translation;

m_width

private float m_width;


Constructor Detail

CSprite

public CSprite();
========================================================================= File : Sprite.h Project : 0 A.D. Description : Billboarding sprite class - always faces the camera. It does this by getting the current model view matrix state. =========================================================================

~CSprite

public ~CSprite();


Method Detail

BeginBillboard

private void BeginBillboard();

EndBillboard

private void EndBillboard();

GetHeight

public float GetHeight();

GetScale

public CVector3D GetScale();

GetTranslation

public CVector3D GetTranslation();

GetWidth

public float GetWidth();

Render

public void Render();

SetColour

public void SetColour( float r, float g, float b, float a = 1. 0f );

SetColour

public void SetColour( float* colour );

SetHeight

public void SetHeight( float height );

SetScale

public void SetScale( CVector3D scale );

SetScale

public void SetScale( float x, float y, float z );

SetSize

public void SetSize( float width, float height );

SetTexture

public int SetTexture( CTexture* texture );

SetTranslation

public void SetTranslation( float x, float y, float z );

SetTranslation

public void SetTranslation( CVector3D trans );

SetWidth

public void SetWidth( float width );

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD