class ffw::GLTexture2DMS
Class List > ffw :: GLTexture2DMS
OpenGL texture of type GL_TEXTURE_2D_MULTISAMPLE.
Inherits the following classes: ffw::GLTexture
Public Functions
Type | Name |
---|---|
GLTexture2DMS () | |
GLTexture2DMS (const GLTexture2DMS & other) = delete | |
GLTexture2DMS (GLTexture2DMS && other) | |
virtual | ~GLTexture2DMS () = default |
GLTexture2DMS (GLsizei width, GLsizei height, GLenum internalformat, GLint samples) Allocates the texture. | |
void | resize (GLsizei width, GLsizei height, GLint samples) Resizes the texture. |
GLTexture2DMS & | operator= (const GLTexture2DMS & other) = delete |
GLTexture2DMS & | operator= (GLTexture2DMS && other) |
Public Functions Documentation
function GLTexture2DMS (1/4)
ffw::GLTexture2DMS::GLTexture2DMS ()
function GLTexture2DMS (2/4)
ffw::GLTexture2DMS::GLTexture2DMS (
const GLTexture2DMS & other
) = delete
function GLTexture2DMS (3/4)
ffw::GLTexture2DMS::GLTexture2DMS (
GLTexture2DMS && other
)
function ~GLTexture2DMS
virtual ffw::GLTexture2DMS::~GLTexture2DMS () = default
function GLTexture2DMS (4/4)
ffw::GLTexture2DMS::GLTexture2DMS (
GLsizei width,
GLsizei height,
GLenum internalformat,
GLint samples
)
Allocates the texture.
Parameters:
- width Specifies the width of the texture image.
- height Specifies the height of the texture image.
- internalformat The internal format to be used to store the multisample texture's image. internalformat must specify a color-renderable, depth-renderable, or stencil-renderable format.
- samples The number of samples in the multisample texture's image.
Exception:
- GLException if something went wrong
The following compressed internalformats are allowed: GL_COMPRESSED_RGB_S3TC_DXT1_EXT, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, GL_COMPRESSED_RGBA_S3TC_DXT3_EXT, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, GL_COMPRESSED_RED_RGTC1, GL_COMPRESSED_RG_RGTC2, GL_COMPRESSED_SIGNED_RED_RGTC1, GL_COMPRESSED_SIGNED_RG_RGTC2
Note:
The texture is automatically destroyed once destroy() is called, or the instance of this texture class is freed. The format and pixelformat is not used and therefore set to zero (getPixelFormat and getInternalFormat will return value of zero).
function resize
void ffw::GLTexture2DMS::resize (
GLsizei width,
GLsizei height,
GLint samples
)
Resizes the texture.
Parameters:
- width Specifies the width of the texture image.
- height Specifies the height of the texture image.
- samples The number of samples in the multisample texture's image.
Note:
The internalformat is unchanged.
Exception:
- GLException if the texture has not been allocated
function operator= (1/2)
GLTexture2DMS & ffw::GLTexture2DMS::operator= (
const GLTexture2DMS & other
) = delete
function operator= (2/2)
GLTexture2DMS & ffw::GLTexture2DMS::operator= (
GLTexture2DMS && other
)
The documentation for this class was generated from the following file: include/ffw/graphics/gltexture2dms.h