renderstack::uniform Class Reference

wrapper for gl uniform

#include <program.hpp>

Public Member Functions

 uniform ()
 uniform (std::string const &name, int gl_slot, int size, int gl_type_code)
std::string const & name () const
int gl_slot () const
int size () const
int gl_type_code () const

Static Public Member Functions

static void print_source (std::string const &source)

Detailed Description

Definition at line 49 of file program.hpp.


Constructor & Destructor Documentation

renderstack::uniform::uniform (  )  [inline]

Definition at line 52 of file program.hpp.

00052 {}

renderstack::uniform::uniform ( std::string const &  name,
int  gl_slot,
int  size,
int  gl_type_code 
) [inline]

Definition at line 53 of file program.hpp.

00054     :   m_name        (name)
00055     ,   m_gl_slot     (gl_slot)
00056     ,   m_size        (size)
00057     ,   m_gl_type_code(gl_type_code)
00058     {
00059     }


Member Function Documentation

static void renderstack::uniform::print_source ( std::string const &  source  )  [static]
std::string const& renderstack::uniform::name (  )  const [inline]

Definition at line 63 of file program.hpp.

00063 { return m_name; }

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

Definition at line 64 of file program.hpp.

00064 { return m_gl_slot; } 

int renderstack::uniform::size (  )  const [inline]

Definition at line 65 of file program.hpp.

00065 { return m_size; }

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

Definition at line 66 of file program.hpp.

00066 { return m_gl_type_code; } 


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