CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2007
    Posts
    24

    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

  2. #2
    Join Date
    Oct 2007
    Posts
    24

    Re: Open-GL: a scene without a visible window?

    Sorry, only the one who searches, will compete.

    http://www.codeguru.com/forum/archiv.../t-195402.html

  3. #3
    Join Date
    Jun 2007
    Location
    MA-USA
    Posts
    247

    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
  •  





Click Here to Expand Forum to Full Width

Featured