Latest version:
Tramway SDK 0.0.9
Github
Quick links
Home
Get Started

Platform

This system contains the platform compatibility layer. Basically it provides a single API to perform various tasks, which are platform-specific.

For example, the creation of a window and the capture of keyboard keypress events is specific to the operating system. Windows uses the Win32 API and Linux uses the X Window System API.

To make porting easier, the framework does not use these APIs directly, instead using either the GLFW or the SDL libraries as a backend. It is also possible to create your own backend.

Creating your own backend is useful if you want to embed the framework inside of another application. For example, the level editor is a wxWidgets application that embeds the rendering system of the framework.