Tramway SDK
|
Namespaces | |
namespace | Input |
Input backend API. | |
namespace | Window |
Windowing backend API. | |
Functions | |
void | SaveImageToDisk (const char *name, int w, int h, const char *image) |
Saves image to disk. More... | |
void | TryDebugging () |
Attempts to break into debugger. More... | |
void | ShowErrorDialog (const char *message, const char *title) |
void | SetScale (int s) |
Variables | |
int | current_monitor = 0 |
bool | is_fullscreen = false |
bool | vsync = true |
void tram::Platform::SaveImageToDisk | ( | const char * | name, |
int | w, | ||
int | h, | ||
const char * | image | ||
) |
Saves image to disk.
Image needs to be in a RGB 8-bit format.
void tram::Platform::SetScale | ( | int | s | ) |
void tram::Platform::ShowErrorDialog | ( | const char * | message, |
const char * | title | ||
) |
void tram::Platform::TryDebugging | ( | ) |
Attempts to break into debugger.
This function will try to determine if the program is being debugged, and if it is, then it will break into debugger. If it isn't being debugged, it will do nothing.
int tram::Platform::current_monitor = 0 |
bool tram::Platform::is_fullscreen = false |
bool tram::Platform::vsync = true |