GLVis  v4.2
Accurate and flexible finite element visualization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
gl3::ShaderProgram Class Reference

#include <shader.hpp>

Public Member Functions

 ShaderProgram ()
 
bool create (std::string vertexShader, std::string fragmentShader, std::unordered_map< int, std::string > inAttributes, int numOutputs)
 
bool isCompiled () const
 
int uniform (std::string uniformName) const
 
std::unordered_map
< std::string, GLuint > 
getUniformMap () const
 
GLuint getProgramId () const
 
void bind () const
 

Detailed Description

Definition at line 21 of file shader.hpp.

Constructor & Destructor Documentation

gl3::ShaderProgram::ShaderProgram ( )
inline

Definition at line 24 of file shader.hpp.

Member Function Documentation

void gl3::ShaderProgram::bind ( ) const
inline

Definition at line 57 of file shader.hpp.

bool gl3::ShaderProgram::create ( std::string  vertexShader,
std::string  fragmentShader,
std::unordered_map< int, std::string >  inAttributes,
int  numOutputs 
)

Definition at line 18 of file shader.cpp.

GLuint gl3::ShaderProgram::getProgramId ( ) const
inline

Definition at line 55 of file shader.hpp.

std::unordered_map<std::string, GLuint> gl3::ShaderProgram::getUniformMap ( ) const
inline

Definition at line 50 of file shader.hpp.

bool gl3::ShaderProgram::isCompiled ( ) const
inline

Definition at line 38 of file shader.hpp.

int gl3::ShaderProgram::uniform ( std::string  uniformName) const
inline

Definition at line 40 of file shader.hpp.


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