Opengl inside sdl window

I have one, big SDL window with paragui buttons. Now I want 4 OpenGL
views inside it, like in 3D Studio, Blender, or any other 3D modeller.
Is it a way to create 4 diffrent areas in that one window, or should I
create 4 surfaces and copy them to first when I need it?–
They’ll take your diamonds, and then give you steel
You’ll be caught in the middle of the madness
Just lost like them "All The Fools Sailed Away"
And part of all the pain that they feel - Ronnie James Dio

“Jacek Pop?awski” wrote

I have one, big SDL window with paragui buttons. Now I want 4 OpenGL
views inside it, like in 3D Studio, Blender, or any other 3D modeller.
Is it a way to create 4 diffrent areas in that one window, or should I
create 4 surfaces and copy them to first when I need it?

use the glViewPort commands to specify an active “sub-area” for
opengl to render to.

I found this easier to do using OpenGL than SDL.
Look at the glViewport() command. You might also
want to use glScissor and glEnable(GL_SCISSOR_TEST) (slow).

-Devin

Jacek Pop?awski wrote:>

I have one, big SDL window with paragui buttons. Now I want 4 OpenGL
views inside it, like in 3D Studio, Blender, or any other 3D modeller.
Is it a way to create 4 diffrent areas in that one window, or should I
create 4 surfaces and copy them to first when I need it?


They’ll take your diamonds, and then give you steel
You’ll be caught in the middle of the madness
Just lost like them "All The Fools Sailed Away"
And part of all the pain that they feel - Ronnie James Dio