eXperiment robotics framework

erf_glsl.hpp File Reference

> Shader related functions More...

#include <erf_debug.hpp>
#include <erf_opengl.hpp>
#include <fstream>

Include dependency graph for erf_glsl.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


std::string readTextFile (const std::string &path)
 Read a text file to a std::string that is returned.
GLuint newProgram (string vert_file_name, string frag_file_name)
 Create a new shader.
bool glew_check ()
 Check for glew sanity.
bool printShaderInfoLog (GLuint obj)
 Debug information log on the shader loading.
bool printProgramInfoLog (GLuint obj)
 Debug information log on the program loading.
GLuint loadShader (const std::string &path, GLuint shader_type)
 Shader loading function.

Detailed Description

> Shader related functions

Definition in file erf_glsl.hpp.

The miarn project - written by Joao Xavier