Go to the documentation of this file.
28 #ifndef __Ogre_Volume_Chunk_Handler_H__
29 #define __Ogre_Volume_Chunk_Handler_H__
Interface to a general purpose request / response style background work queue.
General purpose request structure.
Class to build up a mesh with vertices and indices.
uint16 mWorkQueueChannel
The workqueue channel.
WorkQueue::Response * handleRequest(const WorkQueue::Request *req, const WorkQueue *srcQ)
Implementation for WorkQueue::RequestHandler.
ChunkHandler(void)
Constructor.
bool isUpdate
Whether this is an update of an existing tree.
General purpose response structure.
Data being passed around while loading.
A single volume chunk mesh.
Handles the WorkQueue management of the chunks.
virtual ~ChunkHandler(void)
Destructor.
size_t level
The current LOD level.
void init(void)
Initializes the WorkQueue (once).
size_t maxLevels
The maximum amount of levels.
Interface definition for a handler of responses.
struct Ogre::Volume::ChunkRequest ChunkRequest
Data being passed around while loading.
void addRequest(const ChunkRequest &req)
Adds a new ChunkRequest to be loaded to the WorkQueue.
Chunk * origin
The chunk which created this request.
#define _OgreVolumeExport
void processWorkQueue(void)
Calls the process-update of the WorkQueue so it doesn't block.
void handleResponse(const WorkQueue::Response *res, const WorkQueue *srcQ)
Implementation for WorkQueue::ResponseHandler.
_OgreVolumeExport friend std::ostream & operator<<(std::ostream &o, const ChunkRequest &r)
Stream operator <<.
Class for the generation of the DualGrid.
static const uint16 WORKQUEUE_LOAD_REQUEST
The workqueue load request.
OctreeNode * root
The octree node to use.
Interface definition for a handler of requests.
Vector3 totalFrom
The back lower left corner of the world.
DualGridGenerator * dualGridGenerator
The DualGridGenerator to use.
MeshBuilder * meshBuilder
The MeshBuilder to use.
WorkQueue * mWQ
The workqueue.
Standard 3-dimensional vector.
Vector3 totalTo
The front upper rightcorner of the world.
A node in the volume octree.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.