wrapper for gl program attribute
#include <program.hpp>
Public Member Functions | |
program_attribute (std::string const &name, int gl_slot, int size, int gl_type_code) | |
std::string const & | name () const |
int | gl_slot () const |
int | gl_type_code () const |
void | debug () const |
Definition at line 76 of file program.hpp.
renderstack::program_attribute::program_attribute | ( | std::string const & | name, | |
int | gl_slot, | |||
int | size, | |||
int | gl_type_code | |||
) | [inline] |
Definition at line 79 of file program.hpp.
00085 : m_name (name) 00086 , m_gl_slot (gl_slot) 00087 , m_size (size) 00088 , m_gl_type_code (gl_type_code) 00089 { 00090 }
std::string const& renderstack::program_attribute::name | ( | ) | const [inline] |
Definition at line 93 of file program.hpp.
int renderstack::program_attribute::gl_slot | ( | ) | const [inline] |
Definition at line 94 of file program.hpp.
int renderstack::program_attribute::gl_type_code | ( | ) | const [inline] |
Definition at line 95 of file program.hpp.
void renderstack::program_attribute::debug | ( | ) | const |
Definition at line 33 of file program.cpp.
00034 { 00035 ::rs_log( 00036 "attribute %s type %s size %d slot %d\n", 00037 &m_name[0], 00038 ::rs_gl_enum_string(m_gl_type_code), 00039 m_size, 00040 m_gl_slot 00041 ); 00042 }