My Project
Public Member Functions | Public Attributes | List of all members
ParaEngine::BlockVertexCompressed Class Reference

Public Member Functions

void SetPosition (float x, float y, float z)
 
void SetPosition (const Vector3 &vPos)
 
void SetPosition (const BlockVertexCompressed &r)
 
void GetPosition (Vector3 &vPos)
 
void SetNormal (float x, float y, float z)
 
void SetNormal (const Vector3 &vNormal)
 
void GetNormal (Vector3 &vPos)
 
Vector3 GetNormal ()
 
void OffsetPosition (float dx, float dy, float dz)
 
void OffsetPosition (const Vector3 &v)
 
void SetHeightScale (float scale)
 
void SetTexcoord (float u, float v)
 
void SetTexcoord (const Vector2 &v)
 
void GetTexcoord (float &u, float &v)
 
void SetLightIntensity (float amount)
 only used for fixed function rendering
 
void SetVertexLight (DWORD nBlockLight, DWORD nSunLight)
 used for shader rendering
 
void SetCategoryID (DWORD nBlockID)
 used for shader rendering
 
void SetShadow ()
 make it darker, each time this function is called.
 
void SetColorStrength (byte strength)
 similar to SetShadow, except that it uses a user provided value [0,255]
 
void SetBlockColor (DWORD color)
 

Public Attributes

float position [3]
 
float normal [3]
 
DWORD color
 for fixed function: ao_shadow, max_light, max_light, max_light for shader: ao_shadow, sun_light, block_light, block_id
 
DWORD color2
 color of the block, default to white. More...
 
float texcoord [2]
 

Member Data Documentation

§ color2

DWORD ParaEngine::BlockVertexCompressed::color2

color of the block, default to white.

Only used in color block.


The documentation for this class was generated from the following file: