Defines | Functions | Variables
collideTest.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/param.h>
#include <AR/ar.h>
#include <AR/video.h>
#include "object.h"
Include dependency graph for backup/examples/collide/collideTest.c:

Go to the source code of this file.

Defines

#define COLLIDE_DIST   30000.0

Functions

static int checkCollisions (ObjectData_T object0, ObjectData_T object1, float collide_dist)
static void cleanup (void)
static int draw (ObjectData_T *object, int objectnum)
static int draw_object (int obj_id, double gl_para[16], int collide_flag)
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

int count = 0
ARParam cparam
char * cparam_name = "Data/camera_para.dat"
char * model_name = "Data/object_data2"
ObjectData_Tobject
int objectnum
int thresh = 100
char * vconf = ""
int xsize
int ysize

Define Documentation

#define COLLIDE_DIST   30000.0

Definition at line 22 of file backup/examples/collide/collideTest.c.


Function Documentation

static int checkCollisions ( ObjectData_T  object0,
ObjectData_T  object1,
float  collide_dist 
) [static]

Definition at line 169 of file backup/examples/collide/collideTest.c.

static void cleanup ( void  ) [static]

Definition at line 221 of file backup/examples/collide/collideTest.c.

static int draw ( ObjectData_T object,
int  objectnum 
) [static]
static int draw_object ( int  obj_id,
double  gl_para[16],
int  collide_flag 
) [static]

Definition at line 254 of file backup/examples/collide/collideTest.c.

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

Definition at line 67 of file backup/examples/collide/collideTest.c.

int main ( int  argc,
char **  argv 
)

Definition at line 52 of file backup/examples/collide/collideTest.c.

static void mainLoop ( void  ) [static]

Definition at line 78 of file backup/examples/collide/collideTest.c.


Variable Documentation

int count = 0

Definition at line 31 of file backup/examples/collide/collideTest.c.

Definition at line 42 of file backup/examples/collide/collideTest.c.

char* cparam_name = "Data/camera_para.dat"

Definition at line 41 of file backup/examples/collide/collideTest.c.

char* model_name = "Data/object_data2"

Definition at line 25 of file backup/examples/collide/collideTest.c.

Definition at line 26 of file backup/examples/collide/collideTest.c.

int objectnum

Definition at line 27 of file backup/examples/collide/collideTest.c.

int thresh = 100

Definition at line 30 of file backup/examples/collide/collideTest.c.

char* vconf = ""

Definition at line 38 of file backup/examples/collide/collideTest.c.

int xsize

Definition at line 29 of file backup/examples/collide/collideTest.c.

int ysize

Definition at line 29 of file backup/examples/collide/collideTest.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:00