gameoflife-appleii/gfx.h

46 lines
979 B
C
Raw Normal View History

2016-09-29 21:42:40 +00:00
#ifndef __GFX_H__
#define __GFX_H__
// Restores text mode
2016-09-29 21:42:40 +00:00
void __fastcall__ mode_text( void );
// 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 );
// Fills the screen with the given color
2016-09-29 21:42:40 +00:00
void __fastcall__ gfx_fill( uint8_t color );
// 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 );
// 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