Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SDL_QueryTexture(currentImage, NULL, NULL, &textureWidth, &textureHeight);
- frameWidth = textureWidth / 3;
- frameHeight = textureHeight / 4;
- playerRect.x = 0;
- playerRect.y = 0;
- playerRect.w = 64;
- playerRect.h = 64;
- cropRect.x = 0;
- cropRect.y = 0;
- cropRect.w = frameWidth;
- cropRect.h = frameHeight;
Advertisement
Add Comment
Please, Sign In to add comment