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

Function ILAPIENTRY ilIsEnabled

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

Checks whether the mode is enabled.

Source from the content-addressed store, hash-verified

274
275//! Checks whether the mode is enabled.
276ILboolean ILAPIENTRY ilIsEnabled(ILenum Mode)
277{
278 switch (Mode)
279 {
280 case IL_ORIGIN_SET:
281 return ilStates[ilCurrentPos].ilOriginSet;
282 case IL_FORMAT_SET:
283 return ilStates[ilCurrentPos].ilFormatSet;
284 case IL_TYPE_SET:
285 return ilStates[ilCurrentPos].ilTypeSet;
286 case IL_FILE_OVERWRITE:
287 return ilStates[ilCurrentPos].ilOverWriteFiles;
288 case IL_CONV_PAL:
289 return ilStates[ilCurrentPos].ilAutoConvPal;
290 case IL_DEFAULT_ON_FAIL:
291 return ilStates[ilCurrentPos].ilDefaultOnFail;
292 case IL_USE_KEY_COLOUR:
293 return ilStates[ilCurrentPos].ilUseKeyColour;
294 case IL_BLIT_BLEND:
295 return ilStates[ilCurrentPos].ilBlitBlend;
296 case IL_SAVE_INTERLACED:
297 return ilStates[ilCurrentPos].ilInterlace;
298 case IL_JPG_PROGRESSIVE:
299 return ilStates[ilCurrentPos].ilJpgProgressive;
300 case IL_NVIDIA_COMPRESS:
301 return ilStates[ilCurrentPos].ilUseNVidiaDXT;
302 case IL_SQUISH_COMPRESS:
303 return ilStates[ilCurrentPos].ilUseSquishDXT;
304
305 default:
306 ilSetError(IL_INVALID_ENUM);
307 }
308
309 return IL_FALSE;
310}
311
312
313//! Checks whether the mode is disabled.

Callers

nothing calls this directly

Calls 1

ilSetErrorFunction · 0.85

Tested by

no test coverage detected