Hi all, post about a GUI
I would make my own GUI -I think be simply a good newbie- but I don''t know how to draw outside a window and then it won''t work!
Please answer me if you can.
Bye
-----------------------------May be the force with you-----------------------------
I assume you understand how to use OpenGL and thus you probably also know how to create a window. And since your posting in the OpenGL board (NeHe does all things OpenGL that is), then your also asking how to use OpenGL to do this. If your not, try posting a clearer wording of your question in the appropriate forum and remember to read the FAQs of the forums if you don''t know what they''re for.
Well the truth is that you simply can''t draw outside of a window, to do that you would have to create another window. You might be able to use a Layered Window, but it will most definately be some task, and the window will have to be big enough to enclose all the drawn entities. The other option is to have a series of windows for each object but then you''ll still be in trouble for transparency (again Layered Windows or you can also use, for monochrome transparency, window regions...not sure what they''re called excactly).
Apart from that, if you only need to run fullscreen you task would probably be much easier, and no gamer would really mind being restricted to fullscreen mode (GL will often run faster in fullscreen mode I believe, or at least there will be no overheads from GDI rendering, apart from swapping your back buffer of course).
Lorenz (krysole) Pretterhofer
sleep, caffeine for the weak minded
Well the truth is that you simply can''t draw outside of a window, to do that you would have to create another window. You might be able to use a Layered Window, but it will most definately be some task, and the window will have to be big enough to enclose all the drawn entities. The other option is to have a series of windows for each object but then you''ll still be in trouble for transparency (again Layered Windows or you can also use, for monochrome transparency, window regions...not sure what they''re called excactly).
Apart from that, if you only need to run fullscreen you task would probably be much easier, and no gamer would really mind being restricted to fullscreen mode (GL will often run faster in fullscreen mode I believe, or at least there will be no overheads from GDI rendering, apart from swapping your back buffer of course).
Lorenz (krysole) Pretterhofer
sleep, caffeine for the weak minded
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement