|
Simple Operating System
|
Draw pixels in graphics mode. More...
#include "types.h"

Go to the source code of this file.
Classes | |
| struct | Position |
| Position on screen. More... | |
Typedefs | |
| typedef struct Position | Position |
| Position on screen. | |
Functions | |
| void | writePixel (Position pos, Color color) |
| Draw single pixel. More... | |
| void | draw (Position begin, Color *data, size_t width, size_t height) |
| Draw picture from raw pixel table. More... | |
Variables | |
| const size_t | SIZE_X = 640 |
| const size_t | SIZE_Y = 350 |
Draw pixels in graphics mode.
Something like https://www.programmingsimplified.com/c/graphics.h
add .bmp pl.wikipedia.org/wiki/Windows_Bitmap
add get window height and window length
Definition in file graphics.h.
| void draw | ( | Position | begin, |
| Color * | data, | ||
| size_t | width, | ||
| size_t | height | ||
| ) |
Draw picture from raw pixel table.
| begin | left right corner to begin drawing |
| data | array of pixels |
| width | |
| height |
Definition at line 43 of file graphics.h.
| void writePixel | ( | Position | pos, |
| Color | color | ||
| ) |