Ulrich & Robert,
I agree especially when I have just read that WGL_SWAP_UNDEFINED is not the
same as DEFAULT which means we will have at least 4 enum values (not 3 as I
thought before).
So Robert please hold this submit. I will send another set of files soon.
Wojtek
--------------------------------------------------
From: "Ulrich Hertlein" <[email protected]>
Sent: Tuesday, September 28, 2010 1:38 AM
To: "OpenSceneGraph Submissions" <[email protected]>
Subject: Re: [osg-submissions] Swap Method
Hi Wojciech,
On 27/09/10 22:28 , Wojciech Lewandowski wrote:
As promised I prepared a patch to expose WGL_SWAP_METHOD /
PFD_SWAP_METHOD selection via
GraphicsContext::Traits. Since Traits don't define any enums (I guess to
be simple to
use) I tried to keep it that way and have added two boolean values:
swapCopy &
swapExchange. It is somewhat similar approach to GDI
PixelFormatDescription were
both options can be present together. Feel free to replace it with enum
if you find it
more appropriate.
Is it valid to set both of them at the same time? If not then I'd vote
for making it an
enum in order not to confuse users and have to worry about state
consistency.
Cheers,
/ulrich
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org