Tucano
0.1
A library for rapid prototyping with modern OpenGL and GLSL
|
#include <computeShaderTest.hpp>
Public Member Functions | |
ComputeShaderTest (const char *name, int currentWidth, int currentHeight) | |
Default Constructor: More... | |
virtual void | initialize () |
Initializes the shaders and creates the FBO. More... | |
virtual void | render (Mesh *mesh=NULL, Trackball *cameraTrackball=NULL, Trackball *lightTrackball=NULL) |
Renders the scene. More... | |
virtual void | reloadShaders () |
Reloads all shaders, reading the files again. More... | |
Shader * | getFirstPassShader () |
~ComputeShaderTest () | |
Default destructor. Just deletes the shaders and destroy the buffers. More... | |
Shader * | getShader () |
Protected Member Functions | |
void | setOpenGLMatricesUniforms (Shader *currentShader, Trackball *cameraTrackball, Trackball *lightTrackball) |
Set opengl matrices. More... | |
void | createSSBO () |
Creates the Shader Storage Buffer Object. More... | |
void | createImage () |
Creates the final image to store compute shader manipulations. More... | |
Protected Attributes | |
Shader * | firstPassShader |
Shader used to offscreen rendering. More... | |
Shader * | shader |
Compute shader. More... | |
Shader * | thirdPassShader |
Shader used in back-buffer rendering. More... | |
Framebuffer * | fbo |
Framebuffer. More... | |
GLuint | ssbo |
Shader Storage Buffer Object. More... | |
GLuint | finalImage |
Image to store the compute shader manipulations. More... | |
Just beginning to play with Compute Shaders.
|
inline |
Default Constructor:
|
inline |
Default destructor. Just deletes the shaders and destroy the buffers.
|
protected |
Creates the final image to store compute shader manipulations.
|
protected |
Creates the Shader Storage Buffer Object.
|
inline |
|
inline |
|
virtual |
Initializes the shaders and creates the FBO.
|
virtual |
Reloads all shaders, reading the files again.
|
virtual |
Renders the scene.
|
protected |
Set opengl matrices.
|
protected |
Framebuffer.
|
protected |
Image to store the compute shader manipulations.
|
protected |
Shader used to offscreen rendering.
|
protected |
Compute shader.
|
protected |
Shader Storage Buffer Object.
|
protected |
Shader used in back-buffer rendering.