-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSphere.h
36 lines (29 loc) · 851 Bytes
/
Sphere.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// Created by rcabido on 25/10/19.
//
#ifndef ENGINE_SPHERE_H
#define ENGINE_SPHERE_H
#include "Vector3D.h"
#include "Color.h"
#include "GameObject.h"
///////////////////////////////////////////////////////////////////////////
// CLASE SPHERE //
class Sphere : public GameObject {
private:
float radius; //Radio de la esfera
int slices; //Divisiones longitudinales
int stacks; //Divisiones latitudinales
public:
//Constructores
Sphere();
Sphere(const Vector3D& position, const Color& color, const Vector3D& speed,
const Vector3D& orientation, float radius, int slices, int stacks);
//Getters
float getRadius() const;
int getSlices() const;
int getStacks() const;
//Otros métodos
virtual void render() const = 0;
//virtual void update(const float &deltaTime, const Vector3D& gravity) const = 0;
};
#endif //ENGINE_SPHERE_H