-
Notifications
You must be signed in to change notification settings - Fork 1
/
KLApplication.h
49 lines (38 loc) · 1.03 KB
/
KLApplication.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
#ifndef KLAPPLICATION_H
#define KLAPPLICATION_H
#include "KAPI.h"
#include "KHandDetector.h"
#include "LListener.h"
#include "LProcessor.h"
#include "KLCloud.h"
class KLApplication {
public:
KLApplication();
~KLApplication();
static KLApplication* getInstance(){
if(!s_instance){
s_instance = new KLApplication();
}
return s_instance;
}
void run();
private:
static KLApplication* s_instance;
// Variables about Kinect
Kinect* m_pKinect;
bool m_kinectInitialized;
BYTE** m_ppColorBuffer;
BYTE** m_ppDepthBuffer;
NUI_SKELETON_FRAME** m_ppSkeletonFrame;
LONG** m_ppColorCoordinates;
// Variables about Kinect Hand Detector
KHandDetector* m_pKHandDetector;
// Variables about Leap Motion Listener
MyListener* m_pListener;
// Variables about Leap Motion Processor
LProcessor* m_pLProcessor;
// Variables about Kinect Leap Motion Cloud
KLCloud* m_pKLCloud;
int m_currentState;
};
#endif