TRS_24
An OpenGL-Powered Game Engine in Rust (OpenGL 2.0+)
Features
- Multidimential: Supports both 3D and 2D rendering.
- Performance: Engineered for optimal performance.
- Cross-Platform: Supports Windows, MacOS, Linux, and Android builds.
- OpenGL 2.0 API: Opens door for diverse GPU/iGPU compatibility.
- Bundler (WIP): Built-in bundling system for Windows, MacOS, Linux, and Android.
Getting Started
Fundamentally, using two files is the ideal approach for using the engine. Primary file lib.rs solely used for running the window on Android and building a shared object (*.so).
Secondary file main.rs solely used for testing purposes on the host machine, and building for **Non-Android platforms. Both of these files need to be in the src directory.
For both of these files to co-exist, the following needs to be in Cargo.toml:
[]
# Causes the production of a dynamic system library
= ["cdylib"]
[[]]
= "test"
= "src/main.rs"
Both files will have their own respectable structure:
- Structure for
lib.rs:
[!NOTE] Notice the necessity of
#![cfg(target_os = "android")]at the first line, and the#[no_mangle]attribute before theandroid_mainfunction. They NEED to exist, otherwise you'll run to errors and crashes for compliation and building, respectively.
use *;
- Structure for
main.rs:
use *;
ℹ️ To try and view a fully complete example, clone the repository and head to the example directory.
Build & Bundle
Full instructions for Android and Non-Android target platforms are within the wiki page Build & Bundle.