enum{ // I use this ISceneNode ID to indicate a scene node that is // not pickable by getSceneNodeAndCollisionPointFromRay() ID_IsNotPickable = 0, // I use this flag in ISceneNode IDs to indicate that the // scene node can be picked by ray selection. IDFlag_IsPickable = 1 << 0, // I use this flag in ISceneNode IDs to indicate that the // scene node can be highlighted. In this example, the // homonids can be highlighted, but the level mesh can't. IDFlag_IsHighlightable = 1 << 1};
What's going on? I thought enums where mean to just be integer based I don't get the whole 1 << 1 thing. I thought enums just went 0 upwards by 1 unless stated I didn't know you could *do* stuff inside them. Any idea what's happening here? Thanks :oO/:o)