mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 02:37:12 +02:00
store octal code with VoxelNode
This commit is contained in:
parent
2f7767bc9b
commit
14b23fc053
2 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,9 @@
|
||||||
|
|
||||||
VoxelNode::VoxelNode() {
|
VoxelNode::VoxelNode() {
|
||||||
|
|
||||||
|
childMask = 0;
|
||||||
|
octalCode = NULL;
|
||||||
|
|
||||||
// default pointers to child nodes to NULL
|
// default pointers to child nodes to NULL
|
||||||
for (int i = 0; i < 8; i++) {
|
for (int i = 0; i < 8; i++) {
|
||||||
children[i] = NULL;
|
children[i] = NULL;
|
||||||
|
|
|
@ -15,6 +15,7 @@ class VoxelNode {
|
||||||
public:
|
public:
|
||||||
VoxelNode();
|
VoxelNode();
|
||||||
|
|
||||||
|
unsigned char *octalCode;
|
||||||
unsigned char color[4];
|
unsigned char color[4];
|
||||||
VoxelNode *children[8];
|
VoxelNode *children[8];
|
||||||
unsigned char childMask;
|
unsigned char childMask;
|
||||||
|
|
Loading…
Reference in a new issue