2022-10-16 23:43:22 +02:00
|
|
|
#ifndef SHADER_H
|
|
|
|
#define SHADER_H
|
|
|
|
|
2022-10-18 16:57:14 +02:00
|
|
|
#include <cglm/mat4.h>
|
|
|
|
|
2022-10-16 23:43:22 +02:00
|
|
|
int create_shader(const char* vertex_shader_code, const char* fragment_shader_code);
|
|
|
|
void destroy_shader(int shader);
|
|
|
|
|
|
|
|
void bind_shader(int shader);
|
2022-10-18 16:57:14 +02:00
|
|
|
void set_uniform_mat4(int shader, const char* name, mat4 mat);
|
2022-10-16 23:43:22 +02:00
|
|
|
|
|
|
|
#endif // SHADER_H
|