feat: add a few improvements of cube logic

This commit is contained in:
2025-12-30 14:27:11 +01:00
parent 03c8f77029
commit 7f70d00e4c
9 changed files with 77 additions and 185 deletions

View File

@@ -25,7 +25,10 @@ class Shape
Texture texture;
public:
Shape(Camera &camera, glm::vec3 pos, Shader shader, Texture texture);
Shape(Camera &camera, glm::vec3 pos, Shader shader, Texture texture)
: camera(camera), pos(pos), shader(shader), texture(texture)
{
}
virtual void render(int width, int height) = 0;