I don't think GDI is buffer-savvy, so there's no way to tell it to draw into
the "back" buffer. (10 years ago, when HP made their own graphics cards, we
developed a solution for mixing GDI/Xlib with OpenGL, and it was quite
flexible. No one else ever implemented such a scheme. As a result, GDI/Xlib
rendering into an OpenGL window is unsupported and will produce undefined
results.)

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466

-----Original Message-----
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Cory
Riddell
Sent: Friday, May 01, 2009 6:25 PM
To: OpenSceneGraph Users
Subject: [osg-users] preDrawCallback?

If I want to draw something in the client area of the window OSG is
rendering into (via Windows GDI calls), would I do this in a
preDrawCallback? (after setting an appropriate ClearMask in the camera)

I want to have a gradient background and I'm thinking that I could do this
easily with the GradientFill() function. I realize I could accomplish the
same thing using methods from the osgHud example, but I'm thinking that a
GDI call would be faster.

Cory
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to