On Thu, Sep 16, 2010 at 11:06:50PM +0200, Per Inge Mathisen wrote: > On Thu, Sep 16, 2010 at 6:00 PM, Giel van Schijndel <[email protected]> wrote: >> Considering that most places we use "SDL_opengl.h" we only use it to >> properly include "gl.h" and "glu.h" we could probably take that part >> from "SDL_opengl.h" (which is independent of SDL) and move that into a >> wrapper header in lib/framework/ or lib/ivis_opengl/. That would >> additionally make porting to GLESv2 (OpenGL ES 2.0) slightly easier by >> requiring the addition of preprocessor conditionals to only that header. > > If what you are suggesting is to make a new OpenGL header wrapper > header file (mmm, I like the sound of that), then by all means feel > free, as long as you fix the resulting breakage in Qt branch while > you're at it :-)
That's *exactly* what I'm proposing. E.g. instead of: #if platform # include <GL, GLU, & stuff> #endif A single line of this would suffice: #include "lib/framework/opengl.h" (I'm going with that filename for now). -- Giel -- "I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." -- Bjarne Stroustrup
signature.asc
Description: Digital signature
_______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
