Public Member Functions | Private Attributes
TomGine::tgShader Class Reference

#include <tgShader.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)
 tgShader (const char *vertex_file=NULL, const char *fragment_file=NULL, const char *header=NULL)
void unbind ()
 ~tgShader ()

Private Attributes

GLhandleARB fragment
GLhandleARB program
GLhandleARB vertex

Detailed Description

Author:
Maurizio Monge

Definition at line 33 of file tgShader.h.


Constructor & Destructor Documentation

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

Definition at line 133 of file tgShader.cpp.

Definition at line 246 of file tgShader.cpp.


Member Function Documentation

void tgShader::bind ( )

Definition at line 253 of file tgShader.cpp.

Definition at line 67 of file tgShader.cpp.

GLuint tgShader::getAttribLoc ( const char *  attr)

Definition at line 265 of file tgShader.cpp.

Definition at line 126 of file tgShader.cpp.

GLint tgShader::getUniformLoc ( const char *  var)

Definition at line 270 of file tgShader.cpp.

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

Definition at line 94 of file tgShader.cpp.

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

Definition at line 275 of file tgShader.cpp.

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

Definition at line 281 of file tgShader.cpp.

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

Definition at line 287 of file tgShader.cpp.

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

Definition at line 293 of file tgShader.cpp.

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

Definition at line 299 of file tgShader.cpp.

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

Definition at line 306 of file tgShader.cpp.

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

Definition at line 312 of file tgShader.cpp.

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

Definition at line 318 of file tgShader.cpp.

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

Definition at line 324 of file tgShader.cpp.

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

Definition at line 330 of file tgShader.cpp.

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

Definition at line 336 of file tgShader.cpp.

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

Definition at line 342 of file tgShader.cpp.

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

Definition at line 348 of file tgShader.cpp.

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

Definition at line 354 of file tgShader.cpp.

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

Definition at line 360 of file tgShader.cpp.

void tgShader::unbind ( )

Definition at line 259 of file tgShader.cpp.


Member Data Documentation

GLhandleARB TomGine::tgShader::fragment [private]

Definition at line 35 of file tgShader.h.

GLhandleARB TomGine::tgShader::program [private]

Definition at line 37 of file tgShader.h.

GLhandleARB TomGine::tgShader::vertex [private]

Definition at line 36 of file tgShader.h.


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


blort
Author(s): Thomas Mörwald , Michael Zillich , Andreas Richtsfeld , Johann Prankl , Markus Vincze , Bence Magyar
autogenerated on Wed Aug 26 2015 15:24:13