Functions | Variables
glview.c File Reference
#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>
Include dependency graph for glview.c:

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_tdepth_front
 
uint8_tdepth_mid
 
volatile int die = 0
 
freenect_contextf_ctx
 
freenect_devicef_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_trgb_back
 
uint8_trgb_front
 
uint8_trgb_mid
 
uint16_t t_gamma [2048]
 
int tilt_changed = 0
 
int window
 

Function Documentation

void depth_cb ( freenect_device dev,
void *  v_depth,
uint32_t  timestamp 
)

Definition at line 335 of file glview.c.

void DrawGLScene ( )

Definition at line 78 of file glview.c.

void* freenect_threadfunc ( void *  arg)

Definition at line 402 of file glview.c.

void* gl_threadfunc ( void *  arg)

Definition at line 309 of file glview.c.

void InitGL ( int  Width,
int  Height 
)

Definition at line 283 of file glview.c.

void keyPressed ( unsigned char  key,
int  x,
int  y 
)

Definition at line 173 of file glview.c.

int main ( int  argc,
char **  argv 
)

Definition at line 455 of file glview.c.

void ReSizeGLScene ( int  Width,
int  Height 
)

Definition at line 272 of file glview.c.

void rgb_cb ( freenect_device dev,
void *  rgb,
uint32_t  timestamp 
)

Definition at line 387 of file glview.c.

Variable Documentation

GLfloat camera_angle = 0.0

Definition at line 62 of file glview.c.

int camera_rotate = 0

Definition at line 63 of file glview.c.

Definition at line 72 of file glview.c.

uint8_t * depth_front

Definition at line 57 of file glview.c.

uint8_t* depth_mid

Definition at line 57 of file glview.c.

volatile int die = 0

Definition at line 45 of file glview.c.

Definition at line 66 of file glview.c.

Definition at line 67 of file glview.c.

int freenect_angle = 0

Definition at line 68 of file glview.c.

int freenect_led

Definition at line 69 of file glview.c.

pthread_t freenect_thread

Definition at line 44 of file glview.c.

int g_argc

Definition at line 47 of file glview.c.

char** g_argv

Definition at line 48 of file glview.c.

pthread_mutex_t gl_backbuf_mutex = PTHREAD_MUTEX_INITIALIZER

Definition at line 52 of file glview.c.

GLuint gl_depth_tex

Definition at line 60 of file glview.c.

pthread_cond_t gl_frame_cond = PTHREAD_COND_INITIALIZER

Definition at line 74 of file glview.c.

GLuint gl_rgb_tex

Definition at line 61 of file glview.c.

int got_depth = 0

Definition at line 76 of file glview.c.

int got_rgb = 0

Definition at line 75 of file glview.c.

Definition at line 71 of file glview.c.

uint8_t* rgb_back

Definition at line 58 of file glview.c.

uint8_t * rgb_front

Definition at line 58 of file glview.c.

uint8_t * rgb_mid

Definition at line 58 of file glview.c.

uint16_t t_gamma[2048]

Definition at line 333 of file glview.c.

int tilt_changed = 0

Definition at line 64 of file glview.c.

int window

Definition at line 50 of file glview.c.



libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Thu Jun 6 2019 19:25:39