Untitled
Loading...
Searching...
No Matches
shaders.h
Go to the documentation of this file.
1
5#ifndef SHADERS_H
6#define SHADERS_H
7#include "core/engine_types.h"
8
9
16char * read_file(const char *filename);
17
23GLuint create_compute_shader(const char * filename);
24
31GLuint compile_shader(GLenum type, const char * filename);
32
33
40GLuint create_shader_program(const char * vertex_path, const char * fragment_path);
41
42
46void SHADERS_INIT();
47
48#endif
Engine specific types and defines.
void SHADERS_INIT()
Deletes and then recompiles and links all engine shaders.
Definition shaders.c:1131
GLuint create_shader_program(const char *vertex_path, const char *fragment_path)
Compiles and links vert and frag pairs.
Definition shaders.c:377
GLuint compile_shader(GLenum type, const char *filename)
Compiles a non-compute shader.
Definition shaders.c:77
char * read_file(const char *filename)
Reads a file into raw bytes.
Definition shaders.c:10
GLuint create_compute_shader(const char *filename)
Creates a compute shader.
Definition shaders.c:34