|
OpenMW
|
The basic interface for a terrain world. How the terrain chunks are paged and displayed is up to the implementation. More...
#include <world.hpp>
Public Member Functions | |
| World (osg::Group *parent, osg::Group *compileRoot, Resource::ResourceSystem *resourceSystem, Storage *storage, int nodeMask, int preCompileMask, int borderMask) | |
| virtual | ~World () |
| void | setTargetFrameRate (float rate) |
| See CompositeMapRenderer::setTargetFrameRate. More... | |
| void | updateTextureFiltering () |
| float | getHeightAt (const osg::Vec3f &worldPos) |
| virtual void | clearAssociatedCaches () |
| virtual void | cacheCell (View *view, int x, int y) |
| virtual void | loadCell (int x, int y) |
| virtual void | unloadCell (int x, int y) |
| virtual void | enable (bool enabled) |
| virtual void | setBordersVisible (bool visible) |
| virtual View * | createView () |
| virtual void | preload (View *view, const osg::Vec3f &eyePoint) |
| virtual void | reportStats (unsigned int frameNumber, osg::Stats *stats) |
| virtual void | setDefaultViewer (osg::Object *obj) |
| Set the default viewer (usually a Camera), used as viewpoint for any viewers that don't use their own viewpoint. More... | |
| Storage * | getStorage () |
Protected Attributes | |
| Storage * | mStorage |
| osg::ref_ptr< osg::Group > | mParent |
| osg::ref_ptr< osg::Group > | mTerrainRoot |
| osg::ref_ptr< osg::Group > | mCompositeMapCamera |
| osg::ref_ptr < CompositeMapRenderer > | mCompositeMapRenderer |
| Resource::ResourceSystem * | mResourceSystem |
| std::unique_ptr< TextureManager > | mTextureManager |
| std::unique_ptr< ChunkManager > | mChunkManager |
| std::unique_ptr < MWRender::CellBorder > | mCellBorder |
| bool | mBorderVisible |
| std::set< std::pair< int, int > > | mLoadedCells |
The basic interface for a terrain world. How the terrain chunks are paged and displayed is up to the implementation.
| Terrain::World::World | ( | osg::Group * | parent, |
| osg::Group * | compileRoot, | ||
| Resource::ResourceSystem * | resourceSystem, | ||
| Storage * | storage, | ||
| int | nodeMask, | ||
| int | preCompileMask, | ||
| int | borderMask | ||
| ) |
| storage | Storage instance to get terrain data from (heights, normals, colors, textures..) |
| nodeMask | mask for the terrain root |
| preCompileMask | mask for pre compiling textures |
|
virtual |
Load a terrain cell at maximum LOD and store it in the View for later use.
Reimplemented in Terrain::QuadTreeWorld, and Terrain::TerrainGrid.
|
virtual |
Clears the cached land and landtexture data.
|
inlinevirtual |
Create a View to use with preload feature. The caller is responsible for deleting the view.
Reimplemented in Terrain::QuadTreeWorld, and Terrain::TerrainGrid.
|
inlinevirtual |
Reimplemented in Terrain::QuadTreeWorld.
| float Terrain::World::getHeightAt | ( | const osg::Vec3f & | worldPos | ) |
|
inline |
|
inlinevirtual |
Reimplemented in Terrain::QuadTreeWorld.
|
inlinevirtual |
Reimplemented in Terrain::QuadTreeWorld.
|
virtual |
|
inlinevirtual |
Set the default viewer (usually a Camera), used as viewpoint for any viewers that don't use their own viewpoint.
Reimplemented in Terrain::QuadTreeWorld.
| void Terrain::World::setTargetFrameRate | ( | float | rate | ) |
Remove the cell from the scene graph.
Reimplemented in Terrain::TerrainGrid.
| void Terrain::World::updateTextureFiltering | ( | ) |
Apply the scene manager's texture filtering settings to all cached textures.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.6