GlyEngine 0.0.17
Create games and apps with lua
Loading...
Searching...
No Matches
Manual

port from scratch

support the engine on some custom platform building from scratch

Warning
This is an advanced API!
only for advanced programmers, You might be lost if you are a beginner.

You can easily port the Gly Engine to any platform by following a few straight forward steps. The main requirement is to create interfaces that connect with the native graphics libraries and hardware specific to your platform. Here’s how to get started:

By following these steps, you can effectively port the Gly Engine to any platform of your choice.

Note
the functions are represented in C, but just so you understand the typing, in fact you have to manipulate the Lua VM stack in most cases.
C API implementation

Using the Lua C API, you must expose these functions to your Lua VM, so that the engine can communicate with the low-level resources of the system.

Examples