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

Function ILAPIENTRY ilHint

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

Specifies implementation-dependent performance hints

Source from the content-addressed store, hash-verified

883
884//! Specifies implementation-dependent performance hints
885void ILAPIENTRY ilHint(ILenum Target, ILenum Mode)
886{
887 switch (Target)
888 {
889 case IL_MEM_SPEED_HINT:
890 switch (Mode)
891 {
892 case IL_FASTEST:
893 ilHints.MemVsSpeedHint = Mode;
894 break;
895 case IL_LESS_MEM:
896 ilHints.MemVsSpeedHint = Mode;
897 break;
898 case IL_DONT_CARE:
899 ilHints.MemVsSpeedHint = IL_FASTEST;
900 break;
901 default:
902 ilSetError(IL_INVALID_ENUM);
903 return;
904 }
905 break;
906
907 case IL_COMPRESSION_HINT:
908 switch (Mode)
909 {
910 case IL_USE_COMPRESSION:
911 ilHints.CompressHint = Mode;
912 break;
913 case IL_NO_COMPRESSION:
914 ilHints.CompressHint = Mode;
915 break;
916 case IL_DONT_CARE:
917 ilHints.CompressHint = IL_NO_COMPRESSION;
918 break;
919 default:
920 ilSetError(IL_INVALID_ENUM);
921 return;
922 }
923 break;
924
925
926 default:
927 ilSetError(IL_INVALID_ENUM);
928 return;
929 }
930
931 return;
932}
933
934
935ILenum iGetHint(ILenum Target)

Callers

nothing calls this directly

Calls 1

ilSetErrorFunction · 0.85

Tested by

no test coverage detected