Public Member Functions |
| TileTerrain2 () |
| Constructor.
|
| ~TileTerrain2 () |
| Destructor.
|
void | ReCreate (int numCols, int numRows, float MinHeight=0.0f, float MaxHeight=0.0f) |
| Create the terrain if already created then recreate it.
|
void | CreateShaderCode (core::String &VertexCode, core::String &PixelCode) |
| Creates the terrain shader code.
|
void | CreateDeferredShaderCode (core::String &VertexCode, core::String &PixelCode) |
| Creates the terrain shader code for deferred shading.
|
void | Render () |
| Render the terrain.
|
void | SetBrush (char *FileName) |
| Sets the brush texture and shape.
|
void | SetBrushSize (float fSize) |
| Sets the brush size.
|
void | BrushTile (float x, float y, int tileid, float BlendFactor, bool ChangeBackground=false, bool Mode2=false) |
| Brush the tiles.
|
void | SetTile (int Col, int Row, u32 TileID) |
| Sets the tile in the terrain.
|
void | SetTileTexture (gfx::Texture *pTileTex, int Width, int Height, int HorizantalTilesCount, int VerticalTilesCount, int TileSizeInPixel) |
| Sets the tile texture.
|
int | GetMapsCount () const |
const u8 * | GetBlendMapsData (int n) const |
const u8 * | GetTextureIDMapsData (int n) const |
void | SetBlendMapsData (int n, u8 *data, int size) |
void | SetTextureIDMapsData (int n, u8 *data, int size) |
| 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 | 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) |
void | SetTileTexture (gfx::TileTexture *pTileTex) |
| Sets the tile texture.
|
void | SetNormalMapTileTexture (gfx::TileTexture *pTileTex) |
| Sets the tile texture.
|
gfx::TileTexture * | GetTileTexture () |
| Returns the tile texture pointer then you can modify it directly.
|
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::Vertex3 * | GetPositions () |
| 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.
|
u32 * | GetIndices () |
| Returns the terrain indexes.
|
int | GetIndexesCount () |
| Returns the terrain indexes count.
|
ph::DynamicTriangleMesh * | GetDynamicTriangleMesh () |
| 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::AABB * | GetAABBs () |
| Returns the AABBs array pointer.
|
int | GetUcount () |
| Returns the number of ... in U.
|
int | GetVcount () |
| Returns the number of ... in V.
|
Decal * | CreateDecal (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::Material * | GetMaterial (u32 Index) |
| Get the terrain material.
|
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 () |
| 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::Vector & | GetPosition () const |
| Returns the node position.
|
virtual const math::Vector & | GetRotation () const |
| Returns the node rotation.
|
virtual const math::Vector & | GetScale () const |
| Returns the node scale.
|
virtual math::Matrix * | GetAbsoluteMatrix () const |
| Get the absolute matrix.
|
virtual math::Matrix * | GetFinalMatrix () |
| Get the final matrix.
|
virtual math::Sphere * | GetBoundingBox () |
| Returns the node bounding box.
|
virtual math::AABB * | GetAxisAlignedBoundingBox () |
| 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 SceneNode * | GetParent () |
| 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::String * | GetName () |
| 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.
|
| 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.
|