QGLFramebufferObject Class Reference

#include <qglframebufferobject.h>

Class Description

Definition at line 57 of file qglframebufferobject.h.

+ Inheritance diagram for QGLFramebufferObject:

Public Types

enum  Attachment { NoAttachment, CombinedDepthStencil, Depth }
 
- Public Types inherited from QPaintDevice
enum  PaintDeviceMetric {
  PdmWidth = 1, PdmHeight, PdmWidthMM, PdmHeightMM,
  PdmNumColors, PdmDepth, PdmDpiX, PdmDpiY,
  PdmPhysicalDpiX, PdmPhysicalDpiY
}
 

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
 
QPaintEnginepaintEngine () 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)
 
- Public Member Functions inherited from QPaintDevice
virtual ~QPaintDevice ()
 
bool paintingActive () const
 
int width () const
 
int height () const
 
int widthMM () const
 
int heightMM () const
 
int logicalDpiX () const
 
int logicalDpiY () const
 
int physicalDpiX () const
 
int physicalDpiY () const
 
int colorCount () const
 
int depth () const
 

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
 
- Protected Member Functions inherited from QPaintDevice
 QPaintDevice ()
 

Friends

class QGLPaintDevice
 
class QGLFBOGLPaintDevice
 

Additional Inherited Members

- Protected Attributes inherited from QPaintDevice
ushort painters
 

Member Enumeration Documentation

enum Attachment
Enumerator
NoAttachment 
CombinedDepthStencil 
Depth 

Definition at line 61 of file qglframebufferobject.h.

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

bool isValid ( ) const
bool isBound ( ) const
bool bind ( )
bool release ( )
GLuint texture ( ) const
QSize size ( ) const
QImage toImage ( ) const
QPaintEngine* paintEngine ( ) const
virtual

Implements QPaintDevice.

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
protectedvirtual

Reimplemented from QPaintDevice.

int devType ( ) const
inlineprotectedvirtual

Reimplemented from QPaintDevice.

Definition at line 130 of file qglframebufferobject.h.

Friends And Related Function Documentation

friend class QGLPaintDevice
friend

Definition at line 135 of file qglframebufferobject.h.

friend class QGLFBOGLPaintDevice
friend

Definition at line 136 of file qglframebufferobject.h.


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