first commit

This commit is contained in:
2026-01-26 01:02:45 +02:00
commit 034f737dfb
21 changed files with 14629 additions and 0 deletions

36
src/headers/Shape.hpp Normal file
View File

@@ -0,0 +1,36 @@
#pragma once
#include <vector>
#include <memory>
#include <glm/glm.hpp>
#include "Shader.hpp"
struct ShapeInfo {
std::vector<float> vertices;
std::vector<unsigned int> indices;
};
class Shape {
public:
glm::vec3 rotation;
Shape(
std::shared_ptr<Shader> shader,
ShapeInfo& shapeInfo,
glm::vec3 pos = { 0.0f, 0.0f, 0.0f }
);
void draw() const;
private:
std::vector<float> vertices;
std::vector<unsigned int> indices;
glm::vec3 pos;
unsigned int vao;
unsigned int vbo;
unsigned int ebo;
std::shared_ptr<Shader> shader;
};