sphore 0.0.1
SPH openGL rendering engine

src/shaders.c File Reference

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)

Detailed Description

Code for managing shaders.


Define Documentation

#define FILE_BUFFER_SIZE   512

Function Documentation

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  )
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines