gameoflife-appleii/gfx.h
2016-10-01 00:44:59 +02:00

46 lines
979 B
C
Executable File

#ifndef __GFX_H__
#define __GFX_H__
// Restores text mode
void __fastcall__ mode_text( void );
// Switches to the desired res and mode.
// Always displays page 1
void __fastcall__ gfx_init( uint8_t resolution, uint8_t mode );
// Fills the screen with the given color
void __fastcall__ gfx_fill( uint8_t color );
// Draws a pixel at the given coordinates
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
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