CL_ProgramUniform Class Reference
[clanDisplay Display]

OpenGL program object uniform variable. More...

#include <program_uniform.h>

List of all members.

Public Member Functions

Construction

 CL_ProgramUniform ()
 Constructs a null instance.
 CL_ProgramUniform (const CL_StringRef &name, int size, int type, int location)
 Constructs a ProgramUniform.
 ~CL_ProgramUniform ()
Attributes

bool is_null () const
 Returns true if this object is invalid.
void throw_if_null () const
 Throw an exception if this object is invalid.
CL_StringRef get_name () const
 Get uniform name.
int get_type () const
 Get uniform OpenGL type.
int get_size () const
 Get uniform size.
int get_location () const
 Get uniform location.

Detailed Description

OpenGL program object uniform variable.


Constructor & Destructor Documentation

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.

Parameters:
name = String Ref
size = value
type = value
location = value
CL_ProgramUniform::~CL_ProgramUniform (  ) 

Member Function Documentation

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.

bool CL_ProgramUniform::is_null (  )  const [inline]

Returns true if this object is invalid.

void CL_ProgramUniform::throw_if_null (  )  const

Throw an exception if this object is invalid.


The documentation for this class was generated from the following file: