Advertisement Jump to content
Sign in to follow this  
giugio

OpenGL opengl, qt, mdi and vieports

This topic is 2473 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello.
I modified a 3d engine for the qt library, i have inserted a opengl scene in a simple widget.
The problem is that i have try to create a mdi opengl application, then i can have more than one viewport with inside a different opengl scene.
The engine(wild magic5) is built for only one viewport.
Now if i try to create more than one subwindow ,only the lastest have a correct visualization.
The other is black and draw nothing.
How i can create multiple vieport in opengl?
I think to call glviewport(x,x,x,x) in the render function on the widget, but i have a doubt:
now all viewport coordinates are 0,0,100,100 , but i have access to mdisubwindow object from the render function, but what coordinates i must use? how i can do?
thanks.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!