Pioneer
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Graphics::OGL::Program Class Reference

#include <Program.h>

Public Member Functions

 Program (Shader *shader, const ProgramDef &def)
 
 ~Program ()
 
void Reload (Shader *shader, const ProgramDef &def)
 
bool Loaded () const
 
GLuint GetConstantLocation (uint32_t index) const
 
GLuint GetProgramID () const
 

Protected Member Functions

GLuint LoadShaders (const ProgramDef &def)
 
void InitUniforms (Shader *shader)
 

Protected Attributes

GLuint m_program
 
bool success
 
std::vector< GLuint > m_constants
 

Constructor & Destructor Documentation

◆ Program()

Graphics::OGL::Program::Program ( Shader shader,
const ProgramDef def 
)
Here is the call graph for this function:

◆ ~Program()

Graphics::OGL::Program::~Program ( )

Member Function Documentation

◆ GetConstantLocation()

GLuint Graphics::OGL::Program::GetConstantLocation ( uint32_t  index) const
inline

◆ GetProgramID()

GLuint Graphics::OGL::Program::GetProgramID ( ) const
inline

◆ InitUniforms()

void Graphics::OGL::Program::InitUniforms ( Shader shader)
protected
Here is the call graph for this function:

◆ Loaded()

bool Graphics::OGL::Program::Loaded ( ) const
inline

◆ LoadShaders()

GLuint Graphics::OGL::Program::LoadShaders ( const ProgramDef def)
protected

◆ Reload()

void Graphics::OGL::Program::Reload ( Shader shader,
const ProgramDef def 
)
Here is the call graph for this function:

Member Data Documentation

◆ m_constants

std::vector<GLuint> Graphics::OGL::Program::m_constants
protected

◆ m_program

GLuint Graphics::OGL::Program::m_program
protected

◆ success

bool Graphics::OGL::Program::success
protected

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