Initial Commit
This commit is contained in:
commit
5314a9d5c5
308 changed files with 190647 additions and 0 deletions
24
include/render/tile.h
Normal file
24
include/render/tile.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue