2016-10-12 20:03:46 +01:00
|
|
|
/**
|
2016-09-22 19:30:56 +01:00
|
|
|
* Copyright (c) 2016 rxi
|
2014-06-13 21:01:19 +01:00
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or modify it
|
|
|
|
|
* under the terms of the MIT license. See LICENSE for details.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef VGA_H
|
|
|
|
|
#define VGA_H
|
|
|
|
|
|
|
|
|
|
#define VGA_WIDTH 320
|
|
|
|
|
#define VGA_HEIGHT 200
|
|
|
|
|
|
|
|
|
|
typedef unsigned char pixel_t;
|
|
|
|
|
|
|
|
|
|
void vga_init(void);
|
|
|
|
|
void vga_deinit(void);
|
2016-10-12 20:03:46 +01:00
|
|
|
void vga_setPalette(int idx, int r, int g, int b);
|
2014-06-13 21:01:19 +01:00
|
|
|
void vga_update(pixel_t *buffer);
|
|
|
|
|
|
|
|
|
|
#endif
|