diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2015-01-14 00:01:42 +0100 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-01-17 06:32:27 +0100 |
commit | 0d65bf4f9f3f364f8eb389faccb9daad5fb3bd90 (patch) | |
tree | d1b03a9db795413f080cb0a24493ede029cfa591 /src/gui/opengl | |
parent | e884ecf6d1d560e245971f3035317c4fd8d4479b (diff) |
QOpenGLTexture: better document the depth/stencil features
For some reason these docs were missing, add them.
Change-Id: If17cf429925ee849a0817e0294a7db7f6dace79b
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/gui/opengl')
-rw-r--r-- | src/gui/opengl/qopengltexture.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/opengl/qopengltexture.cpp b/src/gui/opengl/qopengltexture.cpp index 30ca7fce66..5dc1d017f7 100644 --- a/src/gui/opengl/qopengltexture.cpp +++ b/src/gui/opengl/qopengltexture.cpp @@ -3577,6 +3577,16 @@ QOpenGLTexture::SwizzleValue QOpenGLTexture::swizzleMask(SwizzleComponent compon } /*! + \enum QOpenGLTexture::DepthStencilMode + \since 5.4 + This enum specifies which component of a depth/stencil texture is + accessed when the texture is sampled. + + \value DepthMode Equivalent to GL_DEPTH_COMPONENT. + \value StencilMode Equivalent to GL_STENCIL_INDEX. +*/ + +/*! If using a texture that has a combined depth/stencil format this function sets which component of the texture is accessed to \a mode. @@ -3585,6 +3595,7 @@ QOpenGLTexture::SwizzleValue QOpenGLTexture::swizzleMask(SwizzleComponent compon the parameter is set to StencilMode, the shader will access the stencil component. \note This function has no effect on Mac and Qt built for OpenGL ES 2. + \since 5.4 \sa depthStencilMode() */ void QOpenGLTexture::setDepthStencilMode(QOpenGLTexture::DepthStencilMode mode) @@ -3612,6 +3623,7 @@ void QOpenGLTexture::setDepthStencilMode(QOpenGLTexture::DepthStencilMode mode) /*! Returns the depth stencil mode for textures using a combined depth/stencil format. + \since 5.4 \sa setDepthStencilMode() */ QOpenGLTexture::DepthStencilMode QOpenGLTexture::depthStencilMode() const |