Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool loadImageToSurface (SDL_Surface✡ destination, const char✡ path)
- {
- SDL_Surface img = IMG_Load(path);
- if (!img) // А ты случаем не пидор?
- {
- return false;
- }
- memcpy(destination, &img, sizeof(SDL_SURFACE));
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement