Techneck/code/source-c/shaders.h

27 lines
504 B
C
Raw Normal View History

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>
#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;
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