mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 16:36:54 +02:00
remove unused methods from VoxelSystem
This commit is contained in:
parent
3e36ba9265
commit
42fe3ce077
2 changed files with 1 additions and 9 deletions
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
#include "VoxelSystem.h"
|
#include "VoxelSystem.h"
|
||||||
#include <AgentList.h>
|
#include <AgentList.h>
|
||||||
#include <cstring>g
|
#include <cstring>
|
||||||
|
|
||||||
const int MAX_VOXELS_PER_SYSTEM = 500000;
|
const int MAX_VOXELS_PER_SYSTEM = 500000;
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,6 @@
|
||||||
|
|
||||||
const int NUM_CHILDREN = 8;
|
const int NUM_CHILDREN = 8;
|
||||||
|
|
||||||
struct Voxel {
|
|
||||||
glm::vec3 color;
|
|
||||||
Voxel * children[NUM_CHILDREN];
|
|
||||||
};
|
|
||||||
|
|
||||||
class VoxelSystem : public AgentData {
|
class VoxelSystem : public AgentData {
|
||||||
public:
|
public:
|
||||||
VoxelSystem();
|
VoxelSystem();
|
||||||
|
@ -34,12 +29,9 @@ public:
|
||||||
|
|
||||||
void init();
|
void init();
|
||||||
void simulate(float deltaTime);
|
void simulate(float deltaTime);
|
||||||
int render(Voxel * voxel, float scale, glm::vec3 * distance);
|
|
||||||
void render();
|
void render();
|
||||||
int initVoxels(Voxel * root, float scale, glm::vec3 * position);
|
|
||||||
void setVoxelsRendered(int v) {voxelsRendered = v;};
|
void setVoxelsRendered(int v) {voxelsRendered = v;};
|
||||||
int getVoxelsRendered() {return voxelsRendered;};
|
int getVoxelsRendered() {return voxelsRendered;};
|
||||||
Voxel * root;
|
|
||||||
private:
|
private:
|
||||||
int voxelsRendered;
|
int voxelsRendered;
|
||||||
GLfloat *verticesArray;
|
GLfloat *verticesArray;
|
||||||
|
|
Loading…
Reference in a new issue