Volume Renderer DoF
Tex3DShader Class Reference

#include <Tex3DShader.h>

Inheritance diagram for Tex3DShader:
GLShader

Public Member Functions

 Tex3DShader ()
 
 ~Tex3DShader ()
 
void draw (FBO *fbo)
 
void prepare (GLCamera &camera, const GLuint &quadVAO, const GLuint &volTEX)
 
- Public Member Functions inherited from GLShader
 GLShader (const QString &_vertex, const QString &_fragment)
 
 ~GLShader ()
 
void prepare (const GLuint &vao)
 
void cleanUp ()
 
const bool isRenderable () const
 

Additional Inherited Members

- Protected Member Functions inherited from GLShader
void createShader (const QString &_vertex, const QString &_fragment)
 
- Protected Attributes inherited from GLShader
QOpenGLShaderProgram * linker
 
GLuint program
 
GLboolean renderable
 

Detailed Description

A class for rendering a slice from a 3D texture

Constructor & Destructor Documentation

◆ Tex3DShader()

Tex3DShader::Tex3DShader ( )

◆ ~Tex3DShader()

Tex3DShader::~Tex3DShader ( )

Member Function Documentation

◆ draw()

void Tex3DShader::draw ( FBO fbo)

renders a texture slice from a 3D texture

Parameters
fbothe fbo we are rendering in

◆ prepare()

void Tex3DShader::prepare ( GLCamera camera,
const GLuint &  quadVAO,
const GLuint &  volTEX 
)

activates the program and loads the uniform datas

Parameters
cameracamera with matrices
quadVAOvao containing quad vertices
volTex3d texture ID

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