#include "texture.h" SDL_Point getTextureFromIndex(int index) { SDL_Point texture = {index - 16 * floor(index / TILEMAP_DIMS), floor(index / TILEMAP_DIMS)}; return texture; }