CGLProgram Class Reference

#include <GLProgram.h>

Inheritance diagram for CGLProgram:

IManagedObject

List of all members.

Public Member Functions

 CGLProgram (void)
virtual ~CGLProgram (void)
void SetRenderer (CGLSurface *const)
unsigned int GetProgramID ()
unsigned int CreateShader (int shaderType)
void AttachShader (unsigned int sObjectID)
char * Compile (unsigned int sObjectID, const char **source, int nmbOfLines)
void Detach (unsigned int sObjectID)
char * Link ()
bool LinkSuccess ()
bool InUse ()
void Use (bool tf)

Private Member Functions

void Reset ()

Private Attributes

unsigned int programID
CGLSurfacepCurrentRenderer
std::vector< char * > compileMessages
std::vector< char * > linkMessages
bool linkSuccess


Detailed Description

Definition at line 21 of file GLProgram.h.


Constructor & Destructor Documentation

CGLProgram::CGLProgram ( void   ) 

Definition at line 25 of file GLProgram.cpp.

References Reset().

CGLProgram::~CGLProgram ( void   )  [virtual]

Definition at line 30 of file GLProgram.cpp.

References Reset().


Member Function Documentation

void CGLProgram::AttachShader ( unsigned int  sObjectID  ) 

char * CGLProgram::Compile ( unsigned int  sObjectID,
const char **  source,
int  nmbOfLines 
)

unsigned int CGLProgram::CreateShader ( int  shaderType  ) 

void CGLProgram::Detach ( unsigned int  sObjectID  ) 

unsigned int CGLProgram::GetProgramID (  )  [inline]

Definition at line 34 of file GLProgram.h.

References programID.

bool CGLProgram::InUse (  ) 

Definition at line 158 of file GLProgram.cpp.

char * CGLProgram::Link (  ) 

bool CGLProgram::LinkSuccess (  ) 

Definition at line 153 of file GLProgram.cpp.

References linkSuccess.

void CGLProgram::Reset (  )  [private]

Definition at line 178 of file GLProgram.cpp.

References compileMessages, linkMessages, linkSuccess, pCurrentRenderer, and programID.

Referenced by CGLProgram(), and ~CGLProgram().

void CGLProgram::SetRenderer ( CGLSurface * const  renderer  ) 

void CGLProgram::Use ( bool  tf  ) 

Definition at line 165 of file GLProgram.cpp.

References programID.


Member Data Documentation

std::vector<char*> CGLProgram::compileMessages [private]

Definition at line 66 of file GLProgram.h.

Referenced by Compile(), and Reset().

std::vector<char*> CGLProgram::linkMessages [private]

Definition at line 67 of file GLProgram.h.

Referenced by Link(), and Reset().

bool CGLProgram::linkSuccess [private]

Definition at line 68 of file GLProgram.h.

Referenced by Link(), LinkSuccess(), and Reset().

Definition at line 64 of file GLProgram.h.

Referenced by AttachShader(), Compile(), CreateShader(), Detach(), Link(), Reset(), and SetRenderer().

unsigned int CGLProgram::programID [private]

Definition at line 63 of file GLProgram.h.

Referenced by AttachShader(), Detach(), GetProgramID(), Link(), Reset(), SetRenderer(), and Use().


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

Generated on Wed Dec 10 03:22:18 2008 for VStudio by  doxygen 1.5.7.1