Texture

*

Constructors

this
this()

* Craete an empty texture.

this
this(uint id)

* Create a texture with a given id.

Members

Functions

bind
typeof(this) bind(TextureType type)

* Bind the texture. * Returns reference to this so it can be used in a stream.

deleteTextures
typeof(this) deleteTextures()

* Delete texture internally. * Returns reference to this so it can be used in a stream.

generateMipmap
typeof(this) generateMipmap()

* Generate mipmap for texture 2D. * Returns reference to this so it can be used in a stream.

generateTextures
typeof(this) generateTextures()

* Generate texture internally. * Returns reference to this so it can be used in a stream.

getHeight
uint getHeight()

* Returns texture height.

getId
uint getId()

* Returns texture unique id.

getLODBias
float getLODBias()

* Returns the texture level of detail bias.

getRelativePath
string getRelativePath()

* Returns the relative texure path.

getType
TextureType getType()

* Returns the type of the texture. * For available options see TextureType.

getWidth
uint getWidth()

* Returns texture width.

setExtent
typeof(this) setExtent(uint width, uint height)

* Set both width and height of texture. * Returns reference to this so it can be used in a stream.

setHeight
typeof(this) setHeight(uint height)

* Set the texture height. * Returns reference to this so it can be used in a stream.

setLODBias
typeof(this) setLODBias(float value)

* Set texture level of detail bias. * Returns reference to this so it can be used in a stream.

setRealtivePath
void setRealtivePath(string path)
Undocumented in source. Be warned that the author may not have intended to support it.
setWidth
typeof(this) setWidth(uint width)

* Set the texture width. * Returns reference to this so it can be used in a stream.

unbind
typeof(this) unbind()

* Unbind the texture. * Returns reference to this so it can be used in a stream.

Meta