15 unsigned int image_width = 0x20;
16 unsigned int image_height = 0x20;
17 Color image_bmp[1024];
21 file =
open(name,
"");
23 puts(
"ERROR file cannot be opened\n");
29 if(
read(image_bmp, 1024, file) != 1024) {
34 draw(pos, image_bmp, image_width, image_height);
Console input output control.
void setVideoMode(Mode mode)
Set the video mode of screen.
FILE * open(int filename, int mode)
Open file.
int read(int buf, size_t size, FILE *stream)
Read from file.
Draw pixels in graphics mode.
void draw(Position begin, Color *data, size_t width, size_t height)
Draw picture from raw pixel table.
Standard input output library.
Key getc(void)
Wait for key in buffer, get it and clear buffer.
void puts(const int string)
Put string.
#define NULL
pointer to NULL
#define __start
Must be before main function of program to put this function as first in binary file.