Engine
sphere.h
1 #include<mesh.h>
2 #include <GL/glew.h>
3 #include <Eigen/Core>
4 #include <vector3G.h>
5 #include <physics_entity.h>
6 #include <model.h>
7 
8 #ifndef SPHERE
9 #define SPHERE
10 
15 class Sphere : public Model, public PhysicsEntity
16 {
17  private:
18  GLfloat m_radius;
19  Vector3Gf m_center;
20 
21  void UVSphereMesh(const GLfloat radius, const GLuint numU, const GLuint numV, Mesh &mesh);
22 
23  public:
27  Sphere();
28 
32  ~Sphere();
33 
44  Sphere(GLfloat radius, Vector3Gf position, Vector3Gf velocity, GLfloat mass, Quaternion orientation, Vector3Gf angular_velocity, Material material);
45 
49  void OnUpdateFromBuffers();
50 
51 
52 };
53 #endif
Definition: mesh.h:17
Sphere()
Definition: sphere.cpp:4
An entity subject to the laws of physics.
Definition: physics_entity.h:14
data structure reprenseting a Quaternion.
Definition: quaternion.h:9
Definition: material.h:5
~Sphere()
Definition: sphere.cpp:11
Defines a model used for rendering.
Definition: model.h:14
void OnUpdateFromBuffers()
Definition: sphere.cpp:26
A sphere.
Definition: sphere.h:15