Original Post
I''m making an OOP interface to OpenGL, and I''ve got a couple of questions about how you think it should be done (assuming you think it should be done, at all.)
ATM, I''ve got Texture, Light and Display classes. Texture and Light are their GL equivalent, and Display does the initialisation, message loop and other glutty stuff.
Basically, I''m wondering: should I make a RenderContext class that replaces the gl* functions (like glViewport() --> rc->setViewport(), glBegin() --> rc->beginQuads/Triangles/TriangleStrip/Points/etc), or just use the old gl functions?
Just Plain Wrong
Just Plain Wrong