2011-m2s3-city-builder/lod.hh
2011-12-07 14:48:07 +01:00

27 lines
656 B
C++

#include "all_includes.hh"
class Abr {
private :
std::multimap<int, Chose*> map;
public :
Abr();
void insert(int key, Chose* value); //TODO Retourne un item*.
void remove(int key, Chose* value); //TODO Prend un item*.
Chose* popIfLessThan(int key);
};
class Lod {
private :
Abr merge[6]; // {xMin, xMax, yMin, yMax, zMin, zMax}.
Abr split[12]; // {xMinIn, xMinOut, xMaxIn, xMaxOut, yMinIn, yMaxOut, yMaxIn, yMaxOut, zMinIn, zMinOut, zMaxIn, zMaxOut}.
float camera[3];
public :
Lod(float[3] camera);
void addMergeCube(Chose* chose, int[6] limits);
void addSplitCube(Chose* chose, int[6] limits);
void setCamera(float[3] camera);
};