2016-09-29 21:42:40 +00:00
|
|
|
#ifndef __GFX_H__
|
|
|
|
#define __GFX_H__
|
|
|
|
|
2016-09-30 22:44:59 +00:00
|
|
|
// Restores text mode
|
2016-09-29 21:42:40 +00:00
|
|
|
void __fastcall__ mode_text( void );
|
2016-09-30 22:44:59 +00:00
|
|
|
// Switches to the desired res and mode.
|
|
|
|
// Always displays page 1
|
2016-09-29 21:42:40 +00:00
|
|
|
void __fastcall__ gfx_init( uint8_t resolution, uint8_t mode );
|
2016-09-30 22:44:59 +00:00
|
|
|
// Fills the screen with the given color
|
2016-09-29 21:42:40 +00:00
|
|
|
void __fastcall__ gfx_fill( uint8_t color );
|
2016-09-30 22:44:59 +00:00
|
|
|
// Draws a pixel at the given coordinates
|
2016-09-29 21:42:40 +00:00
|
|
|
void __fastcall__ gfx_pixel( uint8_t color, uint8_t coord_x, uint8_t coord_y );
|
2016-09-30 22:44:59 +00:00
|
|
|
// Returns the pixel's color
|
|
|
|
uint8_t __fastcall__ gfx_get_pixel( uint8_t coord_x, uint8_t coord_y );
|
|
|
|
// Updates the screen by displaying the Future Page which becomes Current
|
2016-09-29 21:42:40 +00:00
|
|
|
void __fastcall__ gfx_refresh( void );
|
|
|
|
|
|
|
|
enum eMode {
|
|
|
|
FULLSCREEN = 0,
|
|
|
|
SPLIT = 1
|
|
|
|
};
|
|
|
|
enum eResolution {
|
|
|
|
LOWRES = 0,
|
|
|
|
HIRES = 1
|
|
|
|
};
|
|
|
|
enum eColor {
|
|
|
|
BLACK = 0,
|
|
|
|
MAGENTA,
|
|
|
|
DARKBLUE,
|
|
|
|
PURPLE,
|
|
|
|
DARKGREEN,
|
|
|
|
GREY,
|
|
|
|
MEDIUMBLUE,
|
|
|
|
LIGHTBLUE,
|
|
|
|
BROWN,
|
|
|
|
ORANGE,
|
|
|
|
GREY2,
|
|
|
|
PINK,
|
|
|
|
GREEN,
|
|
|
|
YELLOW,
|
|
|
|
AQUA,
|
|
|
|
WHITE
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|