|
nux-1.14.0
|
Public Member Functions | |
| int | FormatFrameBufferObject (int Width, int Height, BitmapFormat PixelFormat) |
| int | SetRenderTarget (int ColorAttachmentIndex, ObjectPtr< IOpenGLSurface > pRenderTargetSurface) |
| int | SetDepthSurface (ObjectPtr< IOpenGLSurface > pDepthSurface) |
| ObjectPtr< IOpenGLSurface > | GetRenderTarget (int ColorAttachmentIndex) |
| ObjectPtr< IOpenGLSurface > | GetDepthRenderTarget () |
| int | Clear (DWORD Flags, FLOAT red, FLOAT green, FLOAT blue, FLOAT alpha, FLOAT Z, DWORD Stencil) |
| int | Activate (bool WithClippingStack=false) |
| int | Deactivate () |
| bool | IsActive () |
| void | PushClippingRegion (Rect rect) |
| void | PopClippingRegion () |
| void | EmptyClippingRegion () |
| void | ApplyClippingRegion () |
| void | SetClippingRectangle (const Rect &rect) |
| Bypass the clipping rectangle stack and set a different clipping rectangle region. | |
| void | SetOpenGLClippingRectangle (int x, int y, int width, int height) |
| Rect | GetClippingRegion () |
| int | GetNumberOfClippingRegions () const |
| int | GetWidth () const |
| int | GetHeight () const |
Public Attributes | |
| std::vector< Rect > | _ClippingRegionStack |
Friends | |
| class | GpuDevice |
Definition at line 30 of file IOpenGLFrameBufferObject.h.
| void nux::IOpenGLFrameBufferObject::SetClippingRectangle | ( | const Rect & | rect | ) |
Bypass the clipping rectangle stack and set a different clipping rectangle region.
You may restore the clipping rectangle stack with ApplyClippingRectangle.
Definition at line 334 of file IOpenGLFrameBufferObject.cpp.
{
if (GetGraphicsDisplay()->GetGraphicsEngine())
{
_clipping_rect = rect;
GetGraphicsDisplay()->GetGraphicsEngine()->SetScissor (rect.x, _Height - rect.y - rect.height, rect.width, rect.height);
}
}