Go to the documentation of this file.
29 #ifndef __Ogre_TerrainPagedWorldSection_H__
30 #define __Ogre_TerrainPagedWorldSection_H__
41 class Grid2DPageStrategy;
42 class Grid2DPageStrategyData;
112 virtual void setLoadRadius(
Real sz);
114 virtual Real getLoadRadius()
const;
116 virtual void setHoldRadius(
Real sz);
118 virtual Real getHoldRadius();
122 virtual void setPageRangeMinX(
int32 minX);
124 virtual void setPageRangeMinY(
int32 minY);
126 virtual void setPageRangeMaxX(
int32 maxX);
128 virtual void setPageRangeMaxY(
int32 maxY);
130 virtual int32 getPageRangeMinX()
const;
132 virtual int32 getPageRangeMinY()
const;
134 virtual int32 getPageRangeMaxX()
const;
136 virtual int32 getPageRangeMaxY()
const;
144 virtual void setLoadingIntervalMs(
uint32 loadingIntervalMs);
146 virtual uint32 getLoadingIntervalMs()
const;
149 void loadPage(
PageID pageID,
bool forceSynchronous =
false);
151 void unloadPage(
PageID pageID,
bool forceSynchronous =
false);
174 mTerrainDefiner = terrainDefiner;
190 virtual void syncSettings();
Helper class to assist you in managing multiple terrain instances that are connected to each other.
Interface to a general purpose request / response style background work queue.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
General purpose request structure.
std::list< PageID > mPagesInLoading
Page strategy which loads new pages based on a regular 2D grid.
virtual void defineTerrain(long x, long y)
Define a 'slot' in the terrain grid - in this case to be loaded from a generated file name.
#define _OgreTerrainExport
General purpose response structure.
void setDefiner(TerrainDefiner *terrainDefiner)
virtual ~TerrainDefiner()
uint32 PageID
Identifier for a page.
Manages the organisation and rendering of a 'scene' i.e.
Interface definition for a handler of responses.
uint32 mLoadingIntervalMs
unsigned long mNextLoadingTime
This class represents a collection of pages which make up a world.
virtual void define(TerrainGroup *terrainGroup, long x, long y)
A world section which includes paged terrain.
Represents a section of the PagedWorld which uses a given PageStrategy, and which is made up of a gen...
Utility class providing helper methods for reading / writing structured data held in a DataStream.
Specialisation of PageStrategyData for Grid2DPageStrategy.
TerrainGroup * mTerrainGroup
Interface definition for a handler of requests.
float Real
Software floating point type.
virtual TerrainGroup * getTerrainGroup()
Get the TerrainGroup which this world section is using.
static const uint16 WORKQUEUE_LOAD_TERRAIN_PAGE_REQUEST
TerrainDefiner * mTerrainDefiner
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15