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.
=========================================================================
Constructor Summary |
CSprite()
=========================================================================
File : Sprite. |
~CSprite()
|
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;
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();
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 );