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

Function ILAPIENTRY ilIsImage

DevIL/src-IL/src/il_stack.cpp:181–199  ·  view source on GitHub ↗

Checks if Image is a valid ilGenImages-generated image (like glIsTexture()).

Source from the content-addressed store, hash-verified

179
180//! Checks if Image is a valid ilGenImages-generated image (like glIsTexture()).
181ILboolean ILAPIENTRY ilIsImage(ILuint Image)
182{
183 //iFree *Temp = FreeNames;
184
185 if (ImageStack == NULL)
186 return IL_FALSE;
187 if (Image >= LastUsed || Image == 0)
188 return IL_FALSE;
189
190 /*do {
191 if (Temp->Name == Image)
192 return IL_FALSE;
193 } while ((Temp = Temp->Next));*/
194
195 if (ImageStack[Image] == NULL) // Easier check.
196 return IL_FALSE;
197
198 return IL_TRUE;
199}
200
201
202//! Closes Image and frees all memory associated with it.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected