Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
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;
}