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

Function ILAPIENTRY ilutLoadResource

DevIL/src-ILUT/src/ilut_win32.cpp:755–761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753
754
755ILboolean ILAPIENTRY ilutLoadResource(HINSTANCE hInst, ILint ID, ILstring ResourceType, ILenum Type)
756{
757 HRSRC Resource = (HRSRC)LoadResource(hInst, FindResource(hInst, MAKEINTRESOURCE(ID), ResourceType));
758 ILubyte *Data = (ILubyte*)LockResource(Resource);
759
760 return ilLoadL(Type, Data, SizeofResource(hInst, FindResource(hInst, MAKEINTRESOURCE(ID), ResourceType)));
761}
762
763
764#if !defined(_WIN32_WCE) && !(defined(_WIN32) && defined(__GNUC__))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected