2024-01-15 17:35:43 -06:00

18 lines
428 B
C++

#pragma once
#include <glad/glad.h>
#include <string>
#include <fstream>
#include <sstream>
#include <iostream>
class Shader {
public:
unsigned int id;
Shader(const char* vertexPath, const char* fragmentPath);
void use() const;
void setBool(const std::string& name, bool value) const;
void setInt(const std::string& name, int value) const;
void setFloat(const std::string& name, float value) const;
};