IrrSetTextureCreationFlag

section index

## NAME

IrrSetTextureCreationFlag - Enables or disables a texture creation flag.

## SYNOPSIS

IrrSetTextureCreationFlag(flag.l, bool.l)

## INPUTS

flag.l

-

One of the TextureCreation Flags :
#IRR_ETCF_ALWAYS_16_BIT
Forces the driver to create 16 bit textures always,
indepenent of which format the file on disk has. When choosing this you
may loose some color detail, but gain much speed and memory. 16 bit textures
can be transferred twice as fast as 32 bit textures and only use half of the
space in memory. When using this flag, it does not make sence to use the
flags #IRR_ETCF_ALWAYS_32_BIT, #IRR_ETCF_OPTIMIZED_FOR_QUALITY, or #IRR_ETCF_OPTIMIZED_FOR_SPEED
at the same time.
#IRR_ETCF_ALWAYS_32_BIT
Forces the driver to create 32 bit textures always, indepenent of which format
the file on disk has. Please note that some drivers (like the software device)
will ignore this, because they only are able to create and use 16 bit textures.
When using this flag, it does not make sence to use the flags
#IRR_ETCF_ALWAYS_16_BIT, #IRR_ETCF_OPTIMIZED_FOR_QUALITY, or #IRR_ETCF_OPTIMIZED_FOR_SPEED at
the same time.
#IRR_ETCF_OPTIMIZED_FOR_QUALITY
Lets the driver decide in which format the texutures are created and
tries to make the textures look as good as possible. Usually it simply
chooses the format in which the texture was stored on disk. When using
this flag, it does not make sence to use the flags
#IRR_ETCF_ALWAYS_16_BIT, #IRR_ETCF_ALWAYS_32_BIT, or #IRR_ETCF_OPTIMIZED_FOR_SPEED
at the same time.
#IRR_ETCF_OPTIMIZED_FOR_SPEED
Lets the driver decide in which format the textures are created and tries
to create them maximizing render speed. When using this flag, it does not
make sence to use the flags #IRR_ETCF_ALWAYS_16_BIT, #IRR_ETCF_ALWAYS_32_BIT,
or #IRR_ETCF_OPTIMIZED_FOR_QUALITY, at the same time.
#IRR_ETCF_CREATE_MIP_MAPS
Automaticly creates mip map levels for the textures.

bool.l | - | #True or #Flase to enable or disable the flag.

## FUNCTION

This flag defines how textures should be created. By changing this value, you can influence for example the speed of rendering a lot. But please note that the video drivers take this value only as recommendation. It could happen that you enable the ETCM_ALWAYS_16_BIT mode, but the driver creates 32 bit textures.

## RESULT

nothing

## EXAMPLE

        IrrSetTextureCreationFlag(#IRR_ETCF_OPTIMIZED_FOR_SPEED, #True)

## NOTES