set windows to 4 viewport (OpenGL)
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
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement