DirectX to OpenGL Question

Started by
10 comments, last by deadstar 15 years, 10 months ago
Speaking of which, I've been musing in my mind lately that it's about time that someone write a nicely OO'd wrapper for OpenGL. Using a factory pattern or a COM-like interface you could get a versioned interface to GL much like DirectX provides. That way, if you request a reference to a 2.0 interface and one is given to you, then you are guaranteed to have access to all 2.0 functionality and so forth. Of course, the additional extensions would still be exposed, to take advantage of proprietary and new extensions.

I think it would be nice to say "Give me OpenGL 1.5" and be done with it -- not have to bind extensions to function pointers, get useful intelisense info, etc.

throw table_exception("(? ???)? ? ???");

Advertisement
Just passing by, don't forget to Google for "common OGL pitfalls" if you're just starting out.

opengl.org has it, and I think NVIDIA has an updated version somewhere.

"The right, man, in the wrong, place, can make all the dif-fer-rence in the world..." - GMan, Half-Life 2

A blog of my SEGA Megadrive development adventures: http://www.bigevilcorporation.co.uk

This topic is closed to new replies.

Advertisement