Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::sn::TileTerrain Class Reference

#include <TileTerrain.h>

Inheritance diagram for kge::sn::TileTerrain:
kge::sn::SceneNode kge::KgeUnknown kge::sn::TileTerrain2

Public Member Functions

 TileTerrain ()
 Constructor.
virtual ~TileTerrain ()
 Destructor.
virtual void PreRender (float elapsedTime=0.0f)
 Karhayee ke Ghabl az render bayad anjam shvad. Mesle colision detection.
virtual void Render ()
 Render the terrain.
virtual void PostRender ()
 Karhaee ke bad az render bayad anjam beshe.
virtual bool AddEffect (efx::EffectType p, efx::Effect **ppOut)
virtual void Draw (bool WithMaterial, bool WithTransform, bool bPosition, bool bNormalTexcoord, bool bTangentBinormal)
virtual void ReCreate (int numCols, int numRows, float MinHeight=0.0f, float MaxHeight=0.0f)
 Creates a tile based terrain with the given size.
void SetTileTexture (gfx::TileTexture *pTileTex)
 Sets the tile texture.
void SetNormalMapTileTexture (gfx::TileTexture *pTileTex)
 Sets the tile texture.
gfx::TileTextureGetTileTexture ()
 Returns the tile texture pointer then you can modify it directly.
virtual void SetTile (int Col, int Row, u32 TileID)
 Sets the tile in the terrain.
void SetTiles (u32 tileID)
 Sets the tiles.
void Blend (int Col, int Row)
 Blend the tile stored in the given position and their same tiles attached to it.
void Fill (int Col, int Row, int TileID)
 Fill the terrain with the given tile ID.
float GetHeight (float x, float z)
 Returns the terrain height at the given grid position.
void SetHeight (int IndexID, float h)
 Sets the terrain height by the index id.
void SetHeight (int Col, int Row, float h)
 Sets the terrain height by the tile position.
void SetVertexColor (int IndexID, gfx::Color c)
 Sets the terrain color by the index id.
void SetVertexColor (int Col, int Row, gfx::Color c)
 Sets the terrain color by the tile position.
void SetHeightAdd (int IndexID, float h)
 Adds the terrain height by the index id.
void SetHeightAdd (int Col, int Row, float h)
 Adds the terrain height by the tile position.
void Smooth (int Col, int Row)
 Smooths the tile height.
void SmoothOneNode (int Col, int Row)
 Smooths one node height.
math::Vector2I GetTileByFaceID (int FaceID)
 Gets the column number and row number by Face index.
gfx::Vertex3GetPositions ()
 Returns the terrain position vertices.
void GetYs (float *inArray)
 Create an array of Y position vertices and return.
void SetYs (float *pHeights)
 Sets the heights.
int GetTiles (int *pTiles1, int *pTiles2)
 Returns the tile count if you pass the NULL and set them otherwise.
void SetTiles (int *pTiles1, int *pTiles2)
 Sets the tiles.
int GetBlendMap (u8 *pBlendMap)
 Returns blend map size if you pass NULL and set the pointer otherwise.
void SetBlendMap (u8 *pBlendMap)
 Sets the blend map.
void GetVertexColors (ul32 *pVertexColor)
 Copy the vertex colors to the pointer.
void SetVertexColors (ul32 *pVertexColor)
 Copy the vertex colors from the pointer.
int GetVertexCount ()
 Returns the count of the vertexes.
u32GetIndices ()
 Returns the terrain indexes.
int GetIndexesCount ()
 Returns the terrain indexes count.
ph::DynamicTriangleMeshGetDynamicTriangleMesh ()
 Returns the DynamicTriangleMesh pointer.
void SetDynamicTriangleMesh (ph::DynamicTriangleMesh *pDTM)
 Returns the DynamicTriangleMesh pointer and send updates to it if needed.
void UpdateNormals ()
 Recalculate the terrain normals.
int GetAABBcount ()
 Return the number of AABB that splited the terrain.
math::AABBGetAABBs ()
 Returns the AABBs array pointer.
int GetUcount ()
 Returns the number of ... in U.
int GetVcount ()
 Returns the number of ... in V.
DecalCreateDecal (int sizeX, int sizeY, gfx::Texture *pTex)
 Create a decal and return its pointer.
void SetDecal (float fx, float fy, Decal *pDecal)
 Sets the decal on position.
virtual u32 GetMaterialCount ()
 Get the count of materials this terrain has. always returns 1.
virtual gfx::MaterialGetMaterial (u32 Index)
 Get the terrain material.
virtual void CreateShaderCode (core::String &VertexCode, core::String &PixelCode)
 Creates the terrain shader code.
void EnableWater (bool Enable, const gfx::Colorf &cStart=gfx::Colorf(255, 255, 255), const gfx::Colorf &cEnd=gfx::Colorf(0, 229, 255))
 Enables the under water vertex coloring effect.
void SetCaustics (gfx::Texture **ppTextures, int TexturesCount, int speed=100)
 Enable and sets the caustics textures.
void SetBlendMap (gfx::Texture *pTexture)
 Sets the Blend Map.
void ReceiveShadow (const char *Code, math::Matrix *shadowmat)
 Sets the shadow receiver params.
int GetColumnsCount ()
 Returns the columns count.
int GetRowsCount ()
 Returns the rows count.
void RenderDecals ()
 Render decals.
void RemoveDecal (Decal *pDecal)
 Empty space in vertex buffer.
void OnLost ()
void OnReset ()
 Refills vertex and index buffers after reseting device.
void RecreateShaders ()
- Public Member Functions inherited from kge::sn::SceneNode
 SceneNode ()
 Constructor.
virtual ~SceneNode ()
 Destructor.
virtual void AddChild (SceneNode *child)
 Adds a node as child.
virtual void SetSceneManager (SceneManager *smgr)
 Sets the scene manager and renderer pointer.
virtual void SetPosition (const math::Vector &v)
 Set the position of the scenenode.
virtual void SetRotation (const math::Vector &v)
 Set the rotation of the scenenode.
virtual void SetScale (const math::Vector &v)
 Set the scale of the scenenode.
virtual void SetAutomaticCulling (bool isTrue)
 Set Cutting Enable or Disable.
virtual void SetVisible (bool isVisible)
 Set Visible Enable or Disable.
virtual bool GetVisible ()
 Get Visible.
virtual bool IsVisibleInFrame ()
 Is it visible in this frame?
virtual const math::VectorGetPosition () const
 Returns the node position.
virtual const math::VectorGetRotation () const
 Returns the node rotation.
virtual const math::VectorGetScale () const
 Returns the node scale.
virtual math::MatrixGetAbsoluteMatrix () const
 Get the absolute matrix.
virtual math::MatrixGetFinalMatrix ()
 Get the final matrix.
virtual math::SphereGetBoundingBox ()
 Returns the node bounding box.
virtual math::AABBGetAxisAlignedBoundingBox ()
 Returns the node Axis aligned bounding box.
virtual NodeType GetType () const
 Returns the node type.
virtual void RemoveChild (SceneNode *child)
virtual void RemoveChildren ()
 Removes all children of this node.
virtual const SceneNodeGetParent ()
 Returns the node parent.
virtual void SetParent (SceneNode *parent)
 Sets the node parent.
virtual void SetName (const char *name)
 Sets the node name.
virtual core::StringGetName ()
 Gets the node name.
virtual void SetID (int ID)
 Sets the node ID.
virtual int GetID ()
 Gets the node ID.
void EnableShadow (bool enable)
bool HasShadow () const
virtual void UpdateFinalMat ()
 Update final matrix.
- Public Member Functions inherited from kge::KgeUnknown
 KgeUnknown ()
 Constructor.
virtual ~KgeUnknown ()
 Destructor.
virtual void AddRef ()
 Add a reference to the object.
virtual void DecRef ()
 Decrease a reference from the object. if its reference count get 0 then the object will destroy.
u32 GetRefCount ()
 Return resource reference count.
const char * GetDebugText ()
 returns the instance debug text.

Public Attributes

gfx::Shaderm_pVshader
 Shaders.
gfx::Shaderm_pPshader

Protected Member Functions

void Flood_Fill (int Col, int Row, int TileID)
void Flood_Fill (int Col, int Row, int ReplaceID, int TileID)
void SetTile (int Col, int Row, int TileID, int TileID2)
virtual void SetShaderParams ()
virtual void userSetShaderParams ()
void SetDecalShaderParams (gfx::ShaderInstance *pSI)
- Protected Member Functions inherited from kge::sn::SceneNode
virtual bool HasThisEffect (efx::EffectType p)
- Protected Member Functions inherited from kge::KgeUnknown
void SetDebugText (char *text)

Protected Attributes

std::vector< TileTerrainDatam_vTerrainData
 Terrain data.
std::vector< int > m_vVisibleParts
 Visible parts.
gfx::Vertex3m_pPos
 Vertices.
gfx::VertexNTCm_pNorTexColor
sn::Meshm_pMesh
gfx::Vertex3Cm_pNormalVerts
 Normal lines.
gfx::Color m_cNormal [4]
 Normal lines color.
u32m_pIndices
 Indices.
int * m_pTiles
 Tile infos.
int * m_pTiles2
int * m_pTilesTemp
u8m_pBlendTiles
float m_fWidth
 Tile width and height size.
float m_fHeight
float m_fXOffset
float m_fYOffset
int m_iNumVerts
 Count.
int m_iNumIndices
int m_iNumCols
int m_iNumRows
int m_iNumColspp
int m_iNumRowspp
int m_iNumUparts
int m_iNumVparts
int m_iNumCausticsTextures
int m_iCurrentCaustic
int m_iTextureIDSizeX
int m_iTextureIDSizeY
core::Timerm_pCausticsTimer
gfx::ShaderHandle m_shLit
gfx::ShaderHandle m_shWVP
gfx::ShaderHandle m_shView
gfx::ShaderHandle m_shShadowMat
gfx::ShaderHandle m_shfvEyePosition
bool m_bWater
bool m_bCaustics
bool m_bPosChanged
bool m_bNorTexChanged
bool m_bReceiveShadow
bool m_bTileTerrain2
const char * m_pShadowShaderCode
 Shadow code.
math::Matrixm_pShadowMatrix
gfx::Texture ** m_ppCausticsTextures
gfx::Texturem_pTextureID
 Terrain Texture ID for storing the tile data.
gfx::Texturem_pTextureBlend
gfx::Texturem_pBlendMap
gfx::Colorf m_cStart
gfx::Colorf m_cEnd
gfx::TileTexturem_pTileTexture
 Tile texture pointer.
gfx::TileTexturem_pNormalMapTileTexture
ph::DynamicTriangleMeshm_pDTM
 Dynamic Triangle Mesh class pointer.
gfx::Materialm_pMaterial
 Material.
gfx::Shaderm_pVSdecal
 Decal shader.
gfx::Shaderm_pPSdecal
kge::core::Functor1< void,
gfx::ShaderInstance * > * 
m_pDecalFun
gfx::ShaderHandle m_shDecalWVP
gfx::ShaderHandle m_shDecalAlpha
std::map< u32, DecalData * > m_mDecalBufferData
- Protected Attributes inherited from kge::sn::SceneNode
core::String m_sName
int m_iID
SceneManagerm_pSnMan
gfx::Rendererm_pRenderer
bool m_bVis
bool m_bAutoCulling
bool m_bVisFrame
SceneNodem_pParent
std::vector< SceneNode * > m_vChilds
std::vector< int > m_vEffectType
std::vector< efx::Effect * > m_vEffect
math::Matrixm_pAbsMat
math::Matrixm_pFinalMat
math::Vector m_Position
math::Vector m_Rotation
math::Vector m_Scale
math::Spherem_pBB
math::AABBm_pAABB
NodeType m_eNodeType
bool m_hasShadow

Detailed Description

Definition at line 63 of file TileTerrain.h.

Constructor & Destructor Documentation

kge::sn::TileTerrain::TileTerrain ( )

Constructor.

virtual kge::sn::TileTerrain::~TileTerrain ( )
virtual

Destructor.

Member Function Documentation

virtual bool kge::sn::TileTerrain::AddEffect ( efx::EffectType  p,
efx::Effect **  ppOut 
)
virtual

Ezafe kardane effect be hamin gereh.

Parameters
pEffecti ke mikhahid ezafe konid.
ppOutClass Effect sakhte shode.
Returns
agar ke in gereh betavanad in effect ra bepazirad true bar migardanad.

Reimplemented from kge::sn::SceneNode.

void kge::sn::TileTerrain::Blend ( int  Col,
int  Row 
)

Blend the tile stored in the given position and their same tiles attached to it.

Decal* kge::sn::TileTerrain::CreateDecal ( int  sizeX,
int  sizeY,
gfx::Texture pTex 
)

Create a decal and return its pointer.

virtual void kge::sn::TileTerrain::CreateShaderCode ( core::String VertexCode,
core::String PixelCode 
)
virtual

Creates the terrain shader code.

Reimplemented in kge::sn::TileTerrain2.

virtual void kge::sn::TileTerrain::Draw ( bool  WithMaterial,
bool  WithTransform,
bool  bPosition,
bool  bNormalTexcoord,
bool  bTangentBinormal 
)
virtual

Draw the node with/without its Materials and Transforms.

Parameters
WithMaterialDraw it with its own materials or not?
WithMaterialDraw it with its own Transformations or not?

Implements kge::sn::SceneNode.

void kge::sn::TileTerrain::EnableWater ( bool  Enable,
const gfx::Colorf cStart = gfx::Colorf(255, 255, 255),
const gfx::Colorf cEnd = gfx::Colorf(0, 229, 255) 
)

Enables the under water vertex coloring effect.

void kge::sn::TileTerrain::Fill ( int  Col,
int  Row,
int  TileID 
)

Fill the terrain with the given tile ID.

void kge::sn::TileTerrain::Flood_Fill ( int  Col,
int  Row,
int  TileID 
)
protected
void kge::sn::TileTerrain::Flood_Fill ( int  Col,
int  Row,
int  ReplaceID,
int  TileID 
)
protected
int kge::sn::TileTerrain::GetAABBcount ( )
inline

Return the number of AABB that splited the terrain.

Definition at line 195 of file TileTerrain.h.

math::AABB* kge::sn::TileTerrain::GetAABBs ( )
inline

Returns the AABBs array pointer.

Definition at line 198 of file TileTerrain.h.

int kge::sn::TileTerrain::GetBlendMap ( u8 pBlendMap)

Returns blend map size if you pass NULL and set the pointer otherwise.

int kge::sn::TileTerrain::GetColumnsCount ( )
inline

Returns the columns count.

Definition at line 235 of file TileTerrain.h.

ph::DynamicTriangleMesh* kge::sn::TileTerrain::GetDynamicTriangleMesh ( )
inline

Returns the DynamicTriangleMesh pointer.

Definition at line 186 of file TileTerrain.h.

float kge::sn::TileTerrain::GetHeight ( float  x,
float  z 
)

Returns the terrain height at the given grid position.

int kge::sn::TileTerrain::GetIndexesCount ( )
inline

Returns the terrain indexes count.

Definition at line 183 of file TileTerrain.h.

u32* kge::sn::TileTerrain::GetIndices ( )
inline

Returns the terrain indexes.

Definition at line 180 of file TileTerrain.h.

virtual gfx::Material* kge::sn::TileTerrain::GetMaterial ( u32  Index)
inlinevirtual

Get the terrain material.

Reimplemented from kge::sn::SceneNode.

Definition at line 216 of file TileTerrain.h.

virtual u32 kge::sn::TileTerrain::GetMaterialCount ( )
inlinevirtual

Get the count of materials this terrain has. always returns 1.

Reimplemented from kge::sn::SceneNode.

Definition at line 213 of file TileTerrain.h.

gfx::Vertex3* kge::sn::TileTerrain::GetPositions ( )
inline

Returns the terrain position vertices.

Definition at line 150 of file TileTerrain.h.

int kge::sn::TileTerrain::GetRowsCount ( )
inline

Returns the rows count.

Definition at line 238 of file TileTerrain.h.

math::Vector2I kge::sn::TileTerrain::GetTileByFaceID ( int  FaceID)

Gets the column number and row number by Face index.

int kge::sn::TileTerrain::GetTiles ( int *  pTiles1,
int *  pTiles2 
)

Returns the tile count if you pass the NULL and set them otherwise.

gfx::TileTexture* kge::sn::TileTerrain::GetTileTexture ( )
inline

Returns the tile texture pointer then you can modify it directly.

Definition at line 105 of file TileTerrain.h.

int kge::sn::TileTerrain::GetUcount ( )
inline

Returns the number of ... in U.

Definition at line 201 of file TileTerrain.h.

int kge::sn::TileTerrain::GetVcount ( )
inline

Returns the number of ... in V.

Definition at line 204 of file TileTerrain.h.

void kge::sn::TileTerrain::GetVertexColors ( ul32 pVertexColor)

Copy the vertex colors to the pointer.

int kge::sn::TileTerrain::GetVertexCount ( )
inline

Returns the count of the vertexes.

Definition at line 177 of file TileTerrain.h.

void kge::sn::TileTerrain::GetYs ( float *  inArray)

Create an array of Y position vertices and return.

void kge::sn::TileTerrain::OnLost ( )
void kge::sn::TileTerrain::OnReset ( )

Refills vertex and index buffers after reseting device.

virtual void kge::sn::TileTerrain::PostRender ( )
virtual

Karhaee ke bad az render bayad anjam beshe.

Implements kge::sn::SceneNode.

virtual void kge::sn::TileTerrain::PreRender ( float  elapsedTime = 0.0f)
virtual

Karhayee ke Ghabl az render bayad anjam shvad. Mesle colision detection.

Implements kge::sn::SceneNode.

void kge::sn::TileTerrain::ReceiveShadow ( const char *  Code,
math::Matrix shadowmat 
)

Sets the shadow receiver params.

virtual void kge::sn::TileTerrain::ReCreate ( int  numCols,
int  numRows,
float  MinHeight = 0.0f,
float  MaxHeight = 0.0f 
)
virtual

Creates a tile based terrain with the given size.

Reimplemented in kge::sn::TileTerrain2.

void kge::sn::TileTerrain::RecreateShaders ( )
void kge::sn::TileTerrain::RemoveDecal ( Decal pDecal)

Empty space in vertex buffer.

virtual void kge::sn::TileTerrain::Render ( )
virtual

Render the terrain.

Implements kge::sn::SceneNode.

Reimplemented in kge::sn::TileTerrain2.

void kge::sn::TileTerrain::RenderDecals ( )

Render decals.

void kge::sn::TileTerrain::SetBlendMap ( u8 pBlendMap)

Sets the blend map.

void kge::sn::TileTerrain::SetBlendMap ( gfx::Texture pTexture)
inline

Sets the Blend Map.

Definition at line 229 of file TileTerrain.h.

void kge::sn::TileTerrain::SetCaustics ( gfx::Texture **  ppTextures,
int  TexturesCount,
int  speed = 100 
)

Enable and sets the caustics textures.

void kge::sn::TileTerrain::SetDecal ( float  fx,
float  fy,
Decal pDecal 
)

Sets the decal on position.

void kge::sn::TileTerrain::SetDecalShaderParams ( gfx::ShaderInstance pSI)
protected
void kge::sn::TileTerrain::SetDynamicTriangleMesh ( ph::DynamicTriangleMesh pDTM)

Returns the DynamicTriangleMesh pointer and send updates to it if needed.

void kge::sn::TileTerrain::SetHeight ( int  IndexID,
float  h 
)

Sets the terrain height by the index id.

void kge::sn::TileTerrain::SetHeight ( int  Col,
int  Row,
float  h 
)

Sets the terrain height by the tile position.

void kge::sn::TileTerrain::SetHeightAdd ( int  IndexID,
float  h 
)

Adds the terrain height by the index id.

void kge::sn::TileTerrain::SetHeightAdd ( int  Col,
int  Row,
float  h 
)

Adds the terrain height by the tile position.

void kge::sn::TileTerrain::SetNormalMapTileTexture ( gfx::TileTexture pTileTex)

Sets the tile texture.

virtual void kge::sn::TileTerrain::SetShaderParams ( )
protectedvirtual
virtual void kge::sn::TileTerrain::SetTile ( int  Col,
int  Row,
u32  TileID 
)
virtual

Sets the tile in the terrain.

Reimplemented in kge::sn::TileTerrain2.

void kge::sn::TileTerrain::SetTile ( int  Col,
int  Row,
int  TileID,
int  TileID2 
)
protected
void kge::sn::TileTerrain::SetTiles ( u32  tileID)

Sets the tiles.

void kge::sn::TileTerrain::SetTiles ( int *  pTiles1,
int *  pTiles2 
)

Sets the tiles.

void kge::sn::TileTerrain::SetTileTexture ( gfx::TileTexture pTileTex)

Sets the tile texture.

void kge::sn::TileTerrain::SetVertexColor ( int  IndexID,
gfx::Color  c 
)

Sets the terrain color by the index id.

void kge::sn::TileTerrain::SetVertexColor ( int  Col,
int  Row,
gfx::Color  c 
)

Sets the terrain color by the tile position.

void kge::sn::TileTerrain::SetVertexColors ( ul32 pVertexColor)

Copy the vertex colors from the pointer.

void kge::sn::TileTerrain::SetYs ( float *  pHeights)

Sets the heights.

void kge::sn::TileTerrain::Smooth ( int  Col,
int  Row 
)

Smooths the tile height.

void kge::sn::TileTerrain::SmoothOneNode ( int  Col,
int  Row 
)

Smooths one node height.

void kge::sn::TileTerrain::UpdateNormals ( )

Recalculate the terrain normals.

virtual void kge::sn::TileTerrain::userSetShaderParams ( )
inlineprotectedvirtual

Reimplemented in kge::sn::TileTerrain2.

Definition at line 371 of file TileTerrain.h.

Member Data Documentation

bool kge::sn::TileTerrain::m_bCaustics
protected

Definition at line 318 of file TileTerrain.h.

bool kge::sn::TileTerrain::m_bNorTexChanged
protected

Definition at line 318 of file TileTerrain.h.

bool kge::sn::TileTerrain::m_bPosChanged
protected

Definition at line 318 of file TileTerrain.h.

bool kge::sn::TileTerrain::m_bReceiveShadow
protected

Definition at line 318 of file TileTerrain.h.

bool kge::sn::TileTerrain::m_bTileTerrain2
protected

Definition at line 318 of file TileTerrain.h.

bool kge::sn::TileTerrain::m_bWater
protected

Definition at line 318 of file TileTerrain.h.

gfx::Colorf kge::sn::TileTerrain::m_cEnd
protected

Definition at line 337 of file TileTerrain.h.

gfx::Color kge::sn::TileTerrain::m_cNormal[4]
protected

Normal lines color.

Definition at line 277 of file TileTerrain.h.

gfx::Colorf kge::sn::TileTerrain::m_cStart
protected

Definition at line 337 of file TileTerrain.h.

float kge::sn::TileTerrain::m_fHeight
protected

Definition at line 289 of file TileTerrain.h.

float kge::sn::TileTerrain::m_fWidth
protected

Tile width and height size.

Definition at line 289 of file TileTerrain.h.

float kge::sn::TileTerrain::m_fXOffset
protected

Definition at line 289 of file TileTerrain.h.

float kge::sn::TileTerrain::m_fYOffset
protected

Definition at line 289 of file TileTerrain.h.

int kge::sn::TileTerrain::m_iCurrentCaustic
protected

Definition at line 295 of file TileTerrain.h.

int kge::sn::TileTerrain::m_iNumCausticsTextures
protected

Definition at line 295 of file TileTerrain.h.

int kge::sn::TileTerrain::m_iNumCols
protected

Definition at line 295 of file TileTerrain.h.

int kge::sn::TileTerrain::m_iNumColspp
protected

Definition at line 295 of file TileTerrain.h.

int kge::sn::TileTerrain::m_iNumIndices
protected

Definition at line 295 of file TileTerrain.h.

int kge::sn::TileTerrain::m_iNumRows
protected

Definition at line 295 of file TileTerrain.h.

int kge::sn::TileTerrain::m_iNumRowspp
protected

Definition at line 295 of file TileTerrain.h.

int kge::sn::TileTerrain::m_iNumUparts
protected

Definition at line 295 of file TileTerrain.h.

int kge::sn::TileTerrain::m_iNumVerts
protected

Count.

Definition at line 295 of file TileTerrain.h.

int kge::sn::TileTerrain::m_iNumVparts
protected

Definition at line 295 of file TileTerrain.h.

int kge::sn::TileTerrain::m_iTextureIDSizeX
protected

Definition at line 295 of file TileTerrain.h.

int kge::sn::TileTerrain::m_iTextureIDSizeY
protected

Definition at line 295 of file TileTerrain.h.

std::map<u32, DecalData*> kge::sn::TileTerrain::m_mDecalBufferData
protected

Definition at line 360 of file TileTerrain.h.

gfx::Texture* kge::sn::TileTerrain::m_pBlendMap
protected

Definition at line 334 of file TileTerrain.h.

u8* kge::sn::TileTerrain::m_pBlendTiles
protected

Definition at line 286 of file TileTerrain.h.

core::Timer* kge::sn::TileTerrain::m_pCausticsTimer
protected

Definition at line 308 of file TileTerrain.h.

kge::core::Functor1<void, gfx::ShaderInstance*>* kge::sn::TileTerrain::m_pDecalFun
protected

Definition at line 355 of file TileTerrain.h.

ph::DynamicTriangleMesh* kge::sn::TileTerrain::m_pDTM
protected

Dynamic Triangle Mesh class pointer.

Definition at line 345 of file TileTerrain.h.

u32* kge::sn::TileTerrain::m_pIndices
protected

Indices.

Definition at line 280 of file TileTerrain.h.

gfx::Material* kge::sn::TileTerrain::m_pMaterial
protected

Material.

Definition at line 348 of file TileTerrain.h.

sn::Mesh* kge::sn::TileTerrain::m_pMesh
protected

Definition at line 271 of file TileTerrain.h.

gfx::TileTexture * kge::sn::TileTerrain::m_pNormalMapTileTexture
protected

Definition at line 341 of file TileTerrain.h.

gfx::Vertex3C* kge::sn::TileTerrain::m_pNormalVerts
protected

Normal lines.

Definition at line 274 of file TileTerrain.h.

gfx::VertexNTC* kge::sn::TileTerrain::m_pNorTexColor
protected

Definition at line 269 of file TileTerrain.h.

gfx::Texture** kge::sn::TileTerrain::m_ppCausticsTextures
protected

Definition at line 330 of file TileTerrain.h.

gfx::Vertex3* kge::sn::TileTerrain::m_pPos
protected

Vertices.

Definition at line 268 of file TileTerrain.h.

gfx::Shader * kge::sn::TileTerrain::m_pPSdecal
protected

Definition at line 351 of file TileTerrain.h.

gfx::Shader * kge::sn::TileTerrain::m_pPshader

Definition at line 256 of file TileTerrain.h.

math::Matrix* kge::sn::TileTerrain::m_pShadowMatrix
protected

Definition at line 327 of file TileTerrain.h.

const char* kge::sn::TileTerrain::m_pShadowShaderCode
protected

Shadow code.

Definition at line 326 of file TileTerrain.h.

gfx::Texture* kge::sn::TileTerrain::m_pTextureBlend
protected

Definition at line 333 of file TileTerrain.h.

gfx::Texture* kge::sn::TileTerrain::m_pTextureID
protected

Terrain Texture ID for storing the tile data.

Definition at line 332 of file TileTerrain.h.

int* kge::sn::TileTerrain::m_pTiles
protected

Tile infos.

Definition at line 283 of file TileTerrain.h.

int * kge::sn::TileTerrain::m_pTiles2
protected

Definition at line 283 of file TileTerrain.h.

int* kge::sn::TileTerrain::m_pTilesTemp
protected

Definition at line 285 of file TileTerrain.h.

gfx::TileTexture* kge::sn::TileTerrain::m_pTileTexture
protected

Tile texture pointer.

Definition at line 341 of file TileTerrain.h.

gfx::Shader* kge::sn::TileTerrain::m_pVSdecal
protected

Decal shader.

Definition at line 351 of file TileTerrain.h.

gfx::Shader* kge::sn::TileTerrain::m_pVshader

Shaders.

Definition at line 256 of file TileTerrain.h.

gfx::ShaderHandle kge::sn::TileTerrain::m_shDecalAlpha
protected

Definition at line 357 of file TileTerrain.h.

gfx::ShaderHandle kge::sn::TileTerrain::m_shDecalWVP
protected

Definition at line 356 of file TileTerrain.h.

gfx::ShaderHandle kge::sn::TileTerrain::m_shfvEyePosition
protected

Definition at line 311 of file TileTerrain.h.

gfx::ShaderHandle kge::sn::TileTerrain::m_shLit
protected

Definition at line 311 of file TileTerrain.h.

gfx::ShaderHandle kge::sn::TileTerrain::m_shShadowMat
protected

Definition at line 311 of file TileTerrain.h.

gfx::ShaderHandle kge::sn::TileTerrain::m_shView
protected

Definition at line 311 of file TileTerrain.h.

gfx::ShaderHandle kge::sn::TileTerrain::m_shWVP
protected

Definition at line 311 of file TileTerrain.h.

std::vector<TileTerrainData> kge::sn::TileTerrain::m_vTerrainData
protected

Terrain data.

Definition at line 262 of file TileTerrain.h.

std::vector<int> kge::sn::TileTerrain::m_vVisibleParts
protected

Visible parts.

Definition at line 265 of file TileTerrain.h.


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