portersky a4ef4adfc7 feat: add window resize support
Added width/height tracking to the window class via a GLFW
resize callback. The callback stores the current size and
forwards it to a user-provided std::function.

Added context::set_size() to update the GL viewport when
the window is resized.

Changed scene::render() to accept (int width, int height)
parameters so scenes can compute the correct aspect ratio
for their projection matrix instead of hardcoding 1280/720.

Fixed parameter shadowing in resize_callback_impl
(glfw_window instead of window).
2026-05-06 00:06:59 +02:00
2026-05-06 00:06:59 +02:00
2026-05-06 00:06:59 +02:00
2026-05-06 00:06:59 +02:00
2026-05-05 21:34:00 +02:00

cuber

cuber is a simple cube timer.

Requirements

  • CMake 3.21+
  • Ninja
  • C++23 compiler

Development

Configure:

cmake -S . -B build -GNinja

Build:

ninja -C build

Run:

./build/cuber.exe
S
Description
No description provided
Readme 425 KiB
Languages
C++ 95.1%
CMake 4.9%