Starting to work on the World Optimiser sequence.
This commit is contained in:
@@ -9,12 +9,27 @@
|
||||
#ifndef DORAYME_WORLDOPTIMISER_H
|
||||
#define DORAYME_WORLDOPTIMISER_H
|
||||
|
||||
#include <group.h>
|
||||
|
||||
/* World Optimiser subclasses will created move objcet around to try to optimise the parsing of the world.
|
||||
* This class is abstract to we can implement different type and change at runtime or build time
|
||||
*/
|
||||
class WorldOptimiser
|
||||
{
|
||||
public:
|
||||
virtual void run(Group *root) = 0;
|
||||
};
|
||||
|
||||
class NoWorldOptimisation : public WorldOptimiser
|
||||
{
|
||||
public:
|
||||
void run(Group *root) {};
|
||||
};
|
||||
|
||||
class OctreeOptimisation : public WorldOptimiser
|
||||
{
|
||||
public:
|
||||
void run(Group *root) {};
|
||||
};
|
||||
|
||||
#endif /* DORAYME_WORLDOPTIMISER_H */
|
||||
|
||||
Reference in New Issue
Block a user