zhenyan121 0f731530da refactor: logger (#35)
* refactor(log): convert Logger from namespace to class with static methods

- Replace the Logger namespace of free functions with a Logger class containing static methods (info, error, warn, debug).
- Simplify log calls by removing explicit source_location parameters; adopt `std::print` for output formatting.
- Undefine common macro names (DEBUG, INFO, ERROR, WARN) to avoid collisions.
- Update `renderer.cpp` to use `Logger::debug` instead of the old `Logger::log`.
- Add missing `#include <source_location>` in `audio_error.hpp`.
- Fix early return condition in `WorldScene::set_pause`.

* refactor(camera): remove reset_camera method and first-mouse flag

* refactor: replace --no-debug with logging options, add assertions, fix typo

- Removed `--no-debug` CLI flag and added `--logs-path`, `--log-level`, `--enable-filelog`, `--enable-consolelog`.
- Added file logging support with daily rotation, log level threshold, and console/file output control.
- Added `m_init` check in `Config::get`/`set` to prevent use before initialization.
- Fixed typo in `DebugCollector::destroy` (`distory` → `destory`).
- Removed `debug_on` parameter from `Renderer::init`; OpenGL debug output is now unconditionally enabled in debug builds.

* feat(debug): enable GL debug context flag in debug builds
2026-07-18 10:40:34 +08:00
2026-07-17 18:08:51 +08:00
2026-07-16 17:11:53 +08:00
2026-07-17 18:08:51 +08:00
2026-07-18 10:40:34 +08:00
2026-06-20 15:03:40 +08:00
2026-07-18 10:40:34 +08:00
2026-07-17 18:08:51 +08:00
2026-04-21 22:53:34 +08:00
2026-07-11 09:22:40 +08:00
2026-05-28 21:34:36 +08:00
2026-07-17 18:08:51 +08:00
2026-03-05 13:43:34 +08:00
2026-06-22 13:34:45 +08:00
2026-06-20 15:03:40 +08:00
2026-04-19 18:01:09 +08:00
2026-06-20 15:03:40 +08:00
2026-07-17 18:08:51 +08:00

What's it

A cube game like Minecraft, using C++ and OpenGL.

Build Guide

Prerequisites

  • CMake (>= 3.24)
  • C++ 23 compatible compiler

Step

  1. Clone the repository
    git clone https://github.com/zhenyan121/Cubed.git && cd Cubed
    
  2. Configure with CMake
    mkdir build && cd build
    cmake -G "Ninja" ..
    
  3. Build the project
    ninja
    
Description
No description provided
Readme MIT 38 MiB
Languages
C++ 96.8%
C 2.1%
GLSL 0.6%
Python 0.3%
CMake 0.2%