2023-10-10 18:01:15 +00:00
|
|
|
|
|
|
|
#ifndef TC_SHADERS_H
|
|
|
|
#define TC_SHADERS_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include <glad/glad.h>
|
|
|
|
|
2023-10-15 08:07:33 +00:00
|
|
|
#include <utility/math.h>
|
|
|
|
|
2023-10-10 18:01:15 +00:00
|
|
|
typedef struct tc_shader_program
|
|
|
|
{
|
|
|
|
uint32_t program_id;
|
|
|
|
|
|
|
|
} tc_shader_program_s;
|
|
|
|
|
2023-10-15 08:07:33 +00:00
|
|
|
tc_shader_program_s tc_make_shader_program (char *vertex_path, char *fragment_path);
|
|
|
|
|
|
|
|
void tc_shader_uniform_mat4f (tc_shader_program_s *program, char *location, tc_mat4f_s matrix);
|
|
|
|
|
2023-10-10 18:01:15 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|