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, Resource::ResourceSystem *resourceSystem, osgUtil::IncrementalCompileOperation *ico, Storage *storage, int nodeMask) | |
virtual | ~World () |
virtual void | updateTextureFiltering () |
virtual void | updateCache () |
float | getHeightAt (const osg::Vec3f &worldPos) |
virtual osg::ref_ptr< osg::Node > | cacheCell (int x, int y) |
virtual void | loadCell (int x, int y) |
virtual void | unloadCell (int x, int y) |
Storage * | getStorage () |
Protected Attributes | |
Storage * | mStorage |
osg::ref_ptr< osg::Group > | mParent |
osg::ref_ptr< osg::Group > | mTerrainRoot |
Resource::ResourceSystem * | mResourceSystem |
osg::ref_ptr < osgUtil::IncrementalCompileOperation > | mIncrementalCompileOperation |
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, |
Resource::ResourceSystem * | resourceSystem, | ||
osgUtil::IncrementalCompileOperation * | ico, | ||
Storage * | storage, | ||
int | nodeMask | ||
) |
storage | Storage instance to get terrain data from (heights, normals, colors, textures..) |
nodeMask | mask for the terrain root |
|
virtual |
float Terrain::World::getHeightAt | ( | const osg::Vec3f & | worldPos | ) |
|
inline |
Reimplemented in Terrain::TerrainGrid.
Reimplemented in Terrain::TerrainGrid.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in Terrain::TerrainGrid.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |