Initial Commit
This commit is contained in:
commit
5314a9d5c5
308 changed files with 190647 additions and 0 deletions
29
include/render.h
Normal file
29
include/render.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef __RENDER_H
|
||||
#define __RENDER_H
|
||||
|
||||
#include "grid.h"
|
||||
#include "shape.h"
|
||||
#include <SDL3/SDL_video.h>
|
||||
#include <stdint.h>
|
||||
|
||||
int render_init(SDL_Window *window);
|
||||
|
||||
void render_shutdown();
|
||||
|
||||
void render_board(const grid_t board);
|
||||
|
||||
void render_board_border();
|
||||
|
||||
void render_shape(const shape_t *shape, uint8_t x, uint8_t y);
|
||||
|
||||
void render_next_shape(const shape_t *shape);
|
||||
|
||||
void render_score(uint32_t score);
|
||||
|
||||
void render_game_over_text();
|
||||
|
||||
void render_clear();
|
||||
|
||||
void render_present();
|
||||
|
||||
#endif /* __RENDER_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue