https://github.com/r3shape/r3ngin
Pure C Game Engine.
https://github.com/r3shape/r3ngin
Last synced: 10 months ago
JSON representation
Pure C Game Engine.
- Host: GitHub
- URL: https://github.com/r3shape/r3ngin
- Owner: r3shape
- License: mit
- Created: 2025-06-09T11:54:21.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-08-10T22:27:15.000Z (10 months ago)
- Last Synced: 2025-08-11T00:16:36.874Z (10 months ago)
- Language: C
- Homepage:
- Size: 213 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README



---
### Relevant Links
| [Discord](https://discord.gg/kreGBCVsQQ) | [Reddit](https://www.reddit.com/r/r3shape/) | [Discussions](https://github.com/r3shape/r3ngin/discussions) | [FAQ](https://github.com/r3shape/r3ngin/wiki/r3ngin-FAQ) |
## Building the Engine Source
> **NOTE**: If you're using the `r3make` CLI tool, ensure **Python** is installed. For more information, check out the [r3make Repository](https://github.com/r3shape/r3make).
r3ngin includes a **pre-configured `r3make` file** for easy setup and compilation. **[r3make](https://github.com/r3shape/r3make)** is the recommended tool for fast, simple, efficient builds.
---
### Option 1: Build with **r3make** (Recommended)
1. **Install r3make**:
Install via **PyPI**:
```bash
pip install r3make
```
2. **Clone the Repository**:
```bash
git clone https://github.com/r3shape/r3ngin
```
3. **Navigate to the `r3ngin` directory:
```bash
cd r3ngin
```
4. **Build the Engine**:
- Target: `r3ngin` builds the `r3n.core.dll` from `r3ngin/src/core`
```bash
r3make -nf -v
```
- Target: `Runtime` builds the `r3ngin.exe` from `r3ngin/src/r3n.runtime`
```bash
r3make -nf -v -t runtime
```
5. **Output**:
The compiled `r3n.core.dll`, along with `r3ngin.exe` runtime will be located in the `build` directory.
---
### Option 2: Manual Compilation
For those who wish to **wield the source** themselves:
1. **Clone the Repository**:
```bash
git clone https://github.com/r3shape/r3ngin
cd r3ngin
```
2. **Compile the Engine**:
Manually compile using **GCC**:
| Compile the core library
```bash
gcc -c r3ngin/src/r3n.core/*.c -Iinclude -o build/*.o
gcc -shared build/*.o -Lexternal/__data__/thirdparty -lgdi32 -lopengl32 -lr3kit -o build/r3n.core.dll
```
| Compile the runtime
```bash
gcc r3ngin/src/r3n.runtime/*.c -Iinclude -Lexternal/__data__/thirdparty -Lbuild -lr3n.core -lr3kit -o build/r3ngin.exe
```
## Building Projects with **r3ngin**
1. **Prepare Your Project**:
Set up your source files, including necessary paths.
2. **Compile with r3make or GCC**:
Example using **GCC**:
```bash
gcc my_project.c -r3ngin/r3ngin/include -Lr3ngin/build -L/r3ngin/external/__data__/thirdparty -lr3n.core -lr3kit -o my_project.exe
```
## r3ngin Contributors
## License
r3ngin is licensed under the **MIT License**.