-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththrottleUI.h
More file actions
38 lines (30 loc) · 801 Bytes
/
Copy paththrottleUI.h
File metadata and controls
38 lines (30 loc) · 801 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
#include <memory>
#include "glm/ext.hpp"
struct vertexBuffer;
struct vertexArray;
struct texture;
struct shaderProgram;
struct throttleUI
{
public:
throttleUI();
~throttleUI() {};
void update(float _throttleValue);
private:
float currentThrottle = 0.0f;
// body of throttle
std::shared_ptr<vertexBuffer> bodyVertBuffer;
std::shared_ptr<vertexBuffer> bodyTexBuffer;
std::shared_ptr<vertexArray> bodyVAO;
std::shared_ptr<texture> bodyTexture;
glm::mat4 bodyModelMatrix;
// head of throttle
std::shared_ptr<vertexBuffer> headVertBuffer;
std::shared_ptr<vertexBuffer> headTexBuffer;
std::shared_ptr<vertexArray> headVAO;
std::shared_ptr<texture> headTexture;
glm::mat4 headModelMatrix;
// shared attributes
std::shared_ptr<shaderProgram> program;
glm::mat4 projectionMatrix;
};