views:

52

answers:

2

I would like to write a library that draws some opengl on a given window handle.

How can I initialize an opengl-context inside a given window? Is it possible to do that platform independent using SDL or some other library?

+2  A: 

Qt provides a very good, cross platform mechanism for opening an OpenGL context and drawing into it. For details, see QtOpenGL.

Reed Copsey
A: 

You could use Open Producer or the OpenSceneGraph to do it as well.

Nathan Monteleone