use enum in combonation with namespaces. this way is better because enums are global to.
this is an example of my enum code
Code:
namespace BEGIN{enum ENUM{ POINTS = GL_POINTS,
LINE_LOOP = GL_LINE_LOOP,
LINE_STRIP = GL_LINE_STRIP,
TRIANGLES = GL_TRIANGLES>,
TRIANGLE_STRIP = GL_TRIANGLE_STRIP,
TRIANGLE_FAN = GL_TRIANGLE_FAN,
QUADS = GL_QUADS,
QUAD_STRIP = GL_QUAD_STRIP,
POLYGON = GL_POLYGON};}
...
static inline void Begin(const BEGIN::ENUM& mode) // inside someclass
{
glBegin(mode);
}
...
someclass.Begin(BEGIN::QUADS);
this is the way i prefer