OpenCPN Partial API docs
GLShaderProgram Class Reference

Public Member Functions

bool addShaderFromSource (std::string const &shaderSource, GLenum shaderType)
 
bool linkProgram ()
 
void Bind ()
 
void UnBind ()
 
void SetUniform1f (const std::string &name, float value)
 
void SetUniform2fv (const std::string &name, float *value)
 
void SetUniform4fv (const std::string &name, float *value)
 
void SetUniform1i (const std::string &name, GLint value)
 
void SetUniformMatrix4fv (const std::string &name, float *value)
 
void SetAttributePointerf (const char *name, float *value)
 
GLuint programId () const
 
bool isOK () const
 

Detailed Description

Definition at line 52 of file shaders.h.


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