-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCNC_Application.h
More file actions
41 lines (33 loc) · 783 Bytes
/
CNC_Application.h
File metadata and controls
41 lines (33 loc) · 783 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
#ifndef CNC_APPLICATION_H
#define CNC_APPLICATION_H
#include "CNC_Types.h"
#include "CNC_Platform.h"
struct Clock
{
u32 m_hours;
u32 m_minutes;
u32 m_seconds;
f32 m_hoursAngle;
f32 m_minutesAngle;
f32 m_secondsAngle;
};
struct Application
{
bool m_start;
Clock m_clock;
Platform m_platform;
MemoryPool* m_permanentMemory;
MemoryPool* m_transientMemory;
ImageFile* m_bg;
ImageFile* m_knob;
ImageFile* m_hours;
ImageFile* m_minutes;
ImageFile* m_dash;
ImageFile* m_dot;
VertexInput* m_vertices;
};
void Load( Application* application );
void Update( Application* application );
void Render( Application* application );
void Exit( Application* application );
#endif//CNC_APPLICATION_H