All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
realtime_urdf_filter::ShaderWrapper Class Reference

#include <shader_wrapper.h>

List of all members.

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

Detailed Description

Definition at line 43 of file shader_wrapper.h.


Constructor & Destructor Documentation

Definition at line 63 of file shader_wrapper.cpp.

template<int L1, int L2>
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.


Member Function Documentation

template<int L>
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.

template<int L1, int L2>
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.

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.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


realtime_urdf_filter
Author(s): Nico Blodow
autogenerated on Thu May 23 2013 16:50:37