void vga_run_test(void)
Run some VGA tests.
Definition: vga.c:644
void vga_get_cursor_position(unsigned int *x, unsigned int *y)
Returns cursor's position on the screen.
Definition: vga.c:869
void vga_clear_screen(void)
Clears the screen.
Definition: vga.c:889
void vga_draw_triangle(int x1, int y1, int x2, int y2, int x3, int y3, unsigned char color)
Draws a triangle.
Definition: vga.c:637
void vga_putc(int c)
Print the given character on the screen.
Definition: vga.c:837
void vga_puts(const char *str)
Prints the given string on the screen.
Definition: vga.c:855
void vga_finalize(void)
Finalizes the VGA.
Definition: vga.c:803
void vga_draw_circle(int xc, int yc, int r, unsigned char color)
Draws a circle provided the position of the center and the radius.
Definition: vga.c:612
void vga_draw_line(int x0, int y0, int x1, int y1, unsigned char color)
Draws a line from point 1 to point 2.
Definition: vga.c:576
void vga_initialize(void)
Initializes the VGA.
Definition: vga.c:756
void vga_set_color(unsigned int color)
Change the color.
Definition: vga.c:919
void vga_move_cursor(unsigned int x, unsigned int y)
Move the cursor at the position x, y on the screen.
Definition: vga.c:862
void vga_draw_pixel(int x, int y, unsigned char color)
Draws a pixel at the given position.
Definition: vga.c:535
void vga_update(void)
Updates the graphic elements.
Definition: vga.c:912
void vga_draw_char(int x, int y, unsigned char c, unsigned char color)
Draws a character at the given position.
Definition: vga.c:545
unsigned int vga_read_pixel(int x, int y)
Reads a pixel at the given position.
Definition: vga.c:540
void vga_draw_rectangle(int sx, int sy, int w, int h, unsigned char color)
Draws a rectangle provided the position of the starting corner and the ending corner.
Definition: vga.c:604
int vga_height(void)
Returns the height of the screen.
Definition: vga.c:527
int vga_width(void)
Returns the width of the screen.
Definition: vga.c:519
void vga_new_line(void)
Move to the following line (the effect of character).
Definition: vga.c:900
int vga_is_enabled(void)
Checks if the VGA is enabled.
Definition: vga.c:514
void vga_draw_string(int x, int y, const char *str, unsigned char color)
Draws a string at the given position.
Definition: vga.c:566
void vga_get_screen_size(unsigned int *width, unsigned int *height)
Returns screen size.
Definition: vga.c:879
unsigned char color
The current color.
Definition: video.c:73