container for parameters
#include <uniform_bindings.hpp>
Public Member Functions | |
void * | parameter (std::string const &name) |
uint_parameter * | add_uint (std::string const &name, int size=1) |
float_parameter * | add_float (std::string const &name, int size=1) |
vec2_parameter * | add_vec2 (std::string const &name, int size=1) |
vec3_parameter * | add_vec3 (std::string const &name, int size=1) |
vec4_parameter * | add_vec4 (std::string const &name, int size=1) |
matrix_parameter * | add_matrix (std::string const &name, int size=1) |
texture_parameter * | add_texture (std::string const &name, int size=1) |
Definition at line 278 of file uniform_bindings.hpp.
void * renderstack::uniform_parameter_source::parameter | ( | std::string const & | name | ) |
Definition at line 261 of file uniform_bindings.cpp.
uint_parameter* renderstack::uniform_parameter_source::add_uint | ( | std::string const & | name, | |
int | size = 1 | |||
) | [inline] |
Definition at line 282 of file uniform_bindings.hpp.
float_parameter* renderstack::uniform_parameter_source::add_float | ( | std::string const & | name, | |
int | size = 1 | |||
) | [inline] |
Definition at line 289 of file uniform_bindings.hpp.
vec2_parameter* renderstack::uniform_parameter_source::add_vec2 | ( | std::string const & | name, | |
int | size = 1 | |||
) | [inline] |
Definition at line 296 of file uniform_bindings.hpp.
vec3_parameter* renderstack::uniform_parameter_source::add_vec3 | ( | std::string const & | name, | |
int | size = 1 | |||
) | [inline] |
Definition at line 303 of file uniform_bindings.hpp.
vec4_parameter* renderstack::uniform_parameter_source::add_vec4 | ( | std::string const & | name, | |
int | size = 1 | |||
) | [inline] |
Definition at line 310 of file uniform_bindings.hpp.
matrix_parameter* renderstack::uniform_parameter_source::add_matrix | ( | std::string const & | name, | |
int | size = 1 | |||
) | [inline] |
Definition at line 317 of file uniform_bindings.hpp.
texture_parameter* renderstack::uniform_parameter_source::add_texture | ( | std::string const & | name, | |
int | size = 1 | |||
) | [inline] |
Definition at line 325 of file uniform_bindings.hpp.
00326 { 00327 std::tr1::shared_ptr<texture_parameter> p(new texture_parameter(name, size)); 00328 m_texture_parameters.push_back(p); 00329 texture_binding *binding = &p->value[0]; 00330 void *v = reinterpret_cast<void *>(binding); 00331 m_parameters.insert(std::make_pair(name, v)); 00332 //m_parameters.insert(std::make_pair(name, &p->value[0])); 00333 return p.get(); 00334 }