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

Function ILAPIENTRY ilCompressFunc

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

Source from the content-addressed store, hash-verified

745
746
747ILboolean ILAPIENTRY ilCompressFunc(ILenum Mode)
748{
749 switch (Mode)
750 {
751 case IL_COMPRESS_NONE:
752 case IL_COMPRESS_RLE:
753 //case IL_COMPRESS_LZO:
754 case IL_COMPRESS_ZLIB:
755 ilStates[ilCurrentPos].ilCompression = Mode;
756 break;
757 default:
758 ilSetError(IL_INVALID_PARAM);
759 return IL_FALSE;
760 }
761 return IL_TRUE;
762}
763
764
765//! Pushes the states indicated by Bits onto the state stack

Callers

nothing calls this directly

Calls 1

ilSetErrorFunction · 0.85

Tested by

no test coverage detected