Public Member Functions | Private Attributes
Tracking::Shader Class Reference

#include <Shader.h>

List of all members.

Public Member Functions

void bind ()
void dumpVars ()
GLuint getAttribLoc (const char *)
bool getStatus ()
GLint getUniformLoc (const char *)
void printInfoLog (GLhandleARB obj, const char *msg,...)
void setUniform (const char *, int)
void setUniform (const char *, unsigned)
void setUniform (const char *, int, const int *)
void setUniform (const char *, float)
void setUniform (const char *, int, const float *)
void setUniform (const char *, vec2)
void setUniform (const char *var, int n, vec2 *f)
void setUniform (const char *, vec3)
void setUniform (const char *var, int n, vec3 *f)
void setUniform (const char *, vec4)
void setUniform (const char *var, int n, vec4 *f)
void setUniform (const char *, mat3, bool transpose=false)
void setUniform (const char *var, int n, mat3 *f, bool transpose)
void setUniform (const char *, mat4, bool transpose=false)
void setUniform (const char *var, int n, mat4 *f, bool transpose)
 Shader (const char *vertex_file=NULL, const char *fragment_file=NULL, const char *header=NULL)
void unbind ()
 ~Shader ()

Private Attributes

GLhandleARB fragment
GLhandleARB program
GLhandleARB vertex

Detailed Description

Author:
Maurizio Monge

Definition at line 33 of file Shader.h.


Constructor & Destructor Documentation

Shader::Shader ( const char *  vertex_file = NULL,
const char *  fragment_file = NULL,
const char *  header = NULL 
)

Definition at line 136 of file Shader.cpp.

Definition at line 241 of file Shader.cpp.


Member Function Documentation

void Shader::bind ( )

Definition at line 248 of file Shader.cpp.

void Shader::dumpVars ( )

Definition at line 69 of file Shader.cpp.

GLuint Shader::getAttribLoc ( const char *  attr)

Definition at line 260 of file Shader.cpp.

Definition at line 128 of file Shader.cpp.

GLint Shader::getUniformLoc ( const char *  var)

Definition at line 265 of file Shader.cpp.

void Shader::printInfoLog ( GLhandleARB  obj,
const char *  msg,
  ... 
)

Definition at line 96 of file Shader.cpp.

void Shader::setUniform ( const char *  var,
int  f 
)

Definition at line 270 of file Shader.cpp.

void Shader::setUniform ( const char *  var,
unsigned  f 
)

Definition at line 276 of file Shader.cpp.

void Shader::setUniform ( const char *  var,
int  n,
const int *  f 
)

Definition at line 282 of file Shader.cpp.

void Shader::setUniform ( const char *  var,
float  f 
)

Definition at line 288 of file Shader.cpp.

void Shader::setUniform ( const char *  var,
int  n,
const float *  f 
)

Definition at line 294 of file Shader.cpp.

void Shader::setUniform ( const char *  var,
vec2  f 
)

Definition at line 301 of file Shader.cpp.

void Shader::setUniform ( const char *  var,
int  n,
vec2 f 
)

Definition at line 307 of file Shader.cpp.

void Shader::setUniform ( const char *  var,
vec3  f 
)

Definition at line 313 of file Shader.cpp.

void Shader::setUniform ( const char *  var,
int  n,
vec3 f 
)

Definition at line 319 of file Shader.cpp.

void Shader::setUniform ( const char *  var,
vec4  f 
)

Definition at line 325 of file Shader.cpp.

void Shader::setUniform ( const char *  var,
int  n,
vec4 f 
)

Definition at line 331 of file Shader.cpp.

void Shader::setUniform ( const char *  var,
mat3  f,
bool  transpose = false 
)

Definition at line 337 of file Shader.cpp.

void Shader::setUniform ( const char *  var,
int  n,
mat3 f,
bool  transpose 
)

Definition at line 343 of file Shader.cpp.

void Shader::setUniform ( const char *  var,
mat4  f,
bool  transpose = false 
)

Definition at line 349 of file Shader.cpp.

void Shader::setUniform ( const char *  var,
int  n,
mat4 f,
bool  transpose 
)

Definition at line 355 of file Shader.cpp.

void Shader::unbind ( )

Definition at line 254 of file Shader.cpp.


Member Data Documentation

GLhandleARB Tracking::Shader::fragment [private]

Definition at line 35 of file Shader.h.

GLhandleARB Tracking::Shader::program [private]

Definition at line 37 of file Shader.h.

GLhandleARB Tracking::Shader::vertex [private]

Definition at line 36 of file Shader.h.


The documentation for this class was generated from the following files:


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Thu Jan 2 2014 11:38:27