Space Sim
Loading...
Searching...
No Matches
shaders.h File Reference
#include "types.h"

Go to the source code of this file.

Functions

char * read_file (const char *filename)
GLuint create_compute_shader (const char *filename)
GLuint compile_shader (GLenum type, const char *filename)
GLuint create_shader_program (const char *vertexPath, const char *fragmentPath)
void init_shaders ()

Function Documentation

◆ read_file()

char * read_file ( const char * filename)

Definition at line 7 of file shaders.c.

References read_file(), and size.

Referenced by compile_shader(), create_compute_shader(), and read_file().

◆ create_compute_shader()

GLuint create_compute_shader ( const char * filename)

◆ compile_shader()

GLuint compile_shader ( GLenum type,
const char * filename )

Definition at line 61 of file shaders.c.

References compile_shader(), and read_file().

Referenced by compile_shader(), and create_shader_program().

◆ create_shader_program()

◆ init_shaders()