OpenCPN Partial API docs
Loading...
Searching...
No Matches
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 50 of file shaders.h.

Constructor & Destructor Documentation

◆ GLShaderProgram()

GLShaderProgram::GLShaderProgram ( )
inline

Definition at line 53 of file shaders.h.

◆ ~GLShaderProgram()

GLShaderProgram::~GLShaderProgram ( )
inline

Definition at line 56 of file shaders.h.

Member Function Documentation

◆ addShaderFromSource()

bool GLShaderProgram::addShaderFromSource ( std::string const &  shaderSource,
GLenum  shaderType 
)
inline

Definition at line 58 of file shaders.h.

◆ Bind()

void GLShaderProgram::Bind ( )
inline

Definition at line 105 of file shaders.h.

◆ isOK()

bool GLShaderProgram::isOK ( ) const
inline

Definition at line 147 of file shaders.h.

◆ linkProgram()

bool GLShaderProgram::linkProgram ( )
inline

Definition at line 87 of file shaders.h.

◆ programId()

GLuint GLShaderProgram::programId ( ) const
inline

Definition at line 146 of file shaders.h.

◆ SetAttributePointerf()

void GLShaderProgram::SetAttributePointerf ( const char *  name,
float *  value 
)
inline

Definition at line 132 of file shaders.h.

◆ SetUniform1f()

void GLShaderProgram::SetUniform1f ( const std::string &  name,
float  value 
)
inline

Definition at line 111 of file shaders.h.

◆ SetUniform1i()

void GLShaderProgram::SetUniform1i ( const std::string &  name,
GLint  value 
)
inline

Definition at line 123 of file shaders.h.

◆ SetUniform2fv()

void GLShaderProgram::SetUniform2fv ( const std::string &  name,
float *  value 
)
inline

Definition at line 115 of file shaders.h.

◆ SetUniform4fv()

void GLShaderProgram::SetUniform4fv ( const std::string &  name,
float *  value 
)
inline

Definition at line 119 of file shaders.h.

◆ SetUniformMatrix4fv()

void GLShaderProgram::SetUniformMatrix4fv ( const std::string &  name,
float *  value 
)
inline

Definition at line 127 of file shaders.h.

◆ UnBind()

void GLShaderProgram::UnBind ( )
inline

Definition at line 106 of file shaders.h.


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