From 718d9ea67196aa7e56c84261e0a8c134492023ad Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 24 Jan 2017 01:23:45 -0600 Subject: changed a couple things about how graphics stuff is abstracted and separated into different files. --- src/graphics_backend.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/graphics_backend.h (limited to 'src/graphics_backend.h') diff --git a/src/graphics_backend.h b/src/graphics_backend.h new file mode 100644 index 0000000..1f88ec6 --- /dev/null +++ b/src/graphics_backend.h @@ -0,0 +1,24 @@ +#ifndef _HACKVR_GRAPHICS_BACKEND_H_ +#define _HACKVR_GRAPHICS_BACKEND_H_ + +//these are just the functions that all backends need to implement to work with hackvr. +//the list of functions are subject to change. + +void draw_cs_line(cs_t p1,cs_t p2); +void draw_cs_text(cs_t p,char *text); +void draw_cs_shape(cs_s_t s); +void draw_cs_filled_shape(cs_s_t s); +void set_aspect_ratio(); +void set_color_based_on_distance(real d); +void flipscreen(); +void set_color(); +void set_color_red(); +void set_color_blue(); +void clear_backbuffer(); +int keypress_handler(int sym); +int graphics_init(); +int graphics_event_handler(); +void set_clipping_rectangle(int x,int y,int width,int height); +void red_and_blue_magic(); + +#endif -- cgit v1.2.3