This commit is contained in:
Robert 2021-01-20 00:18:31 +01:00
parent 6c47960b69
commit c3e49cd78e
10 changed files with 81 additions and 5 deletions

22
include/shader.hpp Normal file
View file

@ -0,0 +1,22 @@
#ifndef SHADER_HPP
#define SHADER_HPP
#include <core.hpp>
#include <glad/glad.h>
namespace oglu
{
class OGLU_API Shader
{
public:
Shader(const char* vertexShaderFile, const char* fragmentShaderFile);
private:
void LoadShaderSource(const char* filename, char** buffer);
private:
GLuint vertexShader, fragmentShader;
};
}
#endif