-
Notifications
You must be signed in to change notification settings - Fork 1
/
ring.h
40 lines (36 loc) · 853 Bytes
/
ring.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
37
38
39
40
/**
* Ring Class - deals with the rings for the planets
*/
class Ring
{
private:
string texturePath;
string name;
double innerRadius;
double outerRadius;
double ringRotation;
bool enabled;
public:
Ring(string nameIn, double innerRadiusIn, double outerRadiusIn, string texturePathIn, int planetIn, double rotationIn) {
innerRadius = innerRadiusIn;
outerRadius = outerRadiusIn;
texturePath = texturePathIn;
name = nameIn;
planetId = planetIn;
ringRotation = rotationIn;
enabled = true;
}
int textureId;
int planetId;
double getInnerRadius(void) {
return innerRadius;
}
double getOuterRadius(void) {
return outerRadius;
}
void draw(double, Point3);
void toggle(void);
void setEnabled(bool);
string getTexturePath(void){ return texturePath; }
string getName(void) { return name; }
};