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

Function ILAPIENTRY iluSetLanguage

DevIL/src-ILU/src/ilu_error.cpp:84–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83
84ILboolean ILAPIENTRY iluSetLanguage(ILenum Language)
85{
86 switch (Language)
87 {
88 case ILU_ENGLISH:
89 case ILU_ARABIC:
90 case ILU_DUTCH:
91 case ILU_FRENCH:
92 case ILU_JAPANESE:
93 case ILU_SPANISH:
94 case ILU_GERMAN:
95 case ILU_ITALIAN:
96 iluErrors = iluErrorStrings[Language - ILU_ENGLISH];
97 iluLibErrors = iluLibErrorStrings[Language - ILU_ENGLISH];
98 iluMiscErrors = iluMiscErrorStrings[Language - ILU_ENGLISH];
99 break;
100
101 default:
102 ilSetError(IL_INVALID_ENUM);
103 return IL_FALSE;
104 }
105
106 return IL_TRUE;
107}
108
109

Callers

nothing calls this directly

Calls 1

ilSetErrorFunction · 0.85

Tested by

no test coverage detected