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

20
src/headers/Shader.hpp Normal file
View File

@@ -0,0 +1,20 @@
#pragma once
#include <string_view>
#include <filesystem>
#include <glm/glm.hpp>
class Shader {
public:
Shader(std::filesystem::path& vertex_path, std::filesystem::path& fragment_path);
unsigned int get_id() const;
void use() const;
void set_mat4(const std::string_view& name, const glm::mat4& value);
void set_vec4(const std::string_view& name, const glm::vec4& value);
private:
unsigned int id;
};