InternalFormat

An enum of sized texture component formats.

Members

Functions

getBytes
uint getBytes()

Returns the number of bytes used by a single pixel in the format.

getBytesPerComponent
uint getBytesPerComponent()

Returns the number of bytes used by a single pixel component in the format.

getComponentCount
uint getComponentCount()

Returns the number of components in the format.

getComponentType
DataType getComponentType()

Returns the data type of the components.

getFormat
Format getFormat()

Returns the format associated to this internal format

getGLConstant
uint getGLConstant()

Gets the OpenGL constant for this internal 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.

Meta