Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Honey Editor

Honey Editor Screenshot

A modern C++20 game engine & editor focused on performance, flexibility, and real-time workflows.

Build Status License C++20 Platforms


Honey Editor is a high-performance, modern game engine and editor written in C++20, designed for:

  • real-time rendering experimentation
  • building tools and editor workflows
  • learning and pushing modern graphics APIs (OpenGL + Vulkan)

It combines a custom rendering engine, ECS architecture, and a fully interactive editor into a cohesive development environment.


Highlights

  • Batch-rendered 2D engine (quads, circles, lines, textures)
  • EnTT-powered ECS for cache-friendly performance
  • Full editor UI with scene hierarchy & inspector
  • ImGuizmo integration for professional transform controls
  • Hot-reload shaders & fast iteration workflow
  • Scene serialization (YAML)
  • Audio (SoLoud) + Physics (Box2D)

Project Status

Feature Status
Vulkan Backend ✅ Stable
OpenGL Renderer ⚠️ Unstable
Editor Tools ✅ Functional
ECS / Scene System ✅ Stable
Linux Support ✅ Primary
Windows Support ✅ Working

Features

High-Performance Rendering

  • Multi-Backend Architecture: Seamless* support for Vulkan and OpenGL 4.5 (WIP) backends.
  • Batch Renderer 2D: Highly optimized batch rendering for quads, circles, and lines with support for textures and sub-textures.
  • High Performance 3D: Features both Deferred and Path Traced rendering, with the path tracer using a wavefront architecture.
  • Advanced Camera Systems: Orthographic and Perspective cameras with a dedicated Editor Camera featuring smooth interpolation and orbit/pan controls.
  • Shader Management: Sophisticated shader cache and hot-reloading capabilities.
  • Framebuffer System: Flexible multi-attachment framebuffers for post-processing and mouse picking.

Entity Component System (ECS)

  • Driven by EnTT: Leveraging the industry-standard EnTT library for maximum cache-friendly performance.
  • Flexible Components: Built-in support for Transforms, Sprite Renderers, Circle/Line Renderers, Cameras, and Physics.
  • Native Scripting: Bind C++ classes directly to entities for high-performance logic.
  • Scene Serialization: Save and load entire worlds using a robust YAML-based serialization system.

Physics & Audio

  • 2D Physics: Integrated Box2D engine with support for rigid bodies, various body types (Static, Dynamic, Kinematic), and multiple collider shapes (Box, Circle).
  • Physics Debug Draw: Real-time visualization of physics colliders and contact points.
  • Audio System: Integrated audio support via SoLoud for spatial and non-spatial sound.

Editor Suite

  • Visual Scene Hierarchy: Intuitive tree-based entity management with drag-and-drop parenting.
  • Property Inspector: Real-time modification of component data with support for math expressions and color pickers.
  • Content Browser: Filesystem-integrated asset management with thumbnail support.
  • ImGuizmo Integration: Professional-grade viewport gizmos for intuitive translation, rotation, and scaling of entities.
  • Profiling & Debugging: Integrated instrumentation for performance bottleneck analysis and log visualization.

Tech Stack

  • Core: C++20, CMake 3.16+
  • Graphics: OpenGL 4.5 / Vulkan, GLFW 3.3, GLM
  • UI: ImGui, ImGuizmo
  • Systems: EnTT (ECS), Box2D (Physics), SoLoud (Audio)
  • Utilities: spdlog (Logging), yaml-cpp (Serialization), stb_image (Textures)

Requirements

Software

  • C++20 Compiler: MSVC 2019+, GCC 11+, or Clang 12+.
  • CMake: version 3.16 or higher.
  • Vulkan SDK: Required if building with Vulkan support.

Platform Dependencies

  • Linux: Primary supported platform. Requires development headers for X11/Wayland (e.g., libx11-dev, libxcursor-dev, libxinerama-dev, libxrandr-dev, libxi-dev). ccache is highly recommended.
  • Windows: Requires MSVC 2019+ / Visual Studio 2022, standard Windows SDKs, and the Vulkan SDK if Vulkan support is enabled.
  • macOS: Experimental / WIP. Support is currently lacking and the project likely will not build. Requires Cocoa and Metal frameworks.

Setup & Build

1. Clone the repository

Ensure you clone with submodules if any are used (though most dependencies are vendored directly in Honey/vendor and Honey/engine/vendor):

git clone https://github.com/treybertram06/Honey_Editor.git --recurse-submodules
cd Honey_Editor

2. Configure the Project

Honey uses a standard out-of-source CMake workflow.

Warning

Windows and macOS support are still limited. Linux is the primary development environment.

Linux / Single-config generators

Use CMAKE_BUILD_TYPE with Ninja or Makefiles:

cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug

Windows / Visual Studio generator

When generating a Visual Studio solution, do not use CMAKE_BUILD_TYPE. Visual Studio is a multi-config generator, so the configuration is selected at build time instead.

cmake -S . -B build -G "Visual Studio 17 2022"

This will generate a Visual Studio solution in the build directory.

3. Build

Linux

cmake --build build --target Honey_Editor -j$(nproc)

Windows (Visual Studio generator)

Build the Debug configuration explicitly:

cmake --build build --config Debug --target Honey_Editor

If opening the solution in Visual Studio:

  1. Open build/Honey_Editor.sln
  2. Set configuration to Debug or Release
  3. Build the Honey_Editor project

Running the Editor

The editor can be run from any working directory. It opens the project passed with --project <folder>, else the last-opened project, else a welcome window where you can create or open one.

Linux

./build/Honey_Editor

Windows (Visual Studio generator)

.\build\Debug\Honey_Editor.exe

Windows (Ninja)

If configured using Ninja instead of Visual Studio:

.\build\Honey_Editor.exe

Build Targets

  • Honey_Editor – Primary desktop editor application.
  • application – Minimal sandbox environment for testing engine features without editor overhead.

Notes

Vulkan on Windows

If building Vulkan-enabled code on Windows, install the Vulkan SDK and ensure the VULKAN_SDK environment variable is available in the shell or IDE session used for CMake.

Generator Differences

  • Ninja / Unix Makefiles

    • Single-config
    • Uses CMAKE_BUILD_TYPE
  • Visual Studio

    • Multi-config
    • Uses --config Debug or --config Release

Recommended Windows Commands

Generate Visual Studio solution:

cmake -S . -B build -G "Visual Studio 17 2022"

Build Debug:

cmake --build build --config Debug --target Honey_Editor

Build Release:

cmake --build build --config Release --target Honey_Editor

Running the Editor

Once the build is complete, launch the editor from any directory (optionally with --project <folder>):

# Linux/macOS
./build/Honey_Editor

# Windows (if using MSVC generator)
./build/Debug/Honey_Editor.exe

Build Targets

  • Honey_Editor: The primary desktop application with full editor capabilities.
  • application: A minimal sandbox environment for testing engine features without the editor overhead.

Project Structure

  • Honey/: The core engine codebase.
    • engine/: Main framework including Renderer, ECS, and Platform abstraction.
    • vendor/: Core engine dependencies (Box2D, yaml-cpp, etc.).
  • src/: Source code for the Honey Editor application.
  • engine_content/: Engine content every game needs (shaders, frame graphs, default fonts/textures).
  • resources/: Editor-only resources (icons, default layouts).

Games are projects kept outside this repo: a portable folder with a <Name>.honeyproj file, Assets/ (scenes, prefabs, models, textures, audio) and Scripts/ (C# UserScripts.csproj). Create one with File → New Project in the editor; run one with Honey_Runtime --project <folder>.


README assisted by ChatGPT 🤖 (because writing docs is harder than writing engines)

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages