Hi Guy,
I guess I could have been a little clearer in my description. So here's an
example that should help:
You're right, the description you gave this time makes things a lot clearer.
The camera will only clear its viewport. And that makes sense, since the
camera should only ever affect
Now I understand! That makes perfect sense to me now.
I tried calling GraphicContext::setClearMask(GL_COLOR_BUFFER_BIT) in my app and
now it works as expected.
Thanks... your the best.
Guy
--
Read this topic online here:
Hi,
I have a stituation where the viewport is smaller than the windows, causing the
region outside the viewport to not be cleared properly. Does anyone know how to
clear the background window?
I tied several things including the following:
Code:
void ClearClientBackground( HWND hWnd )
{
Hello Guy,
I have a stituation where the viewport is smaller than the windows, causing the
region outside the viewport to not be cleared properly. Does anyone know how to
clear the background window?
By viewport do you mean osg::View? And by window do you mean context? If
so then just
I guess I could have been a little clearer in my description. So here's an
example that should help:
1) I have a osg::camera of size 640x480. So the window's client area is
640x480, or GraphicsContext::Trats::(x,y,width,height) = (0, 0, 640, 480).
2) The GL viewport of this camera is 320x240,
5 matches
Mail list logo