ComputerGraphik TU WIEN
tessellation.hpp
Go to the documentation of this file.
1 #ifndef TESSELLATION_HPP
2 #define TESSELLATION_HPP
3 
4 #include "sceneObject.hpp"
5 
7 
34 class Tessellation : public SceneObject {
35 public:
36  Tessellation(const std::string& name, Scene* scene = 0, Model* model = 0, const glm::mat4& modelMatrix = glm::mat4(1));
37  virtual ~Tessellation();
38 
39  void draw() const;
40  bool animate(double time);
41  void update(double deltaT);
42  void setShader(Shader* val);
43 
44  GLuint getDispTexture() const { return dispTexture; }
45  unsigned int getTessLevelIn() const { return tessLevelIn; }
46  unsigned int getTessLevelOut() const { return tessLevelOut; }
47 
48  void setTessLevelIn(unsigned int val) { tessLevelIn = val; }
49  void setTessLevelOut(unsigned int val) { tessLevelOut = val; }
50 
51 protected:
52  GLuint dispTexture;
54  unsigned int tessLevelIn;
55  unsigned int tessLevelOut;
57 private:
58  float dispTime;
59 };
60 
61 #endif //TESSELLATION_HPP
virtual ~Tessellation()
Definition: tessellation.cpp:46
GLuint getDispTexture() const
Definition: tessellation.hpp:44
Encapsulates a graphical object model in the GPU.
Definition: model.hpp:14
unsigned int tessLevelOut
Definition: tessellation.hpp:55
void setTessLevelIn(unsigned int val)
Definition: tessellation.hpp:48
Model * model
Definition: sceneObject.hpp:69
Implementation of tessellation, abstract class.
Definition: tessellation.hpp:34
void draw() const
Definition: tessellation.cpp:51
unsigned int tessLevelIn
Definition: tessellation.hpp:54
void setTessLevelOut(unsigned int val)
Definition: tessellation.hpp:49
unsigned int getTessLevelIn() const
Definition: tessellation.hpp:45
Encapsulates the Rendering Engine, holds a complete scene and it's assets.
Definition: scene.hpp:71
Scene * scene
Definition: sceneObject.hpp:68
GLuint dispTexture
Definition: tessellation.hpp:52
float dispTime
Definition: tessellation.hpp:58
std::string name
Definition: sceneObject.hpp:73
glm::mat4 modelMatrix
Definition: sceneObject.hpp:71
Encapsulates a shader program.
Definition: shader.hpp:9
unsigned int getTessLevelOut() const
Definition: tessellation.hpp:46
Tessellation(const std::string &name, Scene *scene=0, Model *model=0, const glm::mat4 &modelMatrix=glm::mat4(1))
Definition: tessellation.cpp:21
The base class of the objects which are rendered.
Definition: sceneObject.hpp:30
void setShader(Shader *val)
Definition: tessellation.cpp:93
void update(double deltaT)
Definition: tessellation.cpp:88
bool animate(double time)
Definition: tessellation.cpp:82