GlobeEngine
Cylinder.h
Go to the documentation of this file.
1 
7 #ifndef GlobeEngine_Cylinder_h
8 #define GlobeEngine_Cylinder_h
9 
10 #include "OpenGL_Includes.h"
11 #include "DrawableComponent.h"
12 
13 namespace ge {
15  {
16  public:
17  Cylinder();
18  ~Cylinder();
19  void clear();
20  void create();
21  void create(GLuint slices, vmml::Vector3f origin, GLfloat radius);
22  void update();
23  void draw(std::shared_ptr<ge::Camera> _cam);
24 
25  private:
26  // GLuint levels;
27  void setCircularVertexPositions(GLint index, GLfloat* positionBuffer, GLint slices, vmml::Vector3f origin, GLfloat radius, GLfloat verticalOffsetFromOrigin);
28  void extrudeTriangleStrip(GLint index, GLuint* indicesBuffer, GLuint* baseVertices, GLuint* topVertices, GLuint stripLength, bool isCCW, bool isClosed);
29  void extrudeTriangleFan(GLint index, GLuint* indicesBuffer, GLuint sharedVertex, GLuint* vertices, GLuint stripLength, bool isCCW, bool isClosed);
30 
31  };
32 }
33 #endif
Definition: DrawableComponent.h:25
void draw(std::shared_ptr< ge::Camera > _cam)
Definition: Cylinder.cpp:145
Cylinder()
Definition: Cylinder.cpp:4
Definition: Cylinder.h:14
~Cylinder()
Definition: Cylinder.cpp:9
Definition: AvalancheTrainingSimulationEngine.h:28
void create()
Definition: Cylinder.cpp:19
void update()
Definition: Cylinder.cpp:161
void clear()
Definition: Cylinder.cpp:14