renderstack::program_attribute Class Reference

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

Detailed Description

Definition at line 76 of file program.hpp.


Constructor & Destructor Documentation

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     }


Member Function Documentation

std::string const& renderstack::program_attribute::name (  )  const [inline]

Definition at line 93 of file program.hpp.

00093 { return m_name; }

int renderstack::program_attribute::gl_slot (  )  const [inline]

Definition at line 94 of file program.hpp.

00094 { return m_gl_slot; }

int renderstack::program_attribute::gl_type_code (  )  const [inline]

Definition at line 95 of file program.hpp.

00095 { return m_gl_type_code; } 

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 }


The documentation for this class was generated from the following files:
Generated on Sun Apr 11 12:23:11 2010 for RenderStack by  doxygen 1.6.3