MCPcopy Create free account
hub / github.com/DentonW/DevIL / ILAPIENTRY ilFormatFunc

Function ILAPIENTRY ilFormatFunc

DevIL/src-IL/src/il_states.cpp:703–721  ·  view source on GitHub ↗

Sets the default format to be used.

Source from the content-addressed store, hash-verified

701
702//! Sets the default format to be used.
703ILboolean ILAPIENTRY ilFormatFunc(ILenum Mode)
704{
705 switch (Mode)
706 {
707 //case IL_COLOUR_INDEX:
708 case IL_RGB:
709 case IL_RGBA:
710 case IL_BGR:
711 case IL_BGRA:
712 case IL_LUMINANCE:
713 case IL_LUMINANCE_ALPHA:
714 ilStates[ilCurrentPos].ilFormatMode = Mode;
715 break;
716 default:
717 ilSetError(IL_INVALID_PARAM);
718 return IL_FALSE;
719 }
720 return IL_TRUE;
721}
722
723
724//! Sets the default type to be used.

Callers

nothing calls this directly

Calls 1

ilSetErrorFunction · 0.85

Tested by

no test coverage detected