SphericalHarmonics/src/Shader.hpp
2021-11-16 22:57:55 +01:00

20 lines
No EOL
396 B
C++

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