X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fivac.git;a=blobdiff_plain;f=src%2Fdisplay.h;h=29cf6c962403b5781c43b55d8615b82760d4b1c2;hp=7ec779e7e5371eb13497c597aebbd8c119073e2a;hb=99e577ce594ed343397276ac6c2dd9729ac10d6d;hpb=da2c28e700faec39bab322b103fe0298c52fbda7 diff --git a/src/display.h b/src/display.h index 7ec779e..29cf6c9 100644 --- a/src/display.h +++ b/src/display.h @@ -2,21 +2,36 @@ /* includes */ #include +#include +#include +#include #include /* defines */ #define D_SUCCESS 1 #define D_ERROR -1 +#define D_INV_STRING_LEN -2 + +#define MAX_TERM_STRING 64 + +#define CENTERED (1<<0) +#define LEFT (1<<1) +#define RIGHT (1<<2) /* display specific variables */ typedef struct s_display { int max_x; int max_y; - int x; - int y; + unsigned char *screen; } t_display; /* function prototypes */ int display_init(t_display *display); -int display_refresh(t_display *display); +int display_draw(t_display *display); +int display_draw_until_line(t_display *display,int line); +int display_set_cursor(t_display *display,int x,int y); +int display_clear_screen(t_display *display); int display_shutdown(t_display *display); +int display_line(t_display *display,int X,int Y,int X_,int Y_,char sym); +int display_string(t_display *display,int x,int y,char *string,int len); +int display_string_vert(t_display *display,int x,int y,char *string,int len);