forked from alpet83/Xray-Research
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FDemoRecord.h
61 lines (46 loc) · 1.72 KB
/
FDemoRecord.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// CDemoRecord.h: interface for the CDemoRecord class.
//
#if !defined(AFX_FDEMORECORD_H__D7638760_FB61_11D3_B4E3_4854E82A090D__INCLUDED_)
#define AFX_FDEMORECORD_H__D7638760_FB61_11D3_B4E3_4854E82A090D__INCLUDED_
#pragma once
#include "iinputreceiver.h"
#include "effector.h"
class ENGINE_API CDemoRecord :
public CEffector,
public IInputReceiver
{
private:
int iCount;
IWriter* file;
Fvector m_HPB;
Fvector m_Position;
Fmatrix m_Camera;
Fvector m_vT;
Fvector m_vR;
Fvector m_vVelocity;
Fvector m_vAngularVelocity;
BOOL m_bMakeCubeMap;
BOOL m_bMakeScreenshot;
float m_fSpeed0;
float m_fSpeed1;
float m_fSpeed2;
float m_fSpeed3;
float m_fAngSpeed0;
float m_fAngSpeed1;
float m_fAngSpeed2;
float m_fAngSpeed3;
void MakeCubeMapFace (Fvector &D, Fvector &N);
void MakeScreenshotFace ();
void RecordKey ();
void MakeCubemap ();
void MakeScreenshot ();
public:
CDemoRecord (const char *name, float life_time=60*60*1000);
virtual ~CDemoRecord();
virtual void IR_OnKeyboardPress (int dik);
virtual void IR_OnKeyboardHold (int dik);
virtual void IR_OnMouseMove (int dx, int dy);
virtual void IR_OnMouseHold (int btn);
virtual BOOL Process (Fvector &p, Fvector &d, Fvector &n, float& fFov, float& fFar, float& fAspect);
};
#endif // !defined(AFX_FDEMORECORD_H__D7638760_FB61_11D3_B4E3_4854E82A090D__INCLUDED_)