-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindow.h
More file actions
23 lines (15 loc) · 745 Bytes
/
window.h
File metadata and controls
23 lines (15 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _WINDOW_H_
#define _WINDOW_H_
#include <SDL2/SDL.h>
typedef struct Window Window;
Window* window_init(int32_t width, int32_t height, char *title);
void window_draw_circle(Window *window, int32_t x, int32_t y, int32_t rad, int32_t r, int32_t g, int32_t b);
void window_draw_line(Window *window, int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t r, int32_t g, int32_t b);
void window_draw_box(Window *window, int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t r, int32_t g, int32_t b);
void window_clear(Window *window);
void window_render(Window *window);
void window_close(Window *window);
int32_t window_get_width(Window *window);
int32_t window_get_height(Window *window);
Uint32 time_left(Uint32 next_time);
#endif