-
Notifications
You must be signed in to change notification settings - Fork 1
/
Planet.h
26 lines (26 loc) · 784 Bytes
/
Planet.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
#include<string>
using namespace std;
class Planet {
public:
Planet();
Planet(string name,double radius,string units,string facts,string description,string texLoc);
void render(double,double,double);
void renderRing(double,double);
double getRadius();
string getUnit();
string getTexLoc();
string getName();
string getFacts();
string getDescription();
void setPosition(double);
double getPosition();
void setSecondaryTextPrimitives(double,double,double);
~Planet();
private:
void loadTexture();
string name,facts,description,units;
string texLoc;
double radius,position;
double scaling_factor;
GLuint texture[33];
};