ShaderTool
0.1
Live tool for developing OpenGL shaders interactively
src
shaders.h
Go to the documentation of this file.
1
#ifndef SHADERS_H
2
#define SHADERS_H
3
4
char
*
read_file
(
const
char
*
const
filename
);
5
int
compile_shaders
(
unsigned
int
*shader_program,
6
const
char
*
const
fragment_shader_file);
7
8
#endif
/* SHADERS_H */
compile_shaders
int compile_shaders(unsigned int *shader_program, const char *const fragment_shader_file)
Compile shaders from source files.
Definition:
shaders.c:64
shader_state::filename
const char * filename
Definition:
renderer.h:11
read_file
char * read_file(const char *const filename)
Reads a file in a heap-allocated buffer.
Definition:
shaders.c:18
Generated by
1.8.17