src/texture.c
changeset 0 b2e3aa63e96c
equal deleted inserted replaced
-1:000000000000 0:b2e3aa63e96c
       
     1 #include "texture.h"
       
     2 
       
     3 SDL_Point getTextureFromIndex(int index)
       
     4 {
       
     5     SDL_Point texture = {index - 16 * floor(index / TILEMAP_DIMS), floor(index / TILEMAP_DIMS)};
       
     6     return texture;
       
     7 }