SFML community forums
Help => Graphics => Topic started by: piotrekb on December 01, 2010, 03:07:09 pm
-
Hello!
I want to split my window to 2 parts: one for menu, and second for opengl rendering. What is the best way to make this in your opinion ?
And I have one more question: Can I draw sprites, when I use opengl ?
(http://stud.ics.p.lodz.pl/~piotrekb/grafika_do_linkowania/splitscreen.JPG)
-
I think, you can find splitscreen functionality on the wiki. If you want to do it on your own, you have to use glScissor() directly in OpenGL.
-
Are you using sfml 2 ?
http://www.sfml-dev.org/documentation/2.0/classsf_1_1View.htm#d4b3912a84ec5c55e84bac08abc63cd9
(I don't know if it's ok with native openGL)
-
Hmm... Is it possible to use SetViewport() multiple times per frame to achieve split screens?
-
I don't know, but in the doc, it's written that a global viewport is always made, so I think there's no problem ;) .
-
Okay. If it were possible, that would certainly be nice. It would also dispense with the need of raw OpenGL ;)