invisible
view src/frame.h @ 25:96b022f1210e
'w' to switch to wireframe
author | Eleni Maria Stea <eleni@mutantstargoat.com> |
---|---|
date | Sun, 17 Nov 2013 12:46:45 +0200 |
parents | 700127288dc5 |
children |
line source
1 #ifndef FRAME_H_
2 #define FRAME_H_
4 #include <libfreenect.h>
5 #include <cv.h>
7 struct Frame {
8 cv::Mat depth_buf;
9 cv::Mat video_buf;
11 unsigned int depth_tex;
12 unsigned int video_tex;
14 Frame();
15 ~Frame(); //TODO delete Mat
17 void tex_setup();
18 void process();
20 void draw();
21 void draw_video();
22 void draw_depth();
23 };
25 void video_cb(freenect_device *kin_dev, void *video, uint32_t time);
26 void depth_cb(freenect_device *kin_dev, void *depth, uint32_t time);
28 bool save_video_ppm(void *video, int w, int h);
29 bool save_depth_ppm(void *depth, int w, int h);
31 #endif // FRAME_H_