#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "libfreenect.h"
#include <pthread.h>
#include <GL/glut.h>
#include <math.h>
Go to the source code of this file.
Functions | |
void | depth_cb (freenect_device *dev, void *v_depth, uint32_t timestamp) |
void | DrawGLScene () |
void * | freenect_threadfunc (void *arg) |
void * | gl_threadfunc (void *arg) |
void | InitGL (int Width, int Height) |
void | keyPressed (unsigned char key, int x, int y) |
int | main (int argc, char **argv) |
void | ReSizeGLScene (int Width, int Height) |
void | rgb_cb (freenect_device *dev, void *rgb, uint32_t timestamp) |
Variables | |
GLfloat | camera_angle = 0.0 |
int | camera_rotate = 0 |
freenect_video_format | current_format = FREENECT_VIDEO_RGB |
uint8_t * | depth_front |
uint8_t * | depth_mid |
volatile int | die = 0 |
freenect_context * | f_ctx |
freenect_device * | f_dev |
int | freenect_angle = 0 |
int | freenect_led |
pthread_t | freenect_thread |
int | g_argc |
char ** | g_argv |
pthread_mutex_t | gl_backbuf_mutex = PTHREAD_MUTEX_INITIALIZER |
GLuint | gl_depth_tex |
pthread_cond_t | gl_frame_cond = PTHREAD_COND_INITIALIZER |
GLuint | gl_rgb_tex |
int | got_depth = 0 |
int | got_rgb = 0 |
freenect_video_format | requested_format = FREENECT_VIDEO_RGB |
uint8_t * | rgb_back |
uint8_t * | rgb_front |
uint8_t * | rgb_mid |
uint16_t | t_gamma [2048] |
int | tilt_changed = 0 |
int | window |
void depth_cb | ( | freenect_device * | dev, |
void * | v_depth, | ||
uint32_t | timestamp | ||
) |
void rgb_cb | ( | freenect_device * | dev, |
void * | rgb, | ||
uint32_t | timestamp | ||
) |
freenect_video_format current_format = FREENECT_VIDEO_RGB |
freenect_context* f_ctx |
freenect_device* f_dev |
pthread_mutex_t gl_backbuf_mutex = PTHREAD_MUTEX_INITIALIZER |
freenect_video_format requested_format = FREENECT_VIDEO_RGB |