int initialize_shaders(struct renderer_state *state, const char *shader_file, const char *buffer_file, int window_width, int window_height)
Initialize shaders, compile them, and create the required texture for the buffer shader.
Definition: shaders.c:22
int compile_shaders(unsigned int *shader_program, const char *const fragment_shader_file)
Compile shaders from source files.
Definition: shaders.c:100
char * read_file(const char *const filename)
Reads a file in a heap-allocated buffer.
Definition: shaders.c:178