forked from abertay-cmp404/virtual_vita
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVirtualSonySample.h
More file actions
105 lines (74 loc) · 1.06 KB
/
Copy pathVirtualSonySample.h
File metadata and controls
105 lines (74 loc) · 1.06 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#pragma once
struct MarkerData
{
bool lost;
int target;
};
struct CameraBuffer
{
CameraBuffer* prev;
CameraBuffer* next;
void* buf;
// SceUID uID;
// SceCameraRead read;
// SceGxmTexture tex_yuv;
int32_t volatile ref;
// SceMotionSensorState motion[SCE_MOTION_MAX_NUM_STATES];
};
struct AppData
{
AppData* prev;
AppData* next;
unsigned int ref;
CameraBuffer* currentImage;
struct
{
gef::Matrix44 viewMat;
gef::Matrix44 projMat;
}world;
struct
{
gef::Matrix44 transform[6];
}transforms;
struct
{
MarkerData marker[6];
} markers;
};
void sampleInitialize ()
{
}
void smartInitialize ( void )
{
}
AppData* sampleUpdateBegin ()
{
AppData* dat = new AppData;
dat->currentImage = new CameraBuffer;
return dat;
}
void smartTrackingReset ()
{
}
void sampleUpdateEnd ( AppData* dat )
{
delete dat->currentImage;
delete dat;
}
void smartRelease ( void )
{
}
void sampleRelease ()
{
}
void smartUpdate ( CameraBuffer* image )
{
}
AppData* sampleRenderBegin ()
{
AppData* dat = nullptr;
return dat;
}
void sampleRenderEnd ()
{
}