Graphics Functions

gfx_init( unsigned int start_vram_addr );

Initialize screen to point to sequential graphics tiles, located starting at address start_vram_addr in VRAM.


gfx_clear( unsigned int start_vram_addr );

Clear graphical screen. Starting at address start_vram_addr in VRAM, this function sets sequential tiles in VRAM to all zeroes, with a size based on the virtual map.


gfx_plot( unsigned int x, unsigned int y, char color );

Set a pixel at (x,y) to color listed. color should be a value between 0 and 15.


gfx_line( unsigned int x1, unsigned int y1, unsigned int x2,
unsigned int y2, unsigned char color );

Draw a line from (x1, y1) to (x2, y2) in color listed. color should be a value between 0 and 15.

Last updated