sphore 0.0.1
SPH openGL rendering engine
|
Code for managing shaders. More...
#include "settings.h"
#include "shaders.h"
#include "sphore.h"
#include "warning.h"
#include <stdio.h>
#include <string.h>
#include <GL/gl.h>
Defines | |
#define | FILE_BUFFER_SIZE 512 |
Functions | |
void | _print_shader_info_log (GLuint obj) |
SREbool | _create_shader (GLuint *shader_name, GLenum type, char *location) |
void | _print_program_info_log (GLuint obj) |
SREbool | _create_program (GLuint *program, GLuint vertex_shader, GLuint fragment_shader) |
void | create_shaders (void) |
void | destroy_shaders (void) |
SREbool | create_programs (void) |
void | destroy_programs (void) |
Code for managing shaders.
#define FILE_BUFFER_SIZE 512 |
SREbool _create_program | ( | GLuint * | program, |
GLuint | vertex_shader, | ||
GLuint | fragment_shader | ||
) |
SREbool _create_shader | ( | GLuint * | shader_name, |
GLenum | type, | ||
char * | location | ||
) |
void _print_program_info_log | ( | GLuint | obj | ) |
void _print_shader_info_log | ( | GLuint | obj | ) |
SREbool create_programs | ( | void | ) |
void create_shaders | ( | void | ) |
void destroy_programs | ( | void | ) |
void destroy_shaders | ( | void | ) |