Public Types |
| enum | Neighbor {
NORTH = 0,
SOUTH = 1,
EAST = 2,
WEST = 3,
HERE = 4
} |
Public Methods |
| | TerrainRenderable () |
| | ~TerrainRenderable () |
| void | deleteGeometry () |
| void | init (TerrainOptions &options) |
| | Initializes the TerrainRenderable with the given options. More...
|
| virtual const String & | getName (void) const |
| | Returns the name of the TerrainRenderable. More...
|
| virtual const String | getMovableType (void) const |
| | Returns the type of the movable. More...
|
| const AxisAlignedBox & | getBoundingBox (void) const |
| | Returns the bounding box of this TerrainRenderable. More...
|
| virtual void | _notifyCurrentCamera (Camera *cam) |
| | Updates the level of detail to be used for rendering this TerrainRenderable based on the passed in Camera. More...
|
| virtual void | _updateRenderQueue (RenderQueue *queue) |
| | Internal method by which the movable object must add Renderable subclass instances to the rendering queue. More...
|
| virtual void | getRenderOperation (RenderOperation &rend) |
| | Constructs a RenderOperation to render the TerrainRenderable. More...
|
| virtual Material * | getMaterial (void) const |
| | Retrieves a pointer to the material this renderable object uses. More...
|
| virtual void | getWorldTransforms (Matrix4 *xform) |
| | Gets the world transform matrix / matrices for this renderable object. More...
|
| int | getSize () |
| | Returns the size of the TerrainRenderable. More...
|
| int | getRenderLevel () |
| | Returns the mipmap level that will be rendered for this frame. More...
|
| void | setForcedRenderLevel (int i) |
| | Forces the LOD to the given level from this point on. More...
|
| int | getNumMipMaps () |
| | Returns the maximum number of mipmaps used for LOD. More...
|
| void | _getNormalAt (float x, float y, Vector3 *result) |
| | Calculates the normal at the given location. More...
|
| float | getHeightAt (float x, float y) |
| | Returns the terrain height at the given coordinates. More...
|
| bool | intersectSegment (const Vector3 &start, const Vector3 &end, Vector3 *result) |
| | Intersects the segment witht he terrain tile. More...
|
| void | _setNeighbor (Neighbor n, TerrainRenderable *t) |
| | Sets the appropriate neighbor for this TerrainRenderable. More...
|
| TerrainRenderable * | _getNeighbor (Neighbor n) |
| | Returns the neighbor TerrainRenderable. More...
|
| void | setMaterial (Material *m) |
| void | _alignNeighbors () |
| | Aligns mipmap levels between neighbors so that only 1 LOD level separates neighbors. More...
|
| void | _calculateNormals () |
| | Calculates static normals for lighting the terrain. More...
|
| void | _generateVertexLighting (const Vector3 &sun, ColourValue ambient) |
| | Generates terrain shadows and lighting using vertex colors. More...
|
| Real | getSquaredViewDepth (const Camera *cam) const |
| | Overridden, see Renderable. More...
|
| virtual unsigned short | getNumWorldTransforms (void) |
| | Returns the number of world transform matrices this renderable requires. More...
|
| virtual bool | useIdentityProjection (void) |
| | Returns whether or not to use an 'identity' projection. More...
|
| virtual bool | useIdentityView (void) |
| | Returns whether or not to use an 'identity' projection. More...
|
| virtual SceneDetailLevel | getRenderDetail () |
| | Returns the preferred rasterisation mode of this renderable. More...
|
| virtual SceneNode * | getParentNode (void) |
| | Returns the node to which this object is attached. More...
|
| virtual void | _notifyAttached (SceneNode *parent) |
| | Internal method called to notify the object that it has been attached to a node. More...
|
| virtual bool | isAttached (void) const |
| | Returns true if this object is attached to a SceneNode. More...
|
| virtual void | setVisible (bool visible) |
| | Tells this object whether to be visible or not, if it has a renderable component. More...
|
| virtual bool | isVisible (void) const |
| | Returns whether or not this object is supposed to be visible or not. More...
|
| virtual void | setUserObject (UserDefinedObject *obj) |
| | Call this to associate your own custom user object instance with this MovableObject. More...
|
| virtual UserDefinedObject * | getUserObject (void) |
| | Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject. More...
|
| virtual void | setRenderQueueGroup (RenderQueueGroupID queueID) |
| | Sets the render queue group this entity will be rendered through. More...
|
| virtual RenderQueueGroupID | getRenderQueueGroup (void) |
| | Gets the queue group for this entity, see setRenderQueueGroup for full details. More...
|
Static Public Attributes |
| int | mRenderedTris = 0 |
Protected Methods |
| int | _index (int x, int z) |
| | Returns the index into the height array for the given coords. More...
|
| float | _vertex (int x, int z, int n) |
| | Returns the vertex coord for the given coordinates. More...
|
| int | _numNeighbors () |
| bool | _hasNeighborRenderLevel (int i) |
| void | _adjustRenderLevel (int i) |
| void | _initLevelIndexes () |
| bool | _checkSize (int n) |
| void | _calculateMinLevelDist2 (Real C) |
| Real | _calculateCFactor () |
Protected Attributes |
| GeometryData | mTerrain |
| int | mNumMipMaps |
| int | mRenderLevel |
| Real * | mMinLevelDistSqr |
| TerrainRenderable * | mNeighbors [4] |
| AxisAlignedBox | mBounds |
| Vector3 | mCenter |
| Vector3 | mScale |
| int | mSize |
| int | mWorldSize |
| String | mName |
| Material * | mMaterial |
| bool | mRenderLevelChanged |
| bool | mInit |
| int | mNearPlane |
| int | mMaxPixelError |
| int | mVertResolution |
| Real | mTopCoord |
| Real | old_L |
| Real | current_L |
| bool | mColored |
| bool | mLit |
| int | mForcedRenderLevel |
| SceneNode * | mParentNode |
| | node to which this object is attached. More...
|
| bool | mVisible |
| | Is this object visible? More...
|
| UserDefinedObject * | mUserObject |
| | User defined object which is linked to this object. More...
|
| RenderQueueGroupID | mRenderQueueID |
| | The render queue to use when rendering this object. More...
|
Static Protected Attributes |
| String | mType = "TerrainMipMap" |
| LevelArray | mLevelIndex |
| bool | mLevelInit = false |