Fixes for style conformance: replace constants with enums

This commit is contained in:
matsukaze 2014-02-07 22:11:47 -05:00
parent 831a4a4e84
commit 52290266b0
2 changed files with 3 additions and 2 deletions

View file

@ -201,6 +201,7 @@ public:
struct HalfSpace {
enum {
None = 0x00,
Bottom = 0x01,
Top = 0x02,
Right = 0x04,

View file

@ -16,8 +16,8 @@
VoxelTreeElement::VoxelTreeElement(unsigned char* octalCode) :
OctreeElement(),
_primitiveIndex(0),
_exteriorOcclusions(0x3f),
_interiorOcclusions(0)
_exteriorOcclusions(OctreeElement::HalfSpace::All),
_interiorOcclusions(OctreeElement::HalfSpace::None)
{
init(octalCode);
};