-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplanet.h
More file actions
57 lines (47 loc) · 1.38 KB
/
planet.h
File metadata and controls
57 lines (47 loc) · 1.38 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
#pragma once
#include <thread>
#include "face.h"
#include "mapping.h"
#include "Star.h"
class Planet
{
public:
Planet();
~Planet();
void Initialize(XMFLOAT3 position, float size, XMFLOAT3 perlin, XMFLOAT3 mapPerlin, XMFLOAT4 sky, ID3D11Device* device, ID3D11DeviceContext* context,
StarParam star, Mapping* hires_map, float waterHeight, float flatten, float temperature);
void Setup(XMFLOAT3 position, float size, XMFLOAT3 perlin, XMFLOAT3 mapPerlin, XMFLOAT4 sky, ID3D11Device* device, ID3D11DeviceContext* context,
StarParam star, Mapping* hires_map, float waterHeight, float flatten, float temperature);
std::list<ModelClass*> GetModels(XMFLOAT3 camPos, ID3D11Device* device, ID3D11DeviceContext* context, Mapping* hires_map);
bool Shutdown();
bool DrawSky(XMFLOAT3 camPos);
XMFLOAT4 GetSky();
XMFLOAT4 GetUnscaledSky();
XMFLOAT3 GetPosition();
float GetSize();
float GetTemperature();
float GetWaterHeight();
float GetFlat();
XMFLOAT3 GetPerlin();
XMFLOAT3 GetMapPerlin();
bool Built();
private:
Face* m_faces[6];
//need a pointer to the star, or the temperature
//also the colour scheme to be used
XMFLOAT3 m_pos;
float m_size;
float tempDistance;
float m_temp;
XMFLOAT3 m_perlin;
XMFLOAT3 m_mapPerlin;
//the sky colour, if it has one
XMFLOAT4 m_sky;
//heightmap
int h_res;
bool h_built;
bool hires;
float m_waterHeight;
float m_flatten;
Mapping* m_map;
};