@@ -59,11 +59,11 @@ void LoadVertexMatrix()
59
59
float b = 3.3309495f ;
60
60
float cx = 340.0f ;
61
61
float cy = 240.0f ;
62
- float mat [4 ][ 4 ] = {
63
- { 1 /f , 0 , 0 , 0 } ,
64
- { 0 , -1 /f , 0 , 0 } ,
65
- { 0 , 0 , 0 , a } ,
66
- { - cx /f ,cy /f , -1 , b }
62
+ GLfloat mat [16 ] = {
63
+ 1 /f , 0 , 0 , 0 ,
64
+ 0 , -1 /f , 0 , 0 ,
65
+ 0 , 0 , 0 , a ,
66
+ - cx /f ,cy /f , -1 , b
67
67
};
68
68
glMultMatrixf (mat );
69
69
}
@@ -73,11 +73,11 @@ void LoadVertexMatrix()
73
73
// and some python code I haven't documented yet.
74
74
void LoadRGBMatrix ()
75
75
{
76
- float mat [4 ][ 4 ] = {
77
- { 5.34866271e+02 , 3.89654806e+00 , 0.00000000e+00 , 1.74704200e-02 } ,
78
- { -4.70724694e+00 , -5.28843603e+02 , 0.00000000e+00 , -1.22753400e-02 } ,
79
- { -3.19670762e+02 , -2.60999685e+02 , 0.00000000e+00 , -9.99772000e-01 } ,
80
- { -6.98445586e+00 , 3.31139785e+00 , 0.00000000e+00 , 1.09167360e-02 }
76
+ float mat [16 ] = {
77
+ 5.34866271e+02 , 3.89654806e+00 , 0.00000000e+00 , 1.74704200e-02 ,
78
+ -4.70724694e+00 , -5.28843603e+02 , 0.00000000e+00 , -1.22753400e-02 ,
79
+ -3.19670762e+02 , -2.60999685e+02 , 0.00000000e+00 , -9.99772000e-01 ,
80
+ -6.98445586e+00 , 3.31139785e+00 , 0.00000000e+00 , 1.09167360e-02
81
81
};
82
82
glMultMatrixf (mat );
83
83
}
@@ -108,9 +108,9 @@ void DrawGLScene()
108
108
{
109
109
short * depth = 0 ;
110
110
char * rgb = 0 ;
111
- int ts ;
112
- freenect_sync_get_depth (& depth , & ts );
113
- freenect_sync_get_rgb (& rgb , & ts );
111
+ uint32_t ts ;
112
+ freenect_sync_get_depth (( void * * ) & depth , & ts );
113
+ freenect_sync_get_rgb (( void * * ) & rgb , & ts );
114
114
115
115
static unsigned int indices [480 ][640 ];
116
116
static short xyz [480 ][640 ][3 ];
@@ -221,6 +221,6 @@ int main(int argc, char **argv)
221
221
222
222
glutMainLoop ();
223
223
224
- return NULL ;
224
+ return 0 ;
225
225
}
226
226
0 commit comments