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

View file

@ -6,7 +6,7 @@
namespace oglu
{
typedef struct {
typedef OGLU_API struct {
GLuint index;
GLint size;
GLenum type;

View file

@ -6,6 +6,7 @@
#include "color.hpp"
#include "object.hpp"
#include "shader.hpp"
namespace oglu
{

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