#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "libfreenect.h"
#include <pthread.h>
#include <math.h>
#include <GL/glut.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 | idle () |
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 | |
uint8_t * | depth_front |
uint8_t * | depth_mid |
volatile int | die = 0 |
freenect_context * | f_ctx |
freenect_device * | f_dev |
double | fps = 0 |
int | frame = 0 |
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 |
int | my_ftime = 0 |
uint8_t * | rgb_back |
uint8_t * | rgb_front |
uint8_t * | rgb_mid |
uint16_t | t_gamma [10000] |
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_context* f_ctx |
freenect_device* f_dev |
pthread_mutex_t gl_backbuf_mutex = PTHREAD_MUTEX_INITIALIZER |