forked from nakidai/csnake
1
0
Fork 0
csnake/include/screen.h

19 lines
359 B
C
Raw Normal View History

2023-10-29 20:03:23 +03:00
#ifndef __SCREEN_H__
#define __SCREEN_H__
typedef struct screen_t
{
int width;
int height;
char *screen;
} Screen;
typedef char Point;
Screen *screenCreate(int width, int height, Point fill_value);
void screenFree(Screen *screen);
Point *screenGetPoint(Screen *screen, int x, int y);
void screenShow(Screen *screen);
#endif /* __SCREEN_H__ */