Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00116 #ifndef __gsub_lite_h__
00117 #define __gsub_lite_h__
00118
00119 #ifdef __cplusplus
00120 extern "C" {
00121 #endif
00122
00123
00124
00125
00126
00127 #ifdef __APPLE__
00128 # include <OpenGL/gl.h>
00129 #else
00130 # ifdef _WIN32
00131 # include <windows.h>
00132 # endif
00133 # include <GL/gl.h>
00134 #endif
00135 #include <AR/config.h>
00136 #include <AR/ar.h>
00137 #include <AR/param.h>
00138
00139
00140
00141
00142
00143
00144 #ifndef TRUE
00145 # define TRUE 1
00146 #endif
00147 #ifndef FALSE
00148 # define FALSE 0
00149 #endif
00150
00174 typedef struct _ARGL_CONTEXT_SETTINGS *ARGL_CONTEXT_SETTINGS_REF;
00175
00176
00177
00178
00179
00180 #if defined(__APPLE__)
00181 extern int arglAppleClientStorage;
00182 extern int arglAppleTextureRange;
00183 #endif // __APPLE__
00184
00185
00186
00187
00188
00210 ARGL_CONTEXT_SETTINGS_REF arglSetupForCurrentContext(void);
00211
00225 void arglCleanup(ARGL_CONTEXT_SETTINGS_REF contextSettings);
00226
00258 void arglCameraFrustum(const ARParam *cparam, const double focalmin, const double focalmax, GLdouble m_projection[16]);
00259
00267 void arglCameraFrustumRH(const ARParam *cparam, const double focalmin, const double focalmax, GLdouble m_projection[16]);
00268
00288 void arglCameraView(const double para[3][4], GLdouble m_modelview[16], const double scale);
00289
00297 void arglCameraViewRH(const double para[3][4], GLdouble m_modelview[16], const double scale);
00298
00350 void arglDispImage(ARUint8 *image, const ARParam *cparam, const double zoom, ARGL_CONTEXT_SETTINGS_REF contextSettings);
00351
00372 void arglDispImageStateful(ARUint8 *image, const ARParam *cparam, const double zoom, ARGL_CONTEXT_SETTINGS_REF contextSettings);
00373
00393 int arglDistortionCompensationSet(ARGL_CONTEXT_SETTINGS_REF contextSettings, int enable);
00394
00409 int arglDistortionCompensationGet(ARGL_CONTEXT_SETTINGS_REF contextSettings, int *enable);
00410
00430 int arglPixelFormatSet(ARGL_CONTEXT_SETTINGS_REF contextSettings, AR_PIXEL_FORMAT format);
00431
00446 int arglPixelFormatGet(ARGL_CONTEXT_SETTINGS_REF contextSettings, AR_PIXEL_FORMAT *format, int *size);
00447
00467 void arglDrawModeSet(ARGL_CONTEXT_SETTINGS_REF contextSettings, const int mode);
00468
00478 int arglDrawModeGet(ARGL_CONTEXT_SETTINGS_REF contextSettings);
00479
00498 void arglTexmapModeSet(ARGL_CONTEXT_SETTINGS_REF contextSettings, const int mode);
00499
00508 int arglTexmapModeGet(ARGL_CONTEXT_SETTINGS_REF contextSettings);
00509
00525 void arglTexRectangleSet(ARGL_CONTEXT_SETTINGS_REF contextSettings, const int state);
00526
00535 int arglTexRectangleGet(ARGL_CONTEXT_SETTINGS_REF contextSettings);
00536
00537 #ifdef __cplusplus
00538 }
00539 #endif
00540
00545 #endif