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
}