The Irreden Engine is an isometric "pixelatable" voxel content and game engine.
Created by and maintained by jakildev.
- Windows: CMake, OpenGL backend by default.
- macOS: CMake, Metal backend by default.
- CMake 3.28+
- A C++23 compiler toolchain
- Git
- Platform runtime prerequisites:
- Windows: OpenGL-capable hardware/toolchain
- macOS: Xcode Command Line Tools, plus full Xcode if you want Metal shader precompilation via
xcrun metal
- Clone the repository.
- Configure CMake.
- Build all targets.
- Launch a demo creation.
- Bootstrap dependencies:
./scripts/bootstrap_macos.sh
- Configure:
cmake --preset macos-debug
- Build:
cmake --build --preset macos-build-all
- Optional quality/test targets:
cmake --build --preset macos-format-check
cmake --build --preset macos-lint
cmake --build --preset macos-tests
ctest --preset macos-default-tests
Notes:
- The bootstrap script installs
ffmpeg,pkg-config,llvm, andqt@5so video recording and the EasyProfiler GUI can work locally. qt@5andllvmare Homebrew keg-only packages. The bootstrap script prints thePATH,PKG_CONFIG_PATH, andCMAKE_PREFIX_PATHexports needed for shell profiles and IDE environments.- Audio capture on macOS may require microphone permission for the host app (for example, Terminal or the IDE).
| Platform | Account | Usage |
|---|---|---|
| TikTok | @jakildev | Creations that I make. |
| @jakildev | More of my life. | |
| Youtube | @jakildev | Future long-form informative videos. |
- Modules are built individually as static libraries and linked to dependant modules and third-party libraries.
- Modules are are included by other modules via a single ir_<module_name>.hpp file.
- Check out each module link for a complete list of features and developement roadmap. (TODO)
| Module | Features |
|---|---|
| IRAudio | - Probe and connect to audio devices including audio interfaces. - Interface midi input channels and messages to be used as controllers for custom commands. - Realtime audio streams from audio devices (WIP). |
| IRCommand | - Define commands with lambdas that are triggered by a variety of input sources. |
| IRECS | - Cache-efficient relational archetype-based entity-component-system. - Define systems with lambdas that operate on entities containing specific components/relations. - Create entities in batches with lambdas defining variable initialization of components. |
| IRInput | - OpenGL window and context creation with GLFW. - Keyboard, mouse, and gamepad input events synchronized with game loop. - Uncapped FPS mouse position for smooth rendering. |
| IRMath | - Isometric calculations for converting 3D positions to 2D isometric and 2D screen coordinates. - GLM wrappers for vector math, RBG to HSV color conversion, and more. - Easing functions for simple animations. |
| IRProfile | - Separated logging sinks for the engine and user creations. |
| IRRender | - Meshless voxel rendering using compute shaders to write 3D voxels to 2D isometric canvases. - Fixed orthographic isometric view for rendering voxels removing the need for raymarching. - Interpolated pixel scrolling for a smooth pixel-art camera. - Multiple voxel canvases allows for select game entities to be unlocked from voxel grid. |
| IRScript | - Provides a wrapper for common Lua C API functionality (WIP). - Runtime configuration for engine such as window size, resolution, etc. (WIP). - User can define entire implementation using just Lua files (Future). |
| IRTime | - Fixed FPS events for consistent number of update ticks per second. - Uncapped FPS events with delta time for faster rendering updates. - Constructable event pipelines using custom and built-in systems. |
| IRVideo | - MP4/H264 framebuffer capture is enabled via FFmpeg. - Runtime toggle recording support (F9). |
Prefer integrating a private game through the conventional creations/game/ path. When creations/game/CMakeLists.txt exists, the root build auto-discovers it so the game shows up beside the engine demos in the same CMake graph.
- Create your game under
creations/game/. - Add a demo-style
CMakeLists.txtthat links againstIrredenEngine:
add_library(IRGameLib STATIC
src/example.cpp
)
target_link_libraries(IRGameLib PUBLIC IrredenEngine)
add_executable(IRGame main.cpp)
target_link_libraries(IRGame PUBLIC IRGameLib)- Configure from the engine root:
cmake --preset windows-debugor:
cmake --preset macos-debug- Build the game target from the engine root:
cmake --build build --target IRGame- If your game defines helper targets such as
IRGameRun, launch them from the same root build:
cmake --build build --target IRGameRunFor more advanced setups, the root CMakeLists.txt still supports IRREDEN_USER_PROJECTS, but creations/game/ is the default path for a private integrated game project.
| Name | Owning Module | Description/Usage | Integration Details |
|---|---|---|---|
| RtAudio | IRAudio | Realtime audio input/output. | Details |
| RtMidi | IRAudio | Realtime MIDI input/output. | Details |
| GLFW | IRInput | OpenGL window creation, inputs, and events. | Details |
| GLM | IRMath | Mathematics operations for graphics programming. | Details |
| EasyProfiler | IRProfile | CPU profiler and GUI. | Details |
| SpdLogger | IRProfile | Configurable and fast logging. | Details |
| Fmt | IRProfile | Formatting library used by SpdLog. | Details |
| Glad | IRRender | OpenGL loading library. | Details |
| OpenGL/glsl | IRRender | Graphics API/shading language. | Details |
| StbImage | IRRender | Multi-format image loading. | Details |
| MeshOptimizer | IRRender | Mesh storage and size optimization. | Details |
| Assimp | IRRender | Multi-format 3D file loader. | Details |
| enkiTS | IRJob | Lock-free work-stealing task scheduler for parallel job dispatch. | Details |
| Lua | IRScript | Scripting language for C/C++. | Details |
| FFMpeg | IRVideo | Compression and encoding algorithms. | Details |
I AM CURRENTLY VERY INTERESTED IN FEEDBACK REGARDING THE DESIGN OF THIS ENGINE.
- If you have a suggestion, create a new discussion post or email me at jakildev@gmail.com.
The engine is developed using a parallel-agent workflow on top of normal IDE-driven coding. See docs/fleet/README.md for the human-facing tour: what each skill does, what each role does, and how the Cursor (human-in-the-loop) and fleet (autonomous) workflows fit together. Setup details live in docs/AGENT_FLEET_SETUP.md.
- Submit an issue on github.
- Add, expand, or modify the engine's prefabs (built-in components, entities, systems, and commands).
- Other work on the engine itself.
- Publish an open-source project using the Irreden Engine.
- Prefer early exit over chained or nested branching statements.
- Prefer unique pointers over shared pointers or C-style memory allocation.
- Use raw pointers when there is no transfer of ownership of memory.
- Private class member variables are prefixed with "m_".
- Public class member variables are postfixed with "_".
- User-defined types used as components are prefixed with "C_".
- Compute shader files are prefixed with "c_".
- Vertex shader files are prefixed with "v_".
- Fragment shader files are prefixed with "f_".
- Geometry shader files are prefixed with "g_".
The repository includes quality targets for formatting and linting C/C++ code.
- Configure with CMake:
cmake --preset macos-debug
- Check formatting:
cmake --build --preset macos-format-check
- Auto-format files:
cmake --build --preset macos-format
- Run lint checks (includes naming conventions such as
m_private members and_public members):
cmake --build --preset macos-lint
Requirements:
clang-formatclang-tidy
Use presets for consistent local and CI commands:
- Configure:
cmake --preset macos-debug
- Build:
cmake --build --preset macos-build-all
- Run formatting and lint checks:
cmake --build --preset macos-format-check
cmake --build --preset macos-lint
- Build and run tests:
cmake --build --preset macos-tests
ctest --preset macos-default-tests
