diff options
Diffstat (limited to 'src/drivers/video/vga.h')
-rw-r--r-- | src/drivers/video/vga.h | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/src/drivers/video/vga.h b/src/drivers/video/vga.h index fed47a1..6934856 100644 --- a/src/drivers/video/vga.h +++ b/src/drivers/video/vga.h @@ -53,28 +53,10 @@ void vga_print_info( void *obj ); bool vga_switch_mode( void *obj, const video_mode_t *mode ); -typedef struct { - int R; - int G; - int B; -} vga_color_t; - -extern const vga_color_t VGA_COLOR_BLACK; -extern const vga_color_t VGA_COLOR_BLUE; -extern const vga_color_t VGA_COLOR_GREEN; -extern const vga_color_t VGA_COLOR_CYAN; -extern const vga_color_t VGA_COLOR_RED; -extern const vga_color_t VGA_COLOR_MAGENTA; -extern const vga_color_t VGA_COLOR_BROWN; -extern const vga_color_t VGA_COLOR_LIGHT_GREY; -extern const vga_color_t VGA_COLOR_WHITE; - -vga_color_t vga_make_RGB( int R, int G, int B ); - -void vga_set_pixel( vga_t *vga, const int x, const int y, const vga_color_t color ); -void vga_draw_rectangle( vga_t *vga, const int x, const int y, const int w, const int h, const vga_color_t color ); -void vga_clear_screen( vga_t *vga, const vga_color_t color ); -void vga_draw_char( vga_t *vga, const unsigned char c, const int x, const int y, const vga_color_t background, const vga_color_t foreground ); +void vga_set_pixel( vga_t *vga, const int x, const int y, const video_rgb_color_t color ); +void vga_draw_rectangle( vga_t *vga, const int x, const int y, const int w, const int h, const video_rgb_color_t color ); +void vga_clear_screen( vga_t *vga, const video_rgb_color_t color ); +void vga_draw_char( vga_t *vga, const unsigned char c, const int x, const int y, const video_rgb_color_t background, const video_rgb_color_t foreground ); void vga_wait_for_retrace( vga_t *vga ); void vga_use_z_buffer( vga_t *vga, bool use ); void vga_refresh( vga_t *vga ); |