Tramway SDK
Namespaces | Functions | Variables
tram::Platform Namespace Reference

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
 

Function Documentation

◆ SaveImageToDisk()

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.

◆ SetScale()

void tram::Platform::SetScale ( int  s)

◆ ShowErrorDialog()

void tram::Platform::ShowErrorDialog ( const char *  message,
const char *  title 
)

◆ TryDebugging()

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.

Variable Documentation

◆ current_monitor

int tram::Platform::current_monitor = 0

◆ is_fullscreen

bool tram::Platform::is_fullscreen = false

◆ vsync

bool tram::Platform::vsync = true