Advertisement

set windows to 4 viewport (OpenGL)

Started by January 09, 2003 11:30 PM
2 comments, last by wutbk 22 years, 1 month ago
top,front,right,perspective How can I do?
quote:
Original post by wutbk
top,front,right,perspective
How can I do?


Create 4 windows, manage each independently and build your main loop to loop through all of them successively. Each of them has to have its own RC (rendering context) that has to be made active prior to drawing:

pseuodocode:


mainloop {
Window1->MakeCurrent();
Window1->Draw();
Window1->SwapBuffers();

Window2->MakeCurrent();
Window2->Draw();
Window2->SwapBuffers();

...

} //mainloop



Crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
Advertisement
If you are using MFC in windows then you could check out this class -

http://www.thecodeproject.com/opengl/glenabledview.asp

I''m currently using it in my level editor for a standard 4 viewport layout (front, top, perspective etc). I''m using an SDI interface with a spliiter window and it seems to work great.

Thank you for your advice.

This topic is closed to new replies.

Advertisement