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

Function ILAPIENTRY ilRegisterFormat

DevIL/src-IL/src/il_register.cpp:248–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246
247
248void ILAPIENTRY ilRegisterFormat(ILenum Format)
249{
250 switch (Format)
251 {
252 case IL_COLOUR_INDEX:
253 case IL_RGB:
254 case IL_RGBA:
255 case IL_BGR:
256 case IL_BGRA:
257 case IL_LUMINANCE:
258 case IL_LUMINANCE_ALPHA:
259 iCurImage->Format = Format;
260 break;
261 default:
262 ilSetError(IL_INVALID_ENUM);
263 }
264 return;
265}
266
267
268ILboolean ILAPIENTRY ilRegisterNumFaces(ILuint Num)

Callers

nothing calls this directly

Calls 1

ilSetErrorFunction · 0.85

Tested by

no test coverage detected