From bcc999e4a749067914df6bb0f16061c0aafe68b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20GUEZO?= Date: Tue, 9 Dec 2025 20:05:07 +0100 Subject: [PATCH] feat(shape)!: add shape super class --- inc/shape.hpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 inc/shape.hpp diff --git a/inc/shape.hpp b/inc/shape.hpp new file mode 100644 index 0000000..14bdd00 --- /dev/null +++ b/inc/shape.hpp @@ -0,0 +1,31 @@ +#ifndef SHAPE_HPP +#define SHAPE_HPP + +#include + +#include + +#include "camera.hpp" +#include "glm/fwd.hpp" + +class Shape +{ + protected: + glm::vec3 position; + Camera& cameraRef; + + virtual void init() = 0; + + public: + Shape(Camera& cameraRef, glm::vec3 position) + : position(position), cameraRef(cameraRef) + { + } + + glm::vec3 getPosition() const { return position; } + Camera& getCamera() const { return cameraRef; } + + virtual void render() = 0; +}; + +#endif \ No newline at end of file