Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Pages
src
JumpFlooding.h
1
#ifndef _JUMPFLOODING_H_
2
#define _JUMPFLOODING_H_
3
4
#include "Framebuffer.h"
5
#include "Mesh.h"
6
#include "Shader.h"
7
11
class
JumpFlooding
12
{
13
public
:
17
static
void
init
();
18
23
static
void
createDistanceTransformBuffers
(
Framebuffer
& fbo1,
Framebuffer
& fbo2,
int
width,
int
height);
24
34
static
Framebuffer
*
applyDistanceTransform
(
Framebuffer
* src,
Framebuffer
* dst);
35
41
static
void
beginMeshWriting
(
Framebuffer
* src,
Framebuffer
* dst);
45
static
void
endMeshWriting
();
46
51
static
Shader
*
getMeshShader
();
52
53
private
:
54
static
Mesh
_screenQuad;
55
static
Shader
_jumpFloodingShader;
56
static
Shader
_jumpFloodResultShader;
57
static
Shader
_jumpFloodingMeshShader;
58
static
bool
_initialized;
59
};
60
61
#endif
Generated on Mon Jun 10 2013 17:20:11 for Cutout Vis2012 by
1.8.4