42 lines
1.0 KiB
Plaintext
42 lines
1.0 KiB
Plaintext
typedef void string;
|
|
string format(const string&in fmt, const ?&in ...);
|
|
|
|
// Logging functions
|
|
void Print(const string&in);
|
|
void Log(int level, const string&in);
|
|
int LOG_TRACE;
|
|
int LOG_DEBUG;
|
|
int LOG_INFO;
|
|
int LOG_WARNING;
|
|
int LOG_ERROR;
|
|
int LOG_FATAL;
|
|
|
|
// Toast notification functions
|
|
namespace Toast {
|
|
void Info(const string&in msg);
|
|
void Warning(const string&in);
|
|
void Error(const string&in);
|
|
void Success(const string&in);
|
|
}
|
|
|
|
// Drawing functions
|
|
namespace Draw {
|
|
void Pixel(int x, int y, int color);
|
|
void Line(int startX, int startY, int endX, int endY, int color);
|
|
void Circle(int centerX, int centerY, float radius, int color);
|
|
void Text(const string&in text, int x, int y, int fontSize, int color);
|
|
void Rectangle(int x, int y, int width, int height, int color);
|
|
void FPS(int x, int y);
|
|
}
|
|
|
|
namespace Image {
|
|
class Image {
|
|
int width;
|
|
int height;
|
|
int mipmaps;
|
|
int format;
|
|
};
|
|
Image@ Load(const string&in path);
|
|
void Unload(const Image@&in image);
|
|
}
|