The QGLMaskedSurface class represents a masked copy of another OpenGL drawing surface.
More...
#include <qglmaskedsurface_p.h>
The QGLMaskedSurface class represents a masked copy of another OpenGL drawing surface.
- Since
- 4.8
::
This enum defines the channels to mask with QGLMaskedSurface.
RedMask Allow the red channel to be written to the color buffer. GreenMask Allow the green channel to be written to the color buffer. BlueMask Allow the blue channel to be written to the color buffer. AlphaMask Allow the alpha channel to be written to the color buffer.
Enumerator |
---|
RedMask |
|
GreenMask |
|
BlueMask |
|
AlphaMask |
|
QGLMaskedSurface::QGLMaskedSurface |
( |
) | |
|
Constructs a masked OpenGL drawing surface with surface() initially set to null and mask() initially set to allow all channels to be written to the color buffer.
QGLMaskedSurface::QGLMaskedSurface |
( |
QGLAbstractSurface * |
surface, |
|
|
QGLMaskedSurface::BufferMask |
mask |
|
) |
| |
Constructs a masked OpenGL drawing surface that applies mask to surface when activate() is called.
QGLMaskedSurface::~QGLMaskedSurface |
( |
) | |
|
Destroys this masked OpenGL drawing surface.
bool QGLMaskedSurface::activate |
( |
QGLAbstractSurface * |
prevSurface = 0 ) | |
|
void QGLMaskedSurface::deactivate |
( |
QGLAbstractSurface * |
nextSurface = 0 ) | |
|
bool QGLMaskedSurface::isValid |
( |
) | |
const |
QGLMaskedSurface::BufferMask QGLMaskedSurface::mask |
( |
) | |
const |
void QGLMaskedSurface::setMask |
( |
QGLMaskedSurface::BufferMask |
mask) | |
|
void QGLMaskedSurface::setSurface |
( |
QGLAbstractSurface * |
surface) | |
|
QGLAbstractSurface * QGLMaskedSurface::surface |
( |
) | |
const |
QRect QGLMaskedSurface::viewportGL |
( |
) | |
const |
The documentation for this class was generated from the following files: