Initial commit

This commit is contained in:
Shinovon 2026-04-22 07:30:27 +05:00
commit 77cdaaf97e
827 changed files with 418745 additions and 0 deletions

25
vendor/librw/src/rwcharset.h vendored Normal file
View file

@ -0,0 +1,25 @@
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(const RGBA *foreground, const RGBA *background);
void destroy(void);
Charset *setColors(const RGBA *foreground, const 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(int32 c, int32 x, int32 y);
};
}