|
ClanLib
2.3.7
|
OpenGL program object vertex attribute information class. More...
#include <program_attribute.h>
Public Member Functions | |
Construction | |
| CL_ProgramAttribute () | |
| Constructs a null instance. More... | |
| CL_ProgramAttribute (const CL_StringRef &name, int size, int type, int location) | |
| Constructs a ProgramAttribute. More... | |
| ~CL_ProgramAttribute () | |
Attributes | |
| bool | is_null () const |
| Returns true if this object is invalid. More... | |
| void | throw_if_null () const |
| Throw an exception if this object is invalid. More... | |
| CL_StringRef | get_name () const |
| Get attribute name. More... | |
| int | get_size () const |
| Get attribute size. More... | |
| int | get_type () const |
| Get attribute OpenGL type. More... | |
| int | get_location () const |
| Get attribute location. More... | |
OpenGL program object vertex attribute information class.
| CL_ProgramAttribute::CL_ProgramAttribute | ( | ) |
Constructs a null instance.
| CL_ProgramAttribute::CL_ProgramAttribute | ( | const CL_StringRef & | name, |
| int | size, | ||
| int | type, | ||
| int | location | ||
| ) |
Constructs a ProgramAttribute.
| name | = String Ref |
| size | = value |
| type | = value |
| location | = value |
| CL_ProgramAttribute::~CL_ProgramAttribute | ( | ) |
| int CL_ProgramAttribute::get_location | ( | ) | const |
Get attribute location.
| CL_StringRef CL_ProgramAttribute::get_name | ( | ) | const |
Get attribute name.
| int CL_ProgramAttribute::get_size | ( | ) | const |
Get attribute size.
| int CL_ProgramAttribute::get_type | ( | ) | const |
Get attribute OpenGL type.
|
inline |
Returns true if this object is invalid.
| void CL_ProgramAttribute::throw_if_null | ( | ) | const |
Throw an exception if this object is invalid.
1.8.4