This commit is contained in:
ZappoMan 2013-05-01 18:25:42 -07:00
parent 9e374cbf33
commit cfcfacfbdb

View file

@ -23,11 +23,9 @@ private:
nodeColor _currentColor; nodeColor _currentColor;
bool _falseColored; bool _falseColored;
#endif #endif
glBufferIndex _glBufferIndex; glBufferIndex _glBufferIndex;
bool _isDirty; bool _isDirty;
bool _shouldRender; bool _shouldRender;
public: public:
VoxelNode(); VoxelNode();
~VoxelNode(); ~VoxelNode();
@ -46,19 +44,14 @@ public:
bool isLeaf() const; bool isLeaf() const;
void getAABox(AABox& box) const; void getAABox(AABox& box) const;
void printDebugDetails(const char* label) const; void printDebugDetails(const char* label) const;
bool isDirty() const { return _isDirty; }; bool isDirty() const { return _isDirty; };
void clearDirtyBit() { _isDirty = false; }; void clearDirtyBit() { _isDirty = false; };
glBufferIndex getBufferIndex() const { return _glBufferIndex; }; glBufferIndex getBufferIndex() const { return _glBufferIndex; };
bool isKnownBufferIndex() const { return (_glBufferIndex != GLBUFFER_INDEX_UNKNOWN); }; bool isKnownBufferIndex() const { return (_glBufferIndex != GLBUFFER_INDEX_UNKNOWN); };
void setBufferIndex(glBufferIndex index) { _glBufferIndex = index; }; void setBufferIndex(glBufferIndex index) { _glBufferIndex = index; };
// whether or not we should render
void setShouldRender(bool shouldRender); void setShouldRender(bool shouldRender);
bool getShouldRender() const { return _shouldRender; } bool getShouldRender() const { return _shouldRender; }
#ifndef NO_FALSE_COLOR // !NO_FALSE_COLOR means, does have false color #ifndef NO_FALSE_COLOR // !NO_FALSE_COLOR means, does have false color
void setFalseColor(colorPart red, colorPart green, colorPart blue); void setFalseColor(colorPart red, colorPart green, colorPart blue);
void setFalseColored(bool isFalseColored); void setFalseColored(bool isFalseColored);