-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplanet.hpp
More file actions
45 lines (32 loc) · 945 Bytes
/
planet.hpp
File metadata and controls
45 lines (32 loc) · 945 Bytes
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
41
42
43
44
45
#ifndef __PLANET_HPP__
#define __PLANET_HPP__
#include <vector>
#include <chrono>
#include <random>
#include <glm/vec3.hpp>
#include "common.hpp"
class Planet
{
private:
glm::vec4 origin;
std::vector<Particle> silicateParticles;
std::vector<Particle> ironParticles;
//std::vector<float> colorSilicate;
//std::vector<float> colorIron;
float colorSilicate[4] = {0.0f, 1.0f, 0.0f, 0.1f};
float colorIron[4] = {0.0f, 0.0f, 1.0f, 0.1f};
public:
Planet(glm::vec4, glm::vec3, glm::vec3, int, int);
void setOrigin(glm::vec4);
void setOrigin(double, double, double);
void setLinearVelocity(glm::vec3, glm::vec3);
void addSilicateParticle(double, double, double);
void addIronParticle(double, double, double);
std::vector<Particle> getIronParticles();
std::vector<Particle> getSilicateParticles();
float *getSilicateColor();
float *getIronColor();
int getSilicateCount();
int getIronCount();
};
#endif