Hello André,
This looks fine. Try setting a breakpoint in
GraphicsWindowWin32::swapBuffersImplementation() to see in what state the
object is. Either _realized is false or the handle to the device context is
invalid (and this is not trapped by the ::SwapBuffers call as an error).
I'll try
values you use in the traits structure, etc.) that would likely be helpful.
André
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jean-Sébastien Guay
Sent: February-16-08 8:30 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Overriding the SwapBuffers
HI J-S,
Simply assign your custom GraphicsWindow implementation to the
viewer's osg::Camera's directly, rather than rely upon
View::setUpView*() methods.
Robert.
On Fri, Feb 15, 2008 at 3:27 PM, Jean-Sébastien Guay
[EMAIL PROTECTED] wrote:
Hello Robert et al,
I have a very specific
To: OpenSceneGraph Users
Subject: Re: [osg-users] Overriding the SwapBuffers call
Hi Robert, Windows gurus,
Simply assign your custom GraphicsWindow implementation to the
viewer's osg::Camera's directly, rather than rely upon
View::setUpView*() methods.
I've gotten this to work partially. My
Hi again,
Am I missing anything? As I said, the prints are in the console, but the
screen stays black.
After further investigation, pressing 's' to display the stats displays
them, but they don't get cleared so they just draw overtop the old
image. Seems some clearing is not happening, in
Hi Robert, Windows gurus,
Simply assign your custom GraphicsWindow implementation to the
viewer's osg::Camera's directly, rather than rely upon
View::setUpView*() methods.
I've gotten this to work partially. My method is getting called, but I
get only black onscreen. My overridden
Hello André,
Looks like the constructor of the base class (GraphicsWindowWin32) is not
being called by your derived class (_realized is false).
Here is my whole class (no joke!):
class MyGraphicsWindowWin32 : public osgViewer::GraphicsWindowWin32
{
public:
MyGraphicsWindowWin32
you do not see anything reported on the console after the call (other
than you own traces).
André
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jean-Sébastien Guay
Sent: February-15-08 7:21 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Overriding
8 matches
Mail list logo