started work on CompoundShape

This commit is contained in:
2026-02-04 21:17:07 +02:00
parent 5744c8b509
commit ffd2cca5c9
8 changed files with 134 additions and 39 deletions

17
src/headers/IShape.hpp Normal file
View File

@@ -0,0 +1,17 @@
#pragma once
#include <glm/glm.hpp>
class IShape {
public:
glm::mat4 transform;
virtual ~IShape() {};
virtual void init() = 0;
virtual void draw() const = 0;
virtual void reset_transform() = 0;
virtual void translate(const glm::vec3& translation) = 0;
virtual void rotate(const float rotation_rad, const glm::vec3& axis) = 0;
virtual void scale(const glm::vec3& scale_amount) = 0;
};