Defines | Functions | Variables
paddleDemo.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <GL/glut.h>
#include <AR/gsub.h>
#include <AR/video.h>
#include <AR/param.h>
#include <AR/matrix.h>
#include <AR/ar.h>
#include <AR/arMulti.h>
#include "paddle.h"
#include "command_sub.h"
Include dependency graph for examples/paddleDemo/paddleDemo.c:

Go to the source code of this file.

Defines

#define TARGET_NUM   5

Functions

static void cleanup (void)
static int draw_paddle (ARPaddleInfo *paddleInfo, PaddleItemInfo *myPaddleItem)
static int drawGroundGrid (double trans[3][4], int divisions, float x, float y, float height)
static void drawItems (double trans[3][4], ItemList *list)
static void findPaddlePosition (float curPaddlePos[], double card_trans[3][4], double base_trans[3][4])
static void init (void)
static void keyEvent (unsigned char key, int x, int y)
int main (int argc, char **argv)
static void mainLoop (void)

Variables

GLfloat ambi [] = {0.1, 0.1, 0.1, 0.1}
ARMultiMarkerInfoTconfig
char * config_name = "Data/multi/marker.dat"
int count = 0
ARParam cparam
char * cparam_name = "Data/camera_para.dat"
GLfloat light_position [] = {100.0,-200.0,200.0,0.0}
GLfloat lightZeroColor [] = {0.9, 0.9, 0.9, 0.1}
int marker_flag [AR_SQUARE_MAX]
ItemList myListItem
PaddleItemInfo myPaddleItem
char * paddle_name = "Data/paddle_data"
ARPaddleInfopaddleInfo
int thresh = 100
char * vconf = ""
int xsize
int ysize

Define Documentation

#define TARGET_NUM   5

Definition at line 29 of file examples/paddleDemo/paddleDemo.c.


Function Documentation

static void cleanup ( void  ) [static]

Definition at line 289 of file examples/paddleDemo/paddleDemo.c.

int draw_paddle ( ARPaddleInfo paddleInfo,
PaddleItemInfo myPaddleItem 
) [static]

Definition at line 348 of file examples/paddleDemo/paddleDemo.c.

int drawGroundGrid ( double  trans[3][4],
int  divisions,
float  x,
float  y,
float  height 
) [static]

Definition at line 476 of file examples/paddleDemo/paddleDemo.c.

void drawItems ( double  trans[3][4],
ItemList list 
) [static]

Definition at line 426 of file examples/paddleDemo/paddleDemo.c.

static void findPaddlePosition ( float  curPaddlePos[],
double  card_trans[3][4],
double  base_trans[3][4] 
) [static]

Definition at line 297 of file examples/paddleDemo/paddleDemo.c.

static void init ( void  ) [static]
static void keyEvent ( unsigned char  key,
int  x,
int  y 
) [static]

Definition at line 84 of file examples/paddleDemo/paddleDemo.c.

int main ( int  argc,
char **  argv 
)

Definition at line 70 of file examples/paddleDemo/paddleDemo.c.

static void mainLoop ( void  ) [static]

Definition at line 116 of file examples/paddleDemo/paddleDemo.c.


Variable Documentation

GLfloat ambi[] = {0.1, 0.1, 0.1, 0.1}

Definition at line 53 of file examples/paddleDemo/paddleDemo.c.

Definition at line 45 of file examples/paddleDemo/paddleDemo.c.

char* config_name = "Data/multi/marker.dat"

Definition at line 44 of file examples/paddleDemo/paddleDemo.c.

int count = 0

Definition at line 39 of file examples/paddleDemo/paddleDemo.c.

Definition at line 42 of file examples/paddleDemo/paddleDemo.c.

char* cparam_name = "Data/camera_para.dat"

Definition at line 41 of file examples/paddleDemo/paddleDemo.c.

GLfloat light_position[] = {100.0,-200.0,200.0,0.0}

Definition at line 52 of file examples/paddleDemo/paddleDemo.c.

GLfloat lightZeroColor[] = {0.9, 0.9, 0.9, 0.1}

Definition at line 54 of file examples/paddleDemo/paddleDemo.c.

Definition at line 48 of file examples/paddleDemo/paddleDemo.c.

Definition at line 35 of file examples/paddleDemo/paddleDemo.c.

Definition at line 34 of file examples/paddleDemo/paddleDemo.c.

char* paddle_name = "Data/paddle_data"

Definition at line 50 of file examples/paddleDemo/paddleDemo.c.

Definition at line 49 of file examples/paddleDemo/paddleDemo.c.

int thresh = 100

Definition at line 38 of file examples/paddleDemo/paddleDemo.c.

char* vconf = ""

Definition at line 26 of file examples/paddleDemo/paddleDemo.c.

int xsize

Definition at line 37 of file examples/paddleDemo/paddleDemo.c.

int ysize

Definition at line 37 of file examples/paddleDemo/paddleDemo.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


ar_recog
Author(s): Graylin Trevor Jay and Christopher Crick
autogenerated on Fri Jan 25 2013 12:15:01