Format

An enum of texture component formats.

Members

Functions

getComponentCount
uint getComponentCount()

Returns the number of components in the format.

getGLConstant
uint getGLConstant()

Gets the OpenGL constant for this format.

hasAlpha
bool hasAlpha()

Returns true if this format has an alpha component.

hasBlue
bool hasBlue()

Returns true if this format has a blue component.

hasDepth
bool hasDepth()

Returns true if this format has a depth component.

hasGreen
bool hasGreen()

Returns true if this format has a green component.

hasRed
bool hasRed()

Returns true if this format has a red component.

hasStencil
bool hasStencil()

Returns true if this format has a stencil component.

Meta