OpenCPN Partial API docs
|
Wrapper class for OpenGL shader programs. More...
#include <shaders.h>
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 |
Wrapper class for OpenGL shader programs.
Encapsulates an OpenGL shader program, providing methods for compiling shaders, linking the program, and setting uniform variables.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |