Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
LocalShaderParam Struct Reference

#include <shader.hpp>

Public Member Functions

 LocalShaderParam (const char *name)
 
LocalShaderParamStateresolve ()
 
void setf (float x=0, float y=0, float z=0, float w=0)
 
void set (const vec &v, float w=0)
 
void set (const vec2 &v, float z=0, float w=0)
 
void set (const vec4 &v)
 
void set (const plane &p)
 
void setv (const float *f, int n=1)
 
void setv (const vec *v, int n=1)
 
void setv (const vec2 *v, int n=1)
 
void setv (const vec4 *v, int n=1)
 
void setv (const plane *p, int n=1)
 
void setv (const matrix2 *m, int n=1)
 
void setv (const matrix3 *m, int n=1)
 
void setv (const matrix4 *m, int n=1)
 
void set (const matrix2 &m)
 
void set (const matrix3 &m)
 
void set (const matrix4 &m)
 
template<class T >
void sett (T x, T y, T z, T w)
 
void seti (int x=0, int y=0, int z=0, int w=0)
 
void set (const ivec &v, int w=0)
 
void set (const ivec2 &v, int z=0, int w=0)
 
void set (const ivec4 &v)
 
void setv (const int *i, int n=1)
 
void setv (const ivec *v, int n=1)
 
void setv (const ivec2 *v, int n=1)
 
void setv (const ivec4 *v, int n=1)
 

Public Attributes

const char * name
 
int loc
 

Constructor & Destructor Documentation

LocalShaderParam::LocalShaderParam ( const char *  name)
inline

Member Function Documentation

LocalShaderParamState* LocalShaderParam::resolve ( )
inline
void LocalShaderParam::set ( const vec v,
float  w = 0 
)
inline

References setf().

void LocalShaderParam::set ( const vec2 v,
float  z = 0,
float  w = 0 
)
inline

References setf().

void LocalShaderParam::set ( const vec4 v)
inline

References setf().

void LocalShaderParam::set ( const plane p)
inline

References plane::offset, and setf().

void LocalShaderParam::set ( const matrix2 m)
inline

References setv().

void LocalShaderParam::set ( const matrix3 m)
inline

References setv().

void LocalShaderParam::set ( const matrix4 m)
inline

References setv().

void LocalShaderParam::set ( const ivec v,
int  w = 0 
)
inline

References seti().

void LocalShaderParam::set ( const ivec2 v,
int  z = 0,
int  w = 0 
)
inline

References seti().

void LocalShaderParam::set ( const ivec4 v)
inline

References seti().

void LocalShaderParam::setf ( float  x = 0,
float  y = 0,
float  z = 0,
float  w = 0 
)
inline
void LocalShaderParam::seti ( int  x = 0,
int  y = 0,
int  z = 0,
int  w = 0 
)
inline

Referenced by set().

template<class T >
void LocalShaderParam::sett ( x,
y,
z,
w 
)
inline
void LocalShaderParam::setv ( const float *  f,
int  n = 1 
)
inline

References glUniform1fv_, ShaderParamBinding::loc, and resolve().

Referenced by set().

void LocalShaderParam::setv ( const vec v,
int  n = 1 
)
inline
void LocalShaderParam::setv ( const vec2 v,
int  n = 1 
)
inline
void LocalShaderParam::setv ( const vec4 v,
int  n = 1 
)
inline
void LocalShaderParam::setv ( const plane p,
int  n = 1 
)
inline
void LocalShaderParam::setv ( const matrix2 m,
int  n = 1 
)
inline
void LocalShaderParam::setv ( const matrix3 m,
int  n = 1 
)
inline
void LocalShaderParam::setv ( const matrix4 m,
int  n = 1 
)
inline
void LocalShaderParam::setv ( const int *  i,
int  n = 1 
)
inline
void LocalShaderParam::setv ( const ivec v,
int  n = 1 
)
inline
void LocalShaderParam::setv ( const ivec2 v,
int  n = 1 
)
inline
void LocalShaderParam::setv ( const ivec4 v,
int  n = 1 
)
inline

Member Data Documentation

int LocalShaderParam::loc

Referenced by resolve().

const char* LocalShaderParam::name

Referenced by resolve().


The documentation for this struct was generated from the following file: