-
Notifications
You must be signed in to change notification settings - Fork 0
/
Star.h
40 lines (33 loc) · 611 Bytes
/
Star.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
#pragma once
#include "maths.h"
#include "modelclass.h"
#include <list>
struct StarParam
{
StarParam() {};
StarParam(XMFLOAT3 _pos, float _radius, float _temperature)
{
pos = _pos;
radius = _radius;
temperature = _temperature;
}
XMFLOAT3 pos;
float radius;
float temperature;
};
class Star
{
public:
Star();
~Star();
void Initialize(ID3D11Device* device, ID3D11DeviceContext* context, StarParam param);
ModelClass* GetModel();
void Shutdown();
StarParam GetParam();
XMFLOAT4 GetColor();
//for the GUI to access
StarParam m_param;
private:
ModelClass* m_model;
XMFLOAT4 m_color;
};