GLTexture2DArray

Wrapper for 2D texture array.

Constructors

this
this(OpenGL gl)

Creates a 2D texture array.

Members

Functions

setImage
void setImage(int level, GLint internalFormat, int width, int height, int depth, int border, GLenum format, GLenum type, void* data)

Sets texture content.

setSubImage
void setSubImage(int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, GLenum format, GLenum type, void* data)

Sets partial texture content.

Inherited Members

From GLTexture

~this
~this()

Releases the OpenGL texture resource.

close
deprecated void close()
Undocumented in source. Be warned that the author may not have intended to support it.
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.

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