Converted static const unsigned int definitio to enum.
This commit is contained in:
parent
6e8606416f
commit
8be3123cbf
@ -50,13 +50,15 @@ class ObjectRecordData : public osg::Object
|
|||||||
|
|
||||||
META_Object( osgSim, ObjectRecordData );
|
META_Object( osgSim, ObjectRecordData );
|
||||||
|
|
||||||
// Flags bits
|
enum Flags
|
||||||
static const unsigned int DONT_DISPLAY_IN_DAYLIGHT = 0x80000000u >> 0;
|
{
|
||||||
static const unsigned int DONT_DISPLAY_AT_DUSK = 0x80000000u >> 1;
|
DONT_DISPLAY_IN_DAYLIGHT = 0x80000000u >> 0,
|
||||||
static const unsigned int DONT_DISPLAY_AT_NIGHT = 0x80000000u >> 2;
|
DONT_DISPLAY_AT_DUSK = 0x80000000u >> 1,
|
||||||
static const unsigned int DONT_ILLUMINATE = 0x80000000u >> 3;
|
DONT_DISPLAY_AT_NIGHT = 0x80000000u >> 2,
|
||||||
static const unsigned int FLAT_SHADED = 0x80000000u >> 4;
|
DONT_ILLUMINATE = 0x80000000u >> 3,
|
||||||
static const unsigned int GROUPS_SHADOW_OBJECT = 0x80000000u >> 5;
|
FLAT_SHADED = 0x80000000u >> 4,
|
||||||
|
GROUPS_SHADOW_OBJECT = 0x80000000u >> 5
|
||||||
|
};
|
||||||
|
|
||||||
unsigned int _flags;
|
unsigned int _flags;
|
||||||
short _relativePriority;
|
short _relativePriority;
|
||||||
|
@ -22,6 +22,16 @@
|
|||||||
#undef OUT
|
#undef OUT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
BEGIN_ENUM_REFLECTOR(osgSim::ObjectRecordData::Flags)
|
||||||
|
I_DeclaringFile("osgSim/ObjectRecordData");
|
||||||
|
I_EnumLabel(osgSim::ObjectRecordData::DONT_DISPLAY_IN_DAYLIGHT);
|
||||||
|
I_EnumLabel(osgSim::ObjectRecordData::DONT_DISPLAY_AT_DUSK);
|
||||||
|
I_EnumLabel(osgSim::ObjectRecordData::DONT_DISPLAY_AT_NIGHT);
|
||||||
|
I_EnumLabel(osgSim::ObjectRecordData::DONT_ILLUMINATE);
|
||||||
|
I_EnumLabel(osgSim::ObjectRecordData::FLAT_SHADED);
|
||||||
|
I_EnumLabel(osgSim::ObjectRecordData::GROUPS_SHADOW_OBJECT);
|
||||||
|
END_REFLECTOR
|
||||||
|
|
||||||
BEGIN_OBJECT_REFLECTOR(osgSim::ObjectRecordData)
|
BEGIN_OBJECT_REFLECTOR(osgSim::ObjectRecordData)
|
||||||
I_DeclaringFile("osgSim/ObjectRecordData");
|
I_DeclaringFile("osgSim/ObjectRecordData");
|
||||||
I_BaseType(osg::Object);
|
I_BaseType(osg::Object);
|
||||||
|
Loading…
Reference in New Issue
Block a user