src/texture.c
author Tampax86
Thu, 17 Jul 2025 22:03:19 -0400
changeset 0 b2e3aa63e96c
permissions -rw-r--r--
First commit

#include "texture.h"

SDL_Point getTextureFromIndex(int index)
{
    SDL_Point texture = {index - 16 * floor(index / TILEMAP_DIMS), floor(index / TILEMAP_DIMS)};
    return texture;
}