1 #ifndef COMPONENTS_TERRAIN_WORLD_H
2 #define COMPONENTS_TERRAIN_WORLD_H
16 class IncrementalCompileOperation;
39 Storage* storage,
int nodeMask);
48 virtual osg::ref_ptr<osg::Node>
cacheCell(
int x,
int y) {
return NULL;}
Wrapper class that constructs and provides access to the most commonly used resource subsystems...
Definition: resourcesystem.hpp:24
The basic interface for a terrain world. How the terrain chunks are paged and displayed is up to the ...
Definition: world.hpp:32
World(osg::Group *parent, Resource::ResourceSystem *resourceSystem, osgUtil::IncrementalCompileOperation *ico, Storage *storage, int nodeMask)
Definition: world.cpp:11
osg::ref_ptr< osgUtil::IncrementalCompileOperation > mIncrementalCompileOperation
Definition: world.hpp:64
Storage * mStorage
Definition: world.hpp:57
virtual void loadCell(int x, int y)
Definition: world.hpp:51
We keep storage of terrain data abstract here since we need different implementations for game and ed...
Definition: storage.hpp:21
virtual ~World()
Definition: world.cpp:25
osg::ref_ptr< osg::Group > mTerrainRoot
Definition: world.hpp:60
virtual void updateTextureFiltering()
Definition: world.hpp:42
virtual void updateCache()
Definition: world.hpp:44
Resource::ResourceSystem * mResourceSystem
Definition: world.hpp:62
virtual void unloadCell(int x, int y)
Definition: world.hpp:52
Storage * getStorage()
Definition: world.hpp:54
virtual osg::ref_ptr< osg::Node > cacheCell(int x, int y)
Definition: world.hpp:48
float getHeightAt(const osg::Vec3f &worldPos)
Definition: world.cpp:32
osg::ref_ptr< osg::Group > mParent
Definition: world.hpp:59