mirror of
https://github.com/aap/librw.git
synced 2025-01-23 17:22:23 +00:00
26 lines
669 B
C
26 lines
669 B
C
|
namespace rw {
|
||
|
|
||
|
struct Charset
|
||
|
{
|
||
|
struct Desc {
|
||
|
int32 count; // num of chars
|
||
|
int32 tileWidth, tileHeight; // chars in raster
|
||
|
int32 width, height; // of char
|
||
|
int32 width_internal, height_internal; // + border
|
||
|
} desc;
|
||
|
Raster *raster;
|
||
|
|
||
|
static bool32 open(void);
|
||
|
static void close(void);
|
||
|
static Charset *create(RGBA *foreground, RGBA *background);
|
||
|
void destroy(void);
|
||
|
Charset *setColors(RGBA *foreground, RGBA *background);
|
||
|
void print(const char *str, int32 x, int32 y, bool32 hideSpaces);
|
||
|
void printBuffered(const char *str, int32 x, int32 y, bool32 hideSpaces);
|
||
|
static void flushBuffer(void);
|
||
|
private:
|
||
|
void printChar(uint32 c, int32 x, int32 y);
|
||
|
};
|
||
|
|
||
|
}
|