vga.h 358 B

1234567891011121314
  1. /* VGA graphics: mode 13h (320x200 256-color) and text mode 03h.
  2. Works on real VGA hardware and QEMU alike. */
  3. #ifndef VGA_H
  4. #define VGA_H
  5. #define VGA_GFX_WIDTH 320
  6. #define VGA_GFX_HEIGHT 200
  7. void vga_set_mode_13(void);
  8. void vga_set_mode_text(void);
  9. void vga_put_pixel(int x, int y, unsigned char color);
  10. void vga_clear(unsigned char color);
  11. #endif