Show
Ignore:
Timestamp:
03/05/10 13:55:08 (4 years ago)
Author:
robert
Message:

Replaced use of unsigned int/enum mask combinations with int/enum mask combinations to avoid the need for casting enums to unsigned ints,
and to avoid associated warnings.

Update wrappers to reflect these changes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgSim/ObjectRecordData

    r9458 r11164  
    5353        META_Object( osgSim, ObjectRecordData ); 
    5454 
    55         enum Flags 
    56         { 
    57             DONT_DISPLAY_IN_DAYLIGHT = 0x80000000u >> 0, 
    58             DONT_DISPLAY_AT_DUSK     = 0x80000000u >> 1, 
    59             DONT_DISPLAY_AT_NIGHT    = 0x80000000u >> 2, 
    60             DONT_ILLUMINATE          = 0x80000000u >> 3, 
    61             FLAT_SHADED              = 0x80000000u >> 4, 
    62             GROUPS_SHADOW_OBJECT     = 0x80000000u >> 5 
    63         }; 
     55        static const unsigned int DONT_DISPLAY_IN_DAYLIGHT = 0x80000000u >> 0; 
     56        static const unsigned int DONT_DISPLAY_AT_DUSK     = 0x80000000u >> 1; 
     57        static const unsigned int DONT_DISPLAY_AT_NIGHT    = 0x80000000u >> 2; 
     58        static const unsigned int DONT_ILLUMINATE          = 0x80000000u >> 3; 
     59        static const unsigned int FLAT_SHADED              = 0x80000000u >> 4; 
     60        static const unsigned int GROUPS_SHADOW_OBJECT     = 0x80000000u >> 5; 
    6461 
    6562        unsigned int _flags;