GunnGames

Untitled

Apr 21st, 2016
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1.     SDL_QueryTexture(currentImage, NULL, NULL, &textureWidth, &textureHeight);
  2.  
  3.     frameWidth = textureWidth / 3;
  4.     frameHeight = textureHeight / 4;
  5.  
  6.     playerRect.x = 0;
  7.     playerRect.y = 0;
  8.     playerRect.w = 64;
  9.     playerRect.h = 64;
  10.  
  11.     cropRect.x = 0;
  12.     cropRect.y = 0;
  13.     cropRect.w = frameWidth;
  14.     cropRect.h = frameHeight;
Advertisement
Add Comment
Please, Sign In to add comment