SphericalHarmonics/src/Shader.hpp
2021-11-18 16:52:49 +01:00

22 lines
470 B
C++

#pragma once
#include <string>
class Shader
{
public:
Shader();
Shader(const std::string& vertexShaderSourceCode, const std::string& fragmentShaderSourceCode);
~Shader();
void SetMatrix(const std::string& name, const float* data);
void SetVector3(const std::string& name, const float* data);
void Bind();
private:
void CreateProgram(const std::string& vertexShaderSourceCode, const std::string& fragmentShaderSourceCode);
private:
unsigned int program;
};