20 lines
No EOL
396 B
C++
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;
|
|
}; |