Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
 All Classes Namespaces Functions Pages
JumpFlooding.h
1 #ifndef _JUMPFLOODING_H_
2 #define _JUMPFLOODING_H_
3 
4 #include "Framebuffer.h"
5 #include "Mesh.h"
6 #include "Shader.h"
7 
12 {
13 public:
17  static void init();
18 
23  static void createDistanceTransformBuffers(Framebuffer& fbo1, Framebuffer& fbo2, int width, int height);
24 
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