20 #ifndef FASTUIDRAW_SHAREABLE_VALUE_LIST_HPP 21 #define FASTUIDRAW_SHAREABLE_VALUE_LIST_HPP 65 m_data.swap(obj.m_data);
77 for (
unsigned int i = 0; i < type_number_types; ++i)
79 R[i] = m_data[i].size();
92 return m_data[q].get();
103 m_data[q].push_back(pname);
A shareable_value_list is a list of values and their types that a shader will have computed after run...
all classes and functions of FastUIDraw are in the namespace fastuidraw.
shareable_value_list & add_shareable_value(c_string pname, enum type_t q)
type_t
Enumeration to define the types of the a shareable value can be.
vecN is a simple static array class with no virtual functions and no memory overhead. Supports runtim array index checking and STL style iterators via pointer iterators.
c_array< const c_string > shareable_values(enum type_t q) const
shareable_value_list & add_uint(c_string pname)
vecN< unsigned int, type_number_types > number_shareable_values(void) const
A c_array is a wrapper over a C pointer with a size parameter to facilitate bounds checking and provi...
shareable_value_list & add_int(c_string pname)
const char * c_string
Conveniant typedef for C-style strings.
shareable_value_list & add_float(c_string pname)
void swap(shareable_value_list &obj)