views:

316

answers:

3

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:

+5  A: 

Glut (C), Qt (C++), SDL (C).

Nikolai Ruhe
I have already worked with glut (it was nice for the little opengl examples back at university but i think it wont fit in a bigger project).The Qt api seems nice - but i don't like the thought to introduce a dependecy to Qt. It seems to heavyweight for my needs. The same goes for SDL.
Christoph
There is also http://GtkGLExt.sf.net
ephemient
@Christoph: I can fully understand what you mean. In an inhouse solution for a former employer I had to solve a similar problem. First attempts were using the platform bindings I mentioned above. After a year or so I switched to your idea of implementing platform specifics myself.
Nikolai Ruhe
+3  A: 

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

Alex Peck
+2  A: 

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

luke
This one sounds promising ( their site says: SFML is composed of several packages to perfectly suit your needs. You can use SFML as a minimal windowing system to interface with OpenGL, or as a fully-featured multimedia library for building games or interactive programs. ).
Christoph
I'm going to implement it myself - but since i think i can reuse some of the SMFL code i will accept this answer
Christoph
SFML is lovely. It doesn't (or maybe didn't) support creating contexts with stencil buffers, but hey you can edit the code.
kibibu