29 lines
505 B
C
29 lines
505 B
C
#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 */
|