Qt 4.8
Public Functions | List of all members
ShaderEffectBuffer Class Reference

#include <shadereffectbuffer.h>

Inheritance diagram for ShaderEffectBuffer:
QGLFramebufferObject QPaintDevice

Public Functions

 ShaderEffectBuffer (const QSize &size, const QGLFramebufferObjectFormat &format)
 
 ~ShaderEffectBuffer ()
 
- Public Functions inherited from QGLFramebufferObject
Attachment attachment () const
 Returns the status of the depth and stencil buffers attached to this framebuffer object. More...
 
bool bind ()
 Switches rendering from the default, windowing system provided framebuffer to this framebuffer object. More...
 
void drawTexture (const QRectF &target, GLuint textureId, GLenum textureTarget=GL_TEXTURE_2D)
 Draws the given texture, textureId, to the given target rectangle, target, in OpenGL model space. More...
 
void drawTexture (const QPointF &point, GLuint textureId, GLenum textureTarget=GL_TEXTURE_2D)
 Draws the given texture, textureId, at the given point in OpenGL model space. More...
 
QGLFramebufferObjectFormat format () const
 Returns the format of this framebuffer object. More...
 
GLuint handle () const
 Returns the GL framebuffer object handle for this framebuffer object (returned by the glGenFrameBuffersEXT() function). More...
 
bool isBound () const
 Returns true if the framebuffer object is currently bound to a context, otherwise false is returned. More...
 
bool isValid () const
 Returns true if the framebuffer object is valid. More...
 
QPaintEnginepaintEngine () const
 Reimplemented Function More...
 
 QGLFramebufferObject (const QSize &size, GLenum target=GL_TEXTURE_2D)
 Constructs an OpenGL framebuffer object and binds a 2D GL texture to the buffer of the size size. More...
 
 QGLFramebufferObject (int width, int height, GLenum target=GL_TEXTURE_2D)
 Constructs an OpenGL framebuffer object and binds a 2D GL texture to the buffer of the given width and height. More...
 
 QGLFramebufferObject (const QSize &size, Attachment attachment, GLenum target=GL_TEXTURE_2D, GLenum internal_format=GL_RGBA8)
 Constructs an OpenGL framebuffer object and binds a texture to the buffer of the given size. More...
 
 QGLFramebufferObject (int width, int height, Attachment attachment, GLenum target=GL_TEXTURE_2D, GLenum internal_format=GL_RGBA8)
 Constructs an OpenGL framebuffer object and binds a texture to the buffer of the given width and height. More...
 
 QGLFramebufferObject (const QSize &size, const QGLFramebufferObjectFormat &format)
 Constructs an OpenGL framebuffer object of the given size based on the supplied format. More...
 
 QGLFramebufferObject (int width, int height, const QGLFramebufferObjectFormat &format)
 Constructs an OpenGL framebuffer object of the given width and height based on the supplied format. More...
 
bool release ()
 Switches rendering back to the default, windowing system provided framebuffer. More...
 
QSize size () const
 Returns the size of the texture attached to this framebuffer object. More...
 
GLuint texture () const
 Returns the texture id for the texture attached as the default rendering target in this framebuffer object. More...
 
QImage toImage () const
 Returns the contents of this framebuffer object as a QImage. More...
 
virtual ~QGLFramebufferObject ()
 Destroys the framebuffer object and frees any allocated resources. More...
 
- Public Functions inherited from QPaintDevice
int colorCount () const
 
int depth () const
 
virtual HDC getDC () const
 
int height () const
 
int heightMM () const
 
int logicalDpiX () const
 
int logicalDpiY () const
 
QT_DEPRECATED int numColors () const
 
bool paintingActive () const
 
int physicalDpiX () const
 
int physicalDpiY () const
 
virtual void releaseDC (HDC hdc) const
 
int width () const
 
int widthMM () const
 
virtual ~QPaintDevice ()
 

Additional Inherited Members

- Public Types inherited from QGLFramebufferObject
enum  Attachment { NoAttachment, CombinedDepthStencil, Depth }
 This enum type is used to configure the depth and stencil buffers attached to the framebuffer object when it is created. More...
 
- Public Types inherited from QPaintDevice
enum  PaintDeviceMetric {
  PdmWidth = 1, PdmHeight, PdmWidthMM, PdmHeightMM,
  PdmNumColors, PdmDepth, PdmDpiX, PdmDpiY,
  PdmPhysicalDpiX, PdmPhysicalDpiY
}
 
- Static Public Functions inherited from QGLFramebufferObject
static bool bindDefault ()
 Switches rendering back to the default, windowing system provided framebuffer. More...
 
static void blitFramebuffer (QGLFramebufferObject *target, const QRect &targetRect, QGLFramebufferObject *source, const QRect &sourceRect, GLbitfield buffers=GL_COLOR_BUFFER_BIT, GLenum filter=GL_NEAREST)
 Blits from the sourceRect rectangle in the source framebuffer object to the targetRect rectangle in the target framebuffer object. More...
 
static bool hasOpenGLFramebufferBlit ()
 Returns true if the OpenGL GL_EXT_framebuffer_blit extension is present on this system; otherwise returns false. More...
 
static bool hasOpenGLFramebufferObjects ()
 Returns true if the OpenGL GL_EXT_framebuffer_object extension is present on this system; otherwise returns false. More...
 
- Static Public Functions inherited from QPaintDevice
static QWSDisplayqwsDisplay ()
 
- Protected Functions inherited from QGLFramebufferObject
int devType () const
 
int metric (PaintDeviceMetric metric) const
 Reimplemented Function More...
 
- Protected Functions inherited from QPaintDevice
 QPaintDevice ()
 
- Protected Variables inherited from QPaintDevice
ushort painters
 

Detailed Description

Definition at line 51 of file shadereffectbuffer.h.

Constructors and Destructors

◆ ShaderEffectBuffer()

ShaderEffectBuffer::ShaderEffectBuffer ( const QSize size,
const QGLFramebufferObjectFormat format 
)

Definition at line 44 of file shadereffectbuffer.cpp.

45  : QGLFramebufferObject(size, format)
46 {
47 }
QGLFramebufferObject(const QSize &size, GLenum target=GL_TEXTURE_2D)
Constructs an OpenGL framebuffer object and binds a 2D GL texture to the buffer of the size size...

◆ ~ShaderEffectBuffer()

ShaderEffectBuffer::~ShaderEffectBuffer ( )

Definition at line 49 of file shadereffectbuffer.cpp.

50 {
51 }

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