Hi Andreas,
Andreas Halm wrote:
>
> Of course I know that, and I have no idea why it is missing in the original
> code (not my code btw). The other thing you might want to think about is: If
> the code does not work with CS_OWNDC not being set, why not get rid of
> ReleaseDC altogether? You know that you don't need to call ReleaseDC when
> CS_OWNDC is set.
I didn't know that, actually. ;) As you probably figured by now, we're now
hardcore Windows people. I took the code for the Win32Window from the simplest
OpenGL example I could find, but the whole HDC/HGLRC/Handle magic has always
escaped me. So if you have a cleaner way to handle that, we'd be happy to get
some comments/patches.
The main complication (and the main reason for having Window-system specific
Windows in the first place) is that we want to be able to have separate threads
to handle input and drawing (i.e. have a separate drawing thread that just
pumps
OpenGL). That is not the usual way most apps work, so it took me quite a while
to make it work, and I just like not to lose it.
Yours
Dirk
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users