nux-1.16.0
nux::IOpenGLFrameBufferObject Class Reference
Inheritance diagram for nux::IOpenGLFrameBufferObject:
nux::IOpenGLResource nux::Object nux::Trackable nux::Introspectable

List of all members.

Public Member Functions

int FormatFrameBufferObject (int Width, int Height, BitmapFormat PixelFormat)
int SetRenderTarget (int ColorAttachmentIndex, ObjectPtr< IOpenGLSurface > pRenderTargetSurface)
int SetDepthSurface (ObjectPtr< IOpenGLSurface > pDepthSurface)
ObjectPtr< IOpenGLSurfaceGetRenderTarget (int ColorAttachmentIndex)
ObjectPtr< IOpenGLSurfaceGetDepthRenderTarget ()
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

Detailed Description

Definition at line 30 of file IOpenGLFrameBufferObject.h.


Member Function Documentation

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);
    }
  }

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends