#include <GLProgram.h>
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 |
CGLSurface * | pCurrentRenderer |
std::vector< char * > | compileMessages |
std::vector< char * > | linkMessages |
bool | linkSuccess |
Definition at line 21 of file GLProgram.h.
CGLProgram::CGLProgram | ( | void | ) |
CGLProgram::~CGLProgram | ( | void | ) | [virtual] |
void CGLProgram::AttachShader | ( | unsigned int | sObjectID | ) |
Definition at line 64 of file GLProgram.cpp.
References CGLSurface::lockGLContext(), pCurrentRenderer, programID, and CGLSurface::unlockGLContext().
char * CGLProgram::Compile | ( | unsigned int | sObjectID, | |
const char ** | source, | |||
int | nmbOfLines | |||
) |
Definition at line 72 of file GLProgram.cpp.
References compileMessages, CGLSurface::lockGLContext(), pCurrentRenderer, and CGLSurface::unlockGLContext().
unsigned int CGLProgram::CreateShader | ( | int | shaderType | ) |
Definition at line 54 of file GLProgram.cpp.
References CGLSurface::lockGLContext(), pCurrentRenderer, and CGLSurface::unlockGLContext().
void CGLProgram::Detach | ( | unsigned int | sObjectID | ) |
Definition at line 99 of file GLProgram.cpp.
References CGLSurface::lockGLContext(), pCurrentRenderer, programID, and CGLSurface::unlockGLContext().
unsigned int CGLProgram::GetProgramID | ( | ) | [inline] |
bool CGLProgram::InUse | ( | ) |
Definition at line 158 of file GLProgram.cpp.
char * CGLProgram::Link | ( | ) |
Definition at line 107 of file GLProgram.cpp.
References linkMessages, linkSuccess, CGLSurface::lockGLContext(), pCurrentRenderer, programID, and CGLSurface::unlockGLContext().
bool CGLProgram::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 | ) |
Definition at line 35 of file GLProgram.cpp.
References CGLSurface::lockGLContext(), pCurrentRenderer, programID, and CGLSurface::unlockGLContext().
void CGLProgram::Use | ( | bool | tf | ) |
std::vector<char*> CGLProgram::compileMessages [private] |
std::vector<char*> CGLProgram::linkMessages [private] |
bool CGLProgram::linkSuccess [private] |
CGLSurface* CGLProgram::pCurrentRenderer [private] |
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().