ar.h
Go to the documentation of this file.
1 /* ========================================================================
2 * PROJECT: ARToolKitPlus
3 * ========================================================================
4 * This work is based on the original ARToolKit developed by
5 * Hirokazu Kato
6 * Mark Billinghurst
7 * HITLab, University of Washington, Seattle
8 * http://www.hitl.washington.edu/artoolkit/
9 *
10 * Copyright of the derived and new portions of this work
11 * (C) 2006 Graz University of Technology
12 *
13 * This framework is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
17 *
18 * This framework is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this framework; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 *
27 * For further information please contact
28 * Dieter Schmalstieg
29 * <schmalstieg@icg.tu-graz.ac.at>
30 * Graz University of Technology,
31 * Institut for Computer Graphics and Vision,
32 * Inffeldgasse 16a, 8010 Graz, Austria.
33 * ========================================================================
34 ** @author Daniel Wagner
35 *
36 * $Id: ar.h 162 2006-04-19 21:28:10Z grabner $
37 * @file
38 * ======================================================================== */
39 
40 
41 #ifndef __ARTOOLKITAR_HEADERFILE__
42 #define __ARTOOLKITAR_HEADERFILE__
43 
44 
45 #include <stdio.h>
46 #ifndef __APPLE__
47 #include <malloc.h>
48 #else
49 #include <stdlib.h>
50 #endif
51 
52 #include <ARToolKitPlus/config.h>
53 #include <ARToolKitPlus/param.h>
54 
55 #define arMalloc(V,T,S) \
56 { if( ((V) = (T *)malloc( sizeof(T) * (S) )) == 0 ) \
57 {printf("malloc error!!\n"); exit(1);} }
58 
59 
60 namespace ARToolKitPlus {
61 
62 
63 typedef char ARInt8;
64 typedef short ARInt16;
65 typedef int ARInt32;
66 typedef unsigned char ARUint8;
67 typedef unsigned short ARUint16;
68 typedef unsigned int ARUint32;
69 
70 
71 typedef struct {
72  int area;
73  int id;
74  int dir;
76  ARFloat pos[2];
77  ARFloat line[4][3];
78  ARFloat vertex[4][2];
79 } ARMarkerInfo;
80 
81 
82 typedef struct {
83  int area;
84  ARFloat pos[2];
85  int coord_num;
86  int x_coord[AR_CHAIN_MAX];
87  int y_coord[AR_CHAIN_MAX];
88  int vertex[5];
90 
91 
92 typedef struct {
94  int count;
95 } arPrevInfo;
96 
97 
98 } // namespace ARToolKitPlus
99 
100 
101 #endif //__ARTOOLKITAR_HEADERFILE__
char ARInt8
Definition: ar.h:63
#define AR_CHAIN_MAX
Definition: config.h:173
unsigned short ARUint16
Definition: ar.h:67
ARMarkerInfo marker
Definition: ar.h:93
int ARInt32
Definition: ar.h:65
This file should only be compiled when using ARToolKitPlus as a DLL.
Definition: ar.h:60
unsigned int ARUint32
Definition: ar.h:68
unsigned char ARUint8
Definition: ar.h:66
float ARFloat
Definition: config.h:60
short ARInt16
Definition: ar.h:64


tuw_artoolkitplus
Author(s): Markus Bader
autogenerated on Sun Sep 4 2016 03:24:33