kolibrios-gitea/programs/games/2048/paint.h
raandoom 3fdad8ab94 2048:
- fix flickering (canvas drawing added)
TODO:
 - optimize tile drawing: maybe separate canvas for every tile
 - game over screen
 - last game save / load
 - record save / load

git-svn-id: svn://kolibrios.org@5231 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-12-14 17:05:58 +00:00

18 lines
362 B
C

#ifndef PAINT_H
#define PAINT_H
#include "defines.h"
#include "rect.h"
void canvas_init(rect* r);
void canvas_delete();
void canvas_fill(__u32 color);
void canvas_draw_rect(rect* r, __u32 color);
void canvas_draw_text(rect* r, char* txt, __u32 len, __u32 color);
void canvas_draw_value(rect *r, __u32 v, __u32 color);
void canvas_paint();
#endif // PAINT_H