OgreTerrainPaging.h
Go to the documentation of this file.
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------------------------------------------------------------------------
*/
#ifndef __Ogre_TerrainPaging_H__
#define __Ogre_TerrainPaging_H__
#include "OgreTerrainPrerequisites.h"
#include "OgrePagedWorldSection.h"
#include "OgrePageManager.h"
namespace Ogre
{
class PagedWorld;
class TerrainGroup;
class TerrainPagedWorldSection;
class _OgreTerrainExport TerrainPaging : public TerrainAlloc
{
public:
TerrainPaging(PageManager* pageMgr);
virtual ~TerrainPaging();
TerrainPagedWorldSection* createWorldSection(PagedWorld* world, TerrainGroup* terrainGroup,
Real loadRadius, Real holdRadius,
int32 minX = -10, int32 minY = -10, int32 maxX = 10, int32 maxY = 10,
const String& sectionName = StringUtil::BLANK, uint32 loadingIntervalMs = 900);
protected:
PageManager* mManager;
class _OgreTerrainExport SectionFactory : public PagedWorldSectionFactory
{
public:
static const String FACTORY_NAME;
const String& getName() const;
PagedWorldSection* createInstance(const String& name, PagedWorld* parent, SceneManager* sm);
void destroyInstance(PagedWorldSection*);
};
SectionFactory mSectionFactory;
};
}
#endif
Ogre::TerrainPagedWorldSection
A world section which includes paged terrain.
Definition: OgreTerrainPagedWorldSection.h:81
Ogre::PagedWorldSectionFactory
A factory class for creating types of world section.
Definition: OgrePagedWorldSection.h:301
Ogre::Real
float Real
Software floating point type.
Definition: OgrePrerequisites.h:70
OgrePagedWorldSection.h
Ogre::TerrainPaging::mSectionFactory
SectionFactory mSectionFactory
Definition: OgreTerrainPaging.h:125
Ogre::PagedWorldSection
Represents a section of the PagedWorld which uses a given PageStrategy, and which is made up of a gen...
Definition: OgrePagedWorldSection.h:69
Ogre::TerrainPaging
This class is the &#39;core&#39; class for paging terrain, that will integrate with the larger paging system ...
Definition: OgreTerrainPaging.h:72
OgrePageManager.h
Ogre::TerrainPaging::SectionFactory
Definition: OgreTerrainPaging.h:115
Ogre::TerrainGroup
Helper class to assist you in managing multiple terrain instances that are connected to each other...
Definition: OgreTerrainGroup.h:70
Ogre::PageManager
The PageManager is the entry point through which you load all PagedWorld instances, and the place where PageStrategy instances and factory classes are registered to customise the paging behaviour.
Definition: OgrePageManager.h:136
_OgreTerrainExport
#define _OgreTerrainExport
Definition: OgreTerrainPrerequisites.h:58
Ogre::String
_StringBase String
Definition: OgrePrerequisites.h:439
Ogre::PagedWorld
This class represents a collection of pages which make up a world.
Definition: OgrePagedWorld.h:57
Ogre::int32
int int32
Definition: OgrePlatform.h:362
Ogre::uint32
unsigned int uint32
Definition: OgrePlatform.h:359
Ogre::TerrainPaging::mManager
PageManager * mManager
Definition: OgreTerrainPaging.h:113
Ogre
Definition: OgreAndroidLogListener.h:34
OgreTerrainPrerequisites.h
Ogre::TerrainPaging::SectionFactory::FACTORY_NAME
static const String FACTORY_NAME
Definition: OgreTerrainPaging.h:118
Ogre::SceneManager
Manages the organisation and rendering of a &#39;scene&#39; i.e.
Definition: OgreSceneManager.h:143
Ogre::StringUtil::BLANK
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
Definition: OgreString.h:196
Ogre::AllocatedObject
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Definition: OgreMemoryAllocatedObject.h:58

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.