Dgame.Graphics.Texture

Undocumented in source.

Members

Classes

Texture
class Texture

A Texture is a 2 dimensional pixel reprasentation. It is a wrapper of an OpenGL Texture.

Functions

bitsToFormat
Texture.Format bitsToFormat(ubyte bits, bool reverse)

Format a bit count into the related Texture.Format. If no bit count is supported, it returns Texture.Format.None.

compressFormat
Texture.Format compressFormat(Texture.Format fmt)

Choose the right compress format for the given Texture.Format.

formatToBits
ubyte formatToBits(Texture.Format fmt)

Format a Texture.Format into the related bit count. If the format is not supported, it returns 0.

switchFormat
Texture.Format switchFormat(Texture.Format fmt, bool alpha)

Switch/Reverse Texture.Format.

Meta