Dualhead card

How do I tell openGL wich monitor (framebuffer) to address on my dualhead grafic card.

Just put the window your drawing to on the other monitor, possibly covering it all if you want fullscreen on that monitor.

I have already tryed that, but there has to be a smarter way to program this in a platform- independent matter.

I have already tryed that, but there has to be a smarter way to program this in a platform- independent matter.

There’s no platform-independent way to do it, because it’s window system specific…so platform independence is a no-go (which is generally the case when doing windowing-system-specific stuff with OpenGL).