Skip to content

About

The Irreden Engine

Resources

Stars

10 stars

Watchers

2 watching

Forks

Latest commit

 

History

3,719 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Irreden Engine

Banner image

About

The Irreden Engine is an isometric "pixelatable" voxel content and game engine.

Created by and maintained by jakildev.

Build

  • Windows: CMake, OpenGL backend by default.
  • macOS: CMake, Metal backend by default.

Prerequisites

  • 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

Instructions

  • Clone the repository.
  • Configure CMake.
  • Build all targets.
  • Launch a demo creation.

macOS quick start

  1. Bootstrap dependencies:
./scripts/bootstrap_macos.sh
  1. Configure:
cmake --preset macos-debug
  1. Build:
cmake --build --preset macos-build-all
  1. 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, and qt@5 so video recording and the EasyProfiler GUI can work locally.
  • qt@5 and llvm are Homebrew keg-only packages. The bootstrap script prints the PATH, PKG_CONFIG_PATH, and CMAKE_PREFIX_PATH exports 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).

Content and Socials

Platform Account Usage
TikTok @jakildev Creations that I make.
Instagram @jakildev More of my life.
Youtube @jakildev Future long-form informative videos.

Modules and Key Features

  • 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).

Usage

Adding Your Own Project

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.

  1. Create your game under creations/game/.
  2. Add a demo-style CMakeLists.txt that links against IrredenEngine:
add_library(IRGameLib STATIC
    src/example.cpp
)
target_link_libraries(IRGameLib PUBLIC IrredenEngine)

add_executable(IRGame main.cpp)
target_link_libraries(IRGame PUBLIC IRGameLib)
  1. Configure from the engine root:
cmake --preset windows-debug

or:

cmake --preset macos-debug
  1. Build the game target from the engine root:
cmake --build build --target IRGame
  1. If your game defines helper targets such as IRGameRun, launch them from the same root build:
cmake --build build --target IRGameRun

For 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.

Dependencies

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

Contributing

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.

Development workflow

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.

Ways to contribute

  1. Submit an issue on github.
  2. Add, expand, or modify the engine's prefabs (built-in components, entities, systems, and commands).
  3. Other work on the engine itself.
  4. Publish an open-source project using the Irreden Engine.

Style Guidelines

Logical

  1. Prefer early exit over chained or nested branching statements.
  2. Prefer unique pointers over shared pointers or C-style memory allocation.
  3. Use raw pointers when there is no transfer of ownership of memory.

Non-logical

  1. Private class member variables are prefixed with "m_".
  2. Public class member variables are postfixed with "_".
  3. User-defined types used as components are prefixed with "C_".
  4. Compute shader files are prefixed with "c_".
  5. Vertex shader files are prefixed with "v_".
  6. Fragment shader files are prefixed with "f_".
  7. Geometry shader files are prefixed with "g_".

Development quality checks

The repository includes quality targets for formatting and linting C/C++ code.

  1. Configure with CMake:
cmake --preset macos-debug
  1. Check formatting:
cmake --build --preset macos-format-check
  1. Auto-format files:
cmake --build --preset macos-format
  1. Run lint checks (includes naming conventions such as m_ private members and _ public members):
cmake --build --preset macos-lint

Requirements:

  • clang-format
  • clang-tidy

CMake presets

Use presets for consistent local and CI commands:

  1. Configure:
cmake --preset macos-debug
  1. Build:
cmake --build --preset macos-build-all
  1. Run formatting and lint checks:
cmake --build --preset macos-format-check
cmake --build --preset macos-lint
  1. Build and run tests:
cmake --build --preset macos-tests
ctest --preset macos-default-tests

About

The Irreden Engine

Resources

Stars

10 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages