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

Function XpmGetEntry

DevIL/src-IL/src/il_xpm.cpp:214–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212
213
214void XpmGetEntry(XPMHASHENTRY **Table, const ILubyte* Name, int Len, XpmPixel Colour)
215{
216 XPMHASHENTRY* Entry;
217 ILuint Index;
218
219 Index = XpmHash(Name, Len);
220 Entry = Table[Index];
221 while (Entry != NULL && strncmp((char*)(Entry->ColourName), (char*)Name, Len) != 0)
222 Entry = Entry->Next;
223
224 if (Entry != NULL)
225 memcpy(Colour, Entry->ColourValue, sizeof(XpmPixel));
226}
227
228#endif //XPM_DONT_USE_HASHTABLE
229

Callers 1

il_xpm.cppFile · 0.85

Calls 1

XpmHashFunction · 0.85

Tested by

no test coverage detected