-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcontroller.cpp
56 lines (42 loc) · 1.36 KB
/
controller.cpp
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
#include "controller.h"
Controller::Controller()
{
character = nullptr;
cage = nullptr;
isCharacterLoaded = false;
isCageLoaded = false;
cageWeights = nullptr;
cageSkinning = nullptr;
nc = nullptr;
mvc = nullptr;
gc = nullptr;
areCageWeightsLoaded = false;
isCageSkinningInitialized = false;
isCageWeightsRenderActive = false;
isCageDeformerActive = false;
mainWindow = nullptr;
glCanvas = nullptr;
fbxImportPanel = nullptr;
characterPanel = nullptr;
cagePanel = nullptr;
animatorPanel = nullptr;
toolsPanel = nullptr;
interactionMode = CAMERA_INTERACTION;
}
Controller::~Controller()
{
/*delete trimesh;
delete cage;
delete cageWeights;
delete cageSkinning;
delete glCanvas;
delete fbxImportManager;
delete cageManager;*/
}
Controller* Controller::instance = 0;
Controller* Controller::get()
{
if (instance == 0)
instance = new Controller;
return instance;
}