#include <shader_wrapper.h>
Public Member Functions | |
operator GLuint () | |
void | operator() () |
void | SetUniformVal1f (std::string name, GLfloat val) |
void | SetUniformVal1i (std::string name, GLint val) |
~ShaderWrapper () | |
Static Public Member Functions | |
static ShaderWrapper | fromFiles (const std::string vertex_file, const std::string fragment_file) |
static ShaderWrapper | fromFiles (const char *vertex_file, const char *fragment_file) |
template<int L1, int L2> | |
static ShaderWrapper | fromSource (GLchar const *(&v_source)[L1], GLchar const *(&f_source)[L2]) |
Private Member Functions | |
template<int L> | |
GLuint | compile (GLuint type, char const *(&shader_source)[L]) |
template<int L1, int L2> | |
ShaderWrapper (GLchar const *(&v_source)[L1], GLchar const *(&f_source)[L2]) | |
Static Private Member Functions | |
static std::string | load_text_file (std::string file_name) |
Private Attributes | |
GLuint | fragment_shader |
GLuint | prog |
GLuint | vertex_shader |
Definition at line 43 of file shader_wrapper.h.
Definition at line 63 of file shader_wrapper.cpp.
realtime_urdf_filter::ShaderWrapper::ShaderWrapper | ( | GLchar const *(&) | v_source[L1], |
GLchar const *(&) | f_source[L2] | ||
) | [private] |
Definition at line 96 of file shader_wrapper.cpp.
GLuint realtime_urdf_filter::ShaderWrapper::compile | ( | GLuint | type, |
char const *(&) | shader_source[L] | ||
) | [private] |
Definition at line 114 of file shader_wrapper.cpp.
ShaderWrapper realtime_urdf_filter::ShaderWrapper::fromFiles | ( | const std::string | vertex_file, |
const std::string | fragment_file | ||
) | [static] |
Definition at line 48 of file shader_wrapper.cpp.
ShaderWrapper realtime_urdf_filter::ShaderWrapper::fromFiles | ( | const char * | vertex_file, |
const char * | fragment_file | ||
) | [static] |
Definition at line 52 of file shader_wrapper.cpp.
ShaderWrapper realtime_urdf_filter::ShaderWrapper::fromSource | ( | GLchar const *(&) | v_source[L1], |
GLchar const *(&) | f_source[L2] | ||
) | [static] |
Definition at line 42 of file shader_wrapper.cpp.
std::string realtime_urdf_filter::ShaderWrapper::load_text_file | ( | std::string | file_name | ) | [static, private] |
Definition at line 140 of file shader_wrapper.cpp.
realtime_urdf_filter::ShaderWrapper::operator GLuint | ( | ) |
Definition at line 71 of file shader_wrapper.cpp.
void realtime_urdf_filter::ShaderWrapper::operator() | ( | ) |
Definition at line 77 of file shader_wrapper.cpp.
Definition at line 89 of file shader_wrapper.cpp.
Definition at line 83 of file shader_wrapper.cpp.
Definition at line 79 of file shader_wrapper.h.
Definition at line 79 of file shader_wrapper.h.
Definition at line 79 of file shader_wrapper.h.