Dgame.Graphic.Texture

Members

Functions

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

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

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 = false)

Switch/Reverse Texture.Format.

Structs

Texture
struct Texture

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

Meta