3
votes

I'm searching for an multi platform OpenGL framework that abstracts the creation of windows and gl contexts in C++. I'd like to have an OO representation of Window, Context & co where i can instantiate a Window, create a Context and maybe later set the window to fullscreen.

I'm thinking about implementing this myself for xgl, wgl and agl. But before

So here comes the Question:

Which libraries / frameworks should i check out first, before inventing the wheel again?

Edit: So far named libraries:

4
I'm using GLUT and wxWidgets successfully in two separate projects. The only downside to GLUT under Win32 is that it opens up a DOS window - good for seeing any printf's, but it doesn't look as professional to have an app that opens up that window. - Jim Buck
@Jim: That's a bit in the executable that can easily be changed with editbin, and is usually an artefact of compilation flags? - ephemient
Hmm, could be, I would be curious if it were that simple. In my case, it's just a Win32 reference build for a console game, so I hadn't looked into it too deeply. Plus for debugging purposes, I actually like/need to see the printfs. - Jim Buck

4 Answers

3
votes

SMFL is another, similar to SDL, but takes a more object oriented approach.

6
votes

You could look at Glut (C), Qt (C++), SDL (C).

3
votes

wxWidgets is another alternative, but may also be too heavyweight.

0
votes

libapril is nice also. It is clean, simple and supports newer mobile platforms.