21 const size_t SIZE_X = 640;
22 const size_t SIZE_Y = 350;
32 ::
"a"(0x0c00|color),
"b"(0),
"c"(pos.x),
"d"(pos.y));
43 void draw(
Position begin, Color *data,
size_t width,
size_t height) {
46 for(
size_t y = 0; y < height; y++) {
47 for(
size_t x = 0; x < width; x++) {
void writePixel(Position pos, Color color)
Draw single pixel.
struct Position Position
Position on screen.
void draw(Position begin, Color *data, size_t width, size_t height)
Draw picture from raw pixel table.
useful macros, definitions, enums etc.