-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.cpp
More file actions
85 lines (61 loc) · 2.51 KB
/
render.cpp
File metadata and controls
85 lines (61 loc) · 2.51 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#include "render.h"
/******************************************************************************/
/******************************************************************************/
CRender* CRender::m_pcRender = NULL;
/******************************************************************************/
/******************************************************************************/
//CRender::CRender(CSimulator* pc_simulator, CArguments* pc_renderer_arguments) :
CRender::CRender(CSimulator* pc_simulator) :
m_fFrameRate(1),
m_pcSimulator(pc_simulator),
m_iFrame(0)
// m_pcRendererArguments(pc_renderer_arguments)
{
m_pcRender = this;
}
/******************************************************************************/
/******************************************************************************/
CRender::~CRender()
{
/* if (m_pcRendererArguments != NULL)
{
delete m_pcRendererArguments;
}*/
}
/******************************************************************************/
/******************************************************************************/
CRender* CRender::GetInstance()
{
return m_pcRender;
}
/******************************************************************************/
/******************************************************************************/
void CRender::SetSimulator(CSimulator* pc_simulator)
{
m_pcSimulator = pc_simulator;
}
/******************************************************************************/
/******************************************************************************/
void CRender::SetFrameRate(double f_frame_rate)
{
m_fFrameRate = f_frame_rate;
}
/******************************************************************************/
/******************************************************************************/
void CRender::DrawIndicator(float f_x, float f_y, float f_color_red, float f_color_green, float f_color_blue)
{
// Nothing;
}
/******************************************************************************/
/******************************************************************************/
void CRender::dumpCurrentFrame()
{
}
/******************************************************************************/
/******************************************************************************/
void CRender::SetProduceFrames(bool b)
{
m_bProduceFrames = b;
}
/******************************************************************************/
/******************************************************************************/