View Full Version : How do I make a seperate Window?
04-15-2005, 11:07 PM
What I want to do is make a window inside of another window using c++, opengl, and windows. For example, having a window on the bottom of the screen that displays a characters HP and MP. I could do this in java with awt by making a Frame and to it adding a JOGLCanvas and another Frame, but how could I do this in c++? I want to be able to do stuff like buttons, menues, text fields, draggable objects, health bars, and other 2D GUI components that display in a seperate rendering context. If this type of thing has already been explained well on this forum or on a website, just drop a link in, otherwise I really could use some help.
Thanks in advance
04-16-2005, 02:58 PM
Well, I've never tried it myself, but you might want to look at GLUT. GLUT has a number of windowing functions. glutSubWindow will make a new window in a parent window.
I found this on google. might help:
04-16-2005, 07:33 PM
Moving to beginners section.
04-17-2005, 02:14 AM
Its usually not really a good idea to make these things in a seperate window, because you will have a lot of unneccesary context switches.
Just use the viewport to restrict rendering to different parts of a single window. As long as you don't need more than one top-level window this will work just fine.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.