GLTexture3D

Wrapper for 3D texture.

Constructors

this
this(OpenGL gl)

Creates a 3D texture.

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.

Inherited Members

From GLTexture

close
void close()

Releases the OpenGL texture resource.

use
void use(int textureUnit = 0)

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()
generateMipmap
void generateMipmap()

Regenerates the mipmapped levels.

Meta