|
Volume Renderer DoF
|
#include <GLShader.h>
Public Member Functions | |
| GLShader (const QString &_vertex, const QString &_fragment) | |
| ~GLShader () | |
| void | prepare (const GLuint &vao) |
| void | cleanUp () |
| const bool | isRenderable () const |
Protected Member Functions | |
| virtual void | configShader ()=0 |
| void | createShader (const QString &_vertex, const QString &_fragment) |
Protected Attributes | |
| QOpenGLShaderProgram * | linker |
| GLuint | program |
| GLboolean | renderable |
General class for shaders
| GLShader::GLShader | ( | const QString & | _vertex, |
| const QString & | _fragment | ||
| ) |
| GLShader::~GLShader | ( | ) |
| void GLShader::cleanUp | ( | ) |
unbind everything
|
protectedpure virtual |
gets all necessary uniform locations
|
protected |
creates, compiles and links the shader
| _vertex | path to the vertex shader |
| _fragment | path to the fragment shader |
| const bool GLShader::isRenderable | ( | ) | const |
returns if the program is usable
| void GLShader::prepare | ( | const GLuint & | vao | ) |
use program and bind the vao
| vao | binds this vao |
|
protected |
Qt object for creating the shader
|
protected |
shader program ID
|
protected |
bool holding the info if the shader can be used