summaryrefslogtreecommitdiff
path: root/src/shader.h
blob: 78b4a263475e05d5bc6308cb59f44b9019b5473b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once
#include "cglm/types.h"
#include "glad/glad.h"

struct shader {
    GLuint program; 
};
/*
 *Load a vertex and framgent shader defined in the shaders/ directory. 
 @param shader The shader struct to store the compiled program pointer in
 @return zero on success
 */
int shader_init(struct shader* shader);

int set_uniform_mat4(char* var, struct shader* shader, mat4 matrix);