invisible

diff src/main.cc @ 0:80df8030105b

init kinect
author Eleni Maria Stea <eleni@mutantstargoat.com>
date Sat, 05 Oct 2013 16:03:08 +0300
parents
children b0b90ef993a0
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/main.cc	Sat Oct 05 16:03:08 2013 +0300
     1.3 @@ -0,0 +1,17 @@
     1.4 +#include <stdio.h>
     1.5 +
     1.6 +#include "kinect.h"
     1.7 +
     1.8 +freenect_context *kin_ctx;
     1.9 +freenect_device *kin_dev;
    1.10 +KinectParams kin_params;
    1.11 +
    1.12 +int main()
    1.13 +{
    1.14 +	printf("hi\n");
    1.15 +
    1.16 +	if(!init_kinect(&kin_ctx, &kin_dev, &kin_params))
    1.17 +		return 1;
    1.18 +
    1.19 +	stop_kinect(kin_ctx, kin_dev);
    1.20 +}