mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-16 11:52:34 +03:00
7b22babed6
- fix load / save highscore - added message about game over - beautify text draw TODO: - optimize tile drawing: maybe separate canvas for every tile git-svn-id: svn://kolibrios.org@5238 a494cfbc-eb01-0410-851d-a64ba20cac60
33 lines
683 B
C
33 lines
683 B
C
#ifndef RECT_H
|
|
#define RECT_H
|
|
|
|
#include "defines.h"
|
|
|
|
typedef struct {
|
|
short x;
|
|
short y;
|
|
short width;
|
|
short height;
|
|
} rect;
|
|
|
|
typedef struct {
|
|
short x;
|
|
short y;
|
|
} point;
|
|
|
|
// Draw rect filled with color
|
|
void rect_draw(rect* r, __u32 color);
|
|
|
|
// Make transformation step
|
|
// Rect 'from' will be changed
|
|
// Return 'true' if transformation ends ('from' == 'to')
|
|
__u8 rect_transform(rect* from, rect* to, __u16 step);
|
|
|
|
// Draw text at the rect center
|
|
void rect_draw_text(rect* r, char* txt, __u32 len, __u32 color, __u32 frame_color);
|
|
|
|
// Draw value as text at the rect center
|
|
void rect_draw_value(rect* r, __u32 v, __u32 color, __u32 frame_color);
|
|
|
|
#endif // RECT_H
|