|
-
June 13th, 2008, 02:02 AM
#1
Open-GL: a scene without a visible window?
Hello.
I asked myself, if it is possible to create a scene without a window.
Using simple Win32Api.
Of course i would have to set and update the clipping area with every move of the primitive i want to be shown on screen ( and of those regions, which was covered by the primitive and now arent covered anymore and vice versa).
-
Let's start a bit easier.
I chose to display a non moving open-gl primitive like a poly inside a window.
I tried svereral clipping methods to clip the window region around the primitive but it does not seem to work.
(I must admit, my transformation from WinApi coordinates to open-GL coordinates was not the best) but even the nearly right coordinate-values did not seem to work.
-
-
Further idea would be to do the same with a moving poly.
What should i concentrate on to make this possible?
THX
-
June 14th, 2008, 05:06 AM
#2
Re: Open-GL: a scene without a visible window?
-
June 16th, 2008, 11:54 PM
#3
Re: Open-GL: a scene without a visible window?
If im understanding your question correctly, i assume you would like to create a window with no border, titlebar or menu.
This can be done in the CreateWindowEx function when you create the applications main window.
Use 0 for the dwExStyle param, and use WS_POPUP for the dwStyle param.
A popup window has no titlebar, border or menu.
These window styles can be found within the "winuser.h" header file.
Hope this helps...
Last edited by bitshifter420; June 20th, 2008 at 03:50 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|