24 lines
408 B
C
24 lines
408 B
C
#ifndef __RENDER_TILE_H
|
|
#define __RENDER_TILE_H
|
|
|
|
#include <SDL3/SDL_render.h>
|
|
#include <stdint.h>
|
|
|
|
typedef enum {
|
|
TILE_GRAY,
|
|
TILE_BLUE,
|
|
TILE_LIGHTBLUE,
|
|
TILE_RED,
|
|
TILE_GREEN,
|
|
TILE_YELLOW,
|
|
TILE_ORANGE,
|
|
TILE_MAGENTA,
|
|
} tile_t;
|
|
|
|
int tile_init(SDL_Renderer *renderer);
|
|
|
|
void tile_shutdown();
|
|
|
|
void tile_render(SDL_Renderer *renderer, const SDL_FRect* rect, tile_t tile_index);
|
|
|
|
#endif // __RENDER_TILE_H
|