Checks if Image is a valid ilGenImages-generated image (like glIsTexture()).
| 179 | |
| 180 | //! Checks if Image is a valid ilGenImages-generated image (like glIsTexture()). |
| 181 | ILboolean 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. |
nothing calls this directly
no outgoing calls
no test coverage detected