MCPcopy Create free account
hub / github.com/DentonW/DevIL / iGetInt

Function iGetInt

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

Source from the content-addressed store, hash-verified

1172
1173
1174ILint iGetInt(ILenum Mode)
1175{
1176 //like ilGetInteger(), but sets another error on failure
1177
1178 //call ilGetIntegerv() for more robust code
1179 ILenum err;
1180 ILint r = -1;
1181
1182 ilGetIntegerv(Mode, &r);
1183
1184 //check if an error occured, set another error
1185 err = ilGetError();
1186 if (r == -1 && err == IL_INVALID_ENUM)
1187 ilSetError(IL_INTERNAL_ERROR);
1188 else
1189 ilSetError(err); //restore error
1190
1191 return r;
1192}

Callers 9

ILAPIENTRY iConvertImageFunction · 0.85
iSaveSgiInternalFunction · 0.85
iSaveDdsInternalFunction · 0.85
iSaveTargaInternalFunction · 0.85
iTargaSizeFunction · 0.85
iSaveWbmpInternalFunction · 0.85
iSaveJpegInternalFunction · 0.85
iLoadPcdInternalFunction · 0.85
iSavePngInternalFunction · 0.85

Calls 1

ilSetErrorFunction · 0.85

Tested by

no test coverage detected