I would like to draw my game-GUI with the blit-functions of SDL and
display a 3d-view (OpenGL) in a rectangular area within. Is this
prossible? Can you mix the output of SDL and OpenGL calls?
+Beosil
— Geosil, an open-source WorldForge client – www.worldforge.org —
Beosil wrote:
I would like to draw my game-GUI with the blit-functions of SDL and
display a 3d-view (OpenGL) in a rectangular area within. Is this
prossible? Can you mix the output of SDL and OpenGL calls?
Unfortunately, no. I rolled my own widget set in OpenGL which
displays the various widgets using an orthographic projection.
My 3d views are simply widgets whos paint methods use a perspective
projection.
I notice from your screenshots that you’ve already done a good
bit of GUI work. How are you currently rendering your GUI elements?
JW–
// John Watson
// Software Engineer – STScI Archive Team
I notice from your screenshots that you’ve already done a good
bit of GUI work. How are you currently rendering your GUI elements?
The GUI (like everything else) is rendered with OpenGL, but I have some
problems implementing window-skins in my GUI-system. Well, not really
problems, but the 2^n pixel texture-size and the unflexible
texture-repeat functionality in OpenGL gives me some headache
+Beosil
— Geosil, an open-source WorldForge client – www.worldforge.org —