zhenyan121 913809a5f0 refactor: renderer (#29)
* refactor(render): move render files to subdirectory, add RAII vertex buffer/array classes

* refactor(render): encapsulate OpenGL textures into Texture class

* refactor(texture): encapsulate textures with unique_ptr and bind methods

Replace raw GLuint framebuffer textures with std::unique_ptr<Texture>. Update TextureManager to return const Texture* instead of GLuint. Use Texture::bind() for active texture binding. Add RGBA16F and RGB formats. Add texture parameter methods. Update destructors accordingly.

* refactor(render): use Texture, VertexBuffer, VertexArray classes

* feat(render): add FrameBuffer class to encapsulate framebuffer operations

* refactor(render): extract world rendering into WorldRenderer class

* refactor(render): rename projection and model matrix members for clarity

* chore(render): remove unused matrix members

* fix(texture-manager): correct delet_texture typo and add null checks for textures
2026-07-10 14:51:43 +08:00
2026-07-08 19:41:10 +08:00
2026-07-08 19:41:10 +08:00
2026-07-10 14:51:43 +08:00
2026-06-20 15:03:40 +08:00
2026-07-10 14:51:43 +08:00
2026-07-08 19:41:10 +08:00
2026-04-21 22:53:34 +08:00
2026-07-02 14:51:34 +08:00
2026-05-28 21:34:36 +08:00
2026-07-08 19:41:10 +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-08 19:41:10 +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%