bool Bitmap::LoadFile(const TCHAR *path) { #ifdef HAVE_AYGSHELL_DLL AYGShellDLL ayg; bitmap = ayg.SHLoadImageFile(path); if (bitmap != nullptr) return true; #endif #ifdef HAVE_IMGDECMP_DLL bitmap = load_imgdecmp_file(path); if (bitmap != nullptr) return true; #endif return false; }
bool Bitmap::load_file(const TCHAR *path) { #ifdef ENABLE_SDL surface = ::SDL_LoadBMP(path); if (surface != NULL) return true; #endif #ifdef HAVE_AYGSHELL_DLL AYGShellDLL ayg; bitmap = ayg.SHLoadImageFile(path); if (bitmap != NULL) return true; #endif #ifdef HAVE_IMGDECMP_DLL bitmap = load_imgdecmp_file(path); if (bitmap != NULL) return true; #endif return false; }
HBITMAP ResourceLoader::SHLoadImageResource(unsigned id) { const AYGShellDLL ayg_shell_dll; return ayg_shell_dll.SHLoadImageResource(ResourceLoaderInstance, id); }