class ffw::GLTexture2DArrayMS

Class List > ffw :: GLTexture2DArrayMS

OpenGL texture of type GL_TEXTURE_2D_MULTISAMPLE_ARRAY.

Inherits the following classes: ffw::GLTexture

Public Functions

Type Name
GLTexture2DArrayMS ()
GLTexture2DArrayMS (const GLTexture2DArrayMS & other) = delete
GLTexture2DArrayMS (GLTexture2DArrayMS && other)
virtual ~GLTexture2DArrayMS () = default
GLTexture2DArrayMS (GLsizei width, GLsizei height, GLsizei layers, GLenum internalformat, GLint samples)
Allocates the texture.
void resize (GLsizei width, GLsizei height, GLsizei layers, GLint samples)
Resizes the texture.
GLTexture2DArrayMS & operator= (const GLTexture2DArrayMS & other) = delete
GLTexture2DArrayMS & operator= (GLTexture2DArrayMS && other)

Public Functions Documentation

function GLTexture2DArrayMS (1/4)

ffw::GLTexture2DArrayMS::GLTexture2DArrayMS ()

function GLTexture2DArrayMS (2/4)

ffw::GLTexture2DArrayMS::GLTexture2DArrayMS (
    const GLTexture2DArrayMS & other
) = delete

function GLTexture2DArrayMS (3/4)

ffw::GLTexture2DArrayMS::GLTexture2DArrayMS (
    GLTexture2DArrayMS && other
)

function ~GLTexture2DArrayMS

virtual ffw::GLTexture2DArrayMS::~GLTexture2DArrayMS () = default

function GLTexture2DArrayMS (4/4)

ffw::GLTexture2DArrayMS::GLTexture2DArrayMS (
    GLsizei width,
    GLsizei height,
    GLsizei layers,
    GLenum internalformat,
    GLint samples
)

Allocates the texture.

Parameters:

  • width Specifies the width of the texture image.
  • height Specifies the height of the texture image.
  • layers Specifies the number of laters 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:

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::GLTexture2DArrayMS::resize (
    GLsizei width,
    GLsizei height,
    GLsizei layers,
    GLint samples
)

Resizes the texture.

Parameters:

  • width Specifies the width of the texture image.
  • height Specifies the height of the texture image.
  • layers Specifies the number of laters of the texture image.
  • samples The number of samples in the multisample texture's image.

Note:

The internalformat is unchanged.

Exception:

function operator= (1/2)

GLTexture2DArrayMS & ffw::GLTexture2DArrayMS::operator= (
    const GLTexture2DArrayMS & other
) = delete

function operator= (2/2)

GLTexture2DArrayMS & ffw::GLTexture2DArrayMS::operator= (
    GLTexture2DArrayMS && other
)

The documentation for this class was generated from the following file: include/ffw/graphics/gltexture2darrayms.h