Computer Graphics

Moderators: Sephiroth
Number of threads: 1241
Number of posts: 2641

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
multiple viewports in one window Posted by GeoHoffman on 9 Jun 2003 at 4:33 PM
How would you go about using one window and having multiple view ports on this window. I am trying to write a warcraft like game. There is going to be one viewport to display the map and all characters, another viewport that is an abstraction of the map, and the last viewport is going to be the rest of the screen which will contain a graphic (which surrounds the other viewports) and selectable menu buttons. I am guessing this will involve drawing the 2 map viewports first and then drawing the graphical menu over the rest of the screen but not drawing over the other viewports. Would it be easier to just use three seperate windows? Can someone point me in the right direction? Thanks,

-Geo
Report
Re: multiple viewports in one window Posted by gautam on 10 Jun 2003 at 2:24 AM
Hey,

Didn't really get exactly what you wanted but if I was going to have multiple viewports - I would use glViewport(..). About multiple windows vs one window, I would suggest you try both and stick to what you like best :)

: How would you go about using one window and having multiple view ports on this window. I am trying to write a warcraft like game. There is going to be one viewport to display the map and all characters, another viewport that is an abstraction of the map, and the last viewport is going to be the rest of the screen which will contain a graphic (which surrounds the other viewports) and selectable menu buttons. I am guessing this will involve drawing the 2 map viewports first and then drawing the graphical menu over the rest of the screen but not drawing over the other viewports. Would it be easier to just use three seperate windows? Can someone point me in the right direction? Thanks,
:
: -Geo
:

Report
More specifically Posted by GeoHoffman on 10 Jun 2003 at 1:38 PM
This message was edited by GeoHoffman at 2003-6-10 13:39:24

Hello Guatam. Thank you for your reply. More specifically: I am developing a warcraft like game for fun. As in warcraft there will be a main viewport which contains most of the scene. It will show all the terain, characters, resources, etc. There will also be another viewport which has a map. The user can select different parts of the map and the main viewport will update accordingly. Then I also want a border that goes around both of these two viewports. This border will have selectable menu items like: build a structure, deploy troops, game menu. quit, etc.

My question was this; should this be done with multiple viewports or should I just use more than one window to display each part. How would you go about acomplishing this?





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.