ClanLib
2.3.7
|
OpenGL program object uniform variable. More...
#include <program_uniform.h>
Public Member Functions | |
Construction | |
CL_ProgramUniform () | |
Constructs a null instance. More... | |
CL_ProgramUniform (const CL_StringRef &name, int size, int type, int location) | |
Constructs a ProgramUniform. More... | |
~CL_ProgramUniform () | |
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 uniform name. More... | |
int | get_type () const |
Get uniform OpenGL type. More... | |
int | get_size () const |
Get uniform size. More... | |
int | get_location () const |
Get uniform location. More... | |
OpenGL program object uniform variable.
CL_ProgramUniform::CL_ProgramUniform | ( | ) |
Constructs a null instance.
CL_ProgramUniform::CL_ProgramUniform | ( | const CL_StringRef & | name, |
int | size, | ||
int | type, | ||
int | location | ||
) |
Constructs a ProgramUniform.
name | = String Ref |
size | = value |
type | = value |
location | = value |
CL_ProgramUniform::~CL_ProgramUniform | ( | ) |
int CL_ProgramUniform::get_location | ( | ) | const |
Get uniform location.
CL_StringRef CL_ProgramUniform::get_name | ( | ) | const |
Get uniform name.
int CL_ProgramUniform::get_size | ( | ) | const |
Get uniform size.
int CL_ProgramUniform::get_type | ( | ) | const |
Get uniform OpenGL type.
|
inline |
Returns true if this object is invalid.
void CL_ProgramUniform::throw_if_null | ( | ) | const |
Throw an exception if this object is invalid.