mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:48:38 +02:00
change a couple more long ints
This commit is contained in:
parent
d30512e273
commit
f6adac1399
1 changed files with 7 additions and 8 deletions
|
@ -19,15 +19,10 @@ const int MAX_TREE_SLICE_BYTES = 26;
|
||||||
const int TREE_SCALE = 10;
|
const int TREE_SCALE = 10;
|
||||||
|
|
||||||
class VoxelTree {
|
class VoxelTree {
|
||||||
VoxelNode * nodeForOctalCode(VoxelNode *ancestorNode, unsigned char * needleCode, VoxelNode** parentOfFoundNode);
|
|
||||||
VoxelNode * createMissingNode(VoxelNode *lastParentNode, unsigned char *deepestCodeToCreate);
|
|
||||||
int readNodeData(VoxelNode *destinationNode, unsigned char * nodeData, int bufferSizeBytes);
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
long int voxelsCreated;
|
long voxelsCreated;
|
||||||
long int voxelsColored;
|
long voxelsColored;
|
||||||
long int voxelsBytesRead;
|
long voxelsBytesRead;
|
||||||
|
|
||||||
CounterStatHistory voxelsCreatedStats;
|
CounterStatHistory voxelsCreatedStats;
|
||||||
CounterStatHistory voxelsColoredStats;
|
CounterStatHistory voxelsColoredStats;
|
||||||
|
@ -56,6 +51,10 @@ public:
|
||||||
|
|
||||||
void loadVoxelsFile(const char* fileName, bool wantColorRandomizer);
|
void loadVoxelsFile(const char* fileName, bool wantColorRandomizer);
|
||||||
void createSphere(float r,float xc, float yc, float zc, float s, bool solid, bool wantColorRandomizer);
|
void createSphere(float r,float xc, float yc, float zc, float s, bool solid, bool wantColorRandomizer);
|
||||||
|
private:
|
||||||
|
VoxelNode * nodeForOctalCode(VoxelNode *ancestorNode, unsigned char * needleCode, VoxelNode** parentOfFoundNode);
|
||||||
|
VoxelNode * createMissingNode(VoxelNode *lastParentNode, unsigned char *deepestCodeToCreate);
|
||||||
|
int readNodeData(VoxelNode *destinationNode, unsigned char * nodeData, int bufferSizeBytes);
|
||||||
};
|
};
|
||||||
|
|
||||||
int boundaryDistanceForRenderLevel(unsigned int renderLevel);
|
int boundaryDistanceForRenderLevel(unsigned int renderLevel);
|
||||||
|
|
Loading…
Reference in a new issue