ClanLib  2.3.7
List of all members
CL_ProgramAttribute Class Reference

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...
 

Detailed Description

OpenGL program object vertex attribute information class.

Constructor & Destructor Documentation

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.

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

Member Function Documentation

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.

bool CL_ProgramAttribute::is_null ( ) const
inline

Returns true if this object is invalid.

void CL_ProgramAttribute::throw_if_null ( ) const

Throw an exception if this object is invalid.


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