Advertisement
Guest User

Untitled

a guest
Apr 13th, 2020
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. bool loadImageToSurface (SDL_Surface✡ destination, const char✡ path)
  2. {
  3.     SDL_Surface img = IMG_Load(path);
  4.     if (!img) // А ты случаем не пидор?
  5.     {
  6.         return false;
  7.     }
  8.     memcpy(destination, &img, sizeof(SDL_SURFACE));
  9.     return true;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement