updating renderer work done
This commit is contained in:
@@ -5,4 +5,24 @@
|
||||
#ifndef SHADER_H
|
||||
#define SHADER_H
|
||||
|
||||
#include <glad/glad.h>
|
||||
#include <string.h>
|
||||
|
||||
typedef struct {
|
||||
// Reference ID of the shader program
|
||||
GLuint ID;
|
||||
} Shader;
|
||||
|
||||
char *get_file_contents(const char *filename);
|
||||
|
||||
Shader shader_create(const char *vertexFile, const char *fragmentFile);
|
||||
|
||||
// Takes a pointer to the instance
|
||||
void shader_activate(Shader *self);
|
||||
void shader_delete(Shader *self);
|
||||
|
||||
// Private helper on shaderClass.h C++ header -- no private in C :)
|
||||
void compile_errors(unsigned int shader, const char *type);
|
||||
|
||||
|
||||
#endif //SHADER_H
|
||||
|
||||
Reference in New Issue
Block a user