IrrTextureGetColorFormat

section index

## NAME

IrrTextureGetColorFormat - Returns the color format of texture.

## SYNOPSIS

colorformat.l = IrrTextureGetColorFormat(*Texture)

## INPUTS

*Texture | - | A Pointer to a Texture

## FUNCTION

Returns the color format of texture. Possible values : #IRR_ECF_A1R5G5B5 - 16 bit color format used by the software driver, and thus preferred by all other irrlicht engine video drivers. There are 5 bits for every color component, and a single bit is left for alpha information. #IRR_ECF_R5G6B5 - Standard 16 bit color format. #IRR_ECF_R8G8B8 - 24 bit color, no alpha channel, but 8 bit for red, green and blue. #IRR_ECF_A8R8G8B8 - Default 32 bit color format. 8 bits are used for every component: red, green, blue and alpha. If you want to manipulate a Texture, you have to know the 'size' of each Pixel.

## RESULT

Returns the color format of texture.