GLTexture2DMultisample

Wrapper for 2D multisampled texture.

Constructors

this
this()

Creates a 2D multisampled texture.

Members

Functions

setImage
void setImage(int level, int samples, GLint internalFormat, int width, int height, bool fixedsamplelocations)

Sets texture content.

Inherited Members

From GLTexture

~this
~this()

Releases the OpenGL texture resource.

use
void use(int textureUnit)

Use this texture, binding it to a texture unit.

unuse
void unuse()

Unuse this texture.

getParam
int getParam(GLenum paramName)
getLevelParam
int getLevelParam(GLenum paramName, int level)
setBaseLevel
void setBaseLevel(int level)

Sets the texture base level.

setMaxLevel
void setMaxLevel(int level)

Sets the texture maximum level.

setMinLOD
void setMinLOD(float lod)

Sets the texture minimum LOD.

setMaxLOD
void setMaxLOD(float lod)

Sets the texture maximum LOD.

setLODBias
void setLODBias(float lodBias)

Sets the texture LOD bias.

setWrapS
void setWrapS(GLenum wrapS)

Sets the wrap mode for 1st texture coordinate.

setWrapT
void setWrapT(GLenum wrapT)

Sets the wrap mode for 2nd texture coordinate.

setWrapR
void setWrapR(GLenum wrapR)

Sets the wrap mode for 3rd texture coordinate.

setMinFilter
void setMinFilter(GLenum minFilter)

Sets the texture minification filter mode.

setMagFilter
void setMagFilter(GLenum magFilter)

Sets the texture magnification filter mode.

setMaxAnisotropy
void setMaxAnisotropy(float f)

Sets the texture anisotropic filter level. If texture anisotropy isn't supported, fail silently.

setBorderColor
void setBorderColor(vec4f color)

Sets the texture border color.

setCompareMode
void setCompareMode(GLenum compareMode)

Sets the texture compare mode.

setCompareFunc
void setCompareFunc(GLenum compareFunc)

Sets the texture compare mode.

getTexImage
void getTexImage(int level, GLenum format, GLenum type, void* data)

Gets the texture data.

handle
GLuint handle()
target
GLuint target()
Undocumented in source. Be warned that the author may not have intended to support it.
generateMipmap
void generateMipmap()

Regenerates the mipmapped levels.

_target
GLuint _target;
Undocumented in source.

Meta