Untitled
Toggle main menu visibility
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
16
char
*
read_file
(
const
char
*filename);
17
23
GLuint
create_compute_shader
(
const
char
* filename);
24
31
GLuint
compile_shader
(GLenum type,
const
char
* filename);
32
33
40
GLuint
create_shader_program
(
const
char
* vertex_path,
const
char
* fragment_path);
41
42
46
void
SHADERS_INIT
();
47
48
#endif
engine_types.h
Engine specific types and defines.
SHADERS_INIT
void SHADERS_INIT()
Deletes and then recompiles and links all engine shaders.
Definition
shaders.c:1131
create_shader_program
GLuint create_shader_program(const char *vertex_path, const char *fragment_path)
Compiles and links vert and frag pairs.
Definition
shaders.c:377
compile_shader
GLuint compile_shader(GLenum type, const char *filename)
Compiles a non-compute shader.
Definition
shaders.c:77
read_file
char * read_file(const char *filename)
Reads a file into raw bytes.
Definition
shaders.c:10
create_compute_shader
GLuint create_compute_shader(const char *filename)
Creates a compute shader.
Definition
shaders.c:34
src
core
shaders.h
Generated by
1.18.0