Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends

QGLFramebufferObject Class Reference

Search for all occurrences

Detailed Description

Definition at line 57 of file qglframebufferobject.h.

#include <qglframebufferobject.h>

Inheritance diagram for QGLFramebufferObject:
Inheritance graph
[legend]

List of all members.

Public Types

enum   Attachment { NoAttachment, CombinedDepthStencil, Depth }

Public Member Functions

  QGLFramebufferObject (const QSize &size, GLenum target=GL_TEXTURE_2D)
  QGLFramebufferObject (int width, int height, GLenum target=GL_TEXTURE_2D)
  QGLFramebufferObject (const QSize &size, Attachment attachment, GLenum target=GL_TEXTURE_2D, GLenum internal_format=GL_RGBA8)
  QGLFramebufferObject (int width, int height, Attachment attachment, GLenum target=GL_TEXTURE_2D, GLenum internal_format=GL_RGBA8)
  QGLFramebufferObject (const QSize &size, const QGLFramebufferObjectFormat &format)
  QGLFramebufferObject (int width, int height, const QGLFramebufferObjectFormat &format)
virtual  ~QGLFramebufferObject ()
QGLFramebufferObjectFormat  format () const
bool  isValid () const
bool  isBound () const
bool  bind ()
bool  release ()
GLuint  texture () const
QSize  size () const
QImage  toImage () const
Attachment  attachment () const
QPaintEngine paintEngine () const
GLuint  handle () const
void  drawTexture (const QRectF &target, GLuint textureId, GLenum textureTarget=GL_TEXTURE_2D)
void  drawTexture (const QPointF &point, GLuint textureId, GLenum textureTarget=GL_TEXTURE_2D)

Static Public Member Functions

static bool  bindDefault ()
static bool  hasOpenGLFramebufferObjects ()
static bool  hasOpenGLFramebufferBlit ()
static void  blitFramebuffer (QGLFramebufferObject *target, const QRect &targetRect, QGLFramebufferObject *source, const QRect &sourceRect, GLbitfield buffers=GL_COLOR_BUFFER_BIT, GLenum filter=GL_NEAREST)

Protected Member Functions

int  metric (PaintDeviceMetric metric) const
int  devType () const

Friends

class  QGLPaintDevice
class  QGLFBOGLPaintDevice

Member Enumeration Documentation


Constructor & Destructor Documentation

QGLFramebufferObject ( const QSize size,
GLenum  target = GL_TEXTURE_2D 
)
QGLFramebufferObject ( int  width,
int  height,
GLenum  target = GL_TEXTURE_2D 
)
QGLFramebufferObject ( const QSize size,
Attachment  attachment,
GLenum  target = GL_TEXTURE_2D,
GLenum  internal_format = GL_RGBA8 
)
QGLFramebufferObject ( int  width,
int  height,
Attachment  attachment,
GLenum  target = GL_TEXTURE_2D,
GLenum  internal_format = GL_RGBA8 
)
QGLFramebufferObject ( const QSize size,
const QGLFramebufferObjectFormat format 
)
QGLFramebufferObject ( int  width,
int  height,
const QGLFramebufferObjectFormat format 
)
virtual ~QGLFramebufferObject ( ) [virtual]

Member Function Documentation

QGLFramebufferObjectFormat format ( ) const
bool isValid ( ) const
bool isBound ( ) const
bool bind ( )
bool release ( )
GLuint texture ( ) const
QSize size ( ) const
QImage toImage ( ) const
Attachment attachment ( ) const
QPaintEngine* paintEngine ( ) const [virtual]
GLuint handle ( ) const
static bool bindDefault ( ) [static]
static bool hasOpenGLFramebufferObjects ( ) [static]
void drawTexture ( const QRectF target,
GLuint  textureId,
GLenum  textureTarget = GL_TEXTURE_2D 
)
void drawTexture ( const QPointF point,
GLuint  textureId,
GLenum  textureTarget = GL_TEXTURE_2D 
)
static bool hasOpenGLFramebufferBlit ( ) [static]
static void blitFramebuffer ( QGLFramebufferObject target,
const QRect targetRect,
QGLFramebufferObject source,
const QRect sourceRect,
GLbitfield  buffers = GL_COLOR_BUFFER_BIT,
GLenum  filter = GL_NEAREST 
) [static]
int metric ( PaintDeviceMetric  metric ) const [protected, virtual]
int devType ( ) const [inline, protected, virtual]

Reimplemented from QPaintDevice.

Definition at line 130 of file qglframebufferobject.h.


Friends And Related Function Documentation

friend class QGLPaintDevice [friend]
friend class QGLFBOGLPaintDevice [friend]

The documentation for this class was generated from the following file:

QGLFramebufferObject QGLFramebufferObject QGLFramebufferObject QGLFramebufferObject QGLFramebufferObject QGLFramebufferObject QGLFramebufferObject QGLFramebufferObject QGLFramebufferObject QGLFramebufferObject
QGLFramebufferObject QGLFramebufferObject QGLFramebufferObject QGLFramebufferObject QGLFramebufferObject QGLFramebufferObject QGLFramebufferObject QGLFramebufferObject QGLFramebufferObject QGLFramebufferObject