gsub.h
Go to the documentation of this file.
00001 /*  --------------------------------------------------------------------------
00002 *   Copyright (C) 2004 Hitlab NZ.
00003 *   The distribution policy is describe on the Copyright.txt furnish 
00004 *    with this library.
00005 *   -------------------------------------------------------------------------*/
00022 /*  --------------------------------------------------------------------------
00023 *   History : 
00024 *   Rev         Date            Who             Changes
00025 *
00026 *----------------------------------------------------------------------------*/
00027 
00028 #ifndef AR_GSUB_H
00029 #define AR_GSUB_H
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 // ============================================================================
00035 //      Public includes.
00036 // ============================================================================
00037 
00038 #include <AR/config.h>
00039 #include <AR/param.h>
00040 #include <AR/ar.h>
00041 
00042         // ============================================================================
00043 //      Public types and defines.
00044 // ============================================================================
00045 
00046 // ============================================================================
00047 //      Public globals.
00048 // ============================================================================
00049 
00061 extern int  argDrawMode;
00062 
00073 extern int  argTexmapMode;
00074 
00075 // ============================================================================
00076 //      Public functions.
00077 // ============================================================================
00078 
00091 void argInit( ARParam *cparam, double zoom, int fullFlag, int xwin, int ywin, int hmd_flag );
00092 
00102 void argLoadHMDparam( ARParam *lparam, ARParam *rparam );
00103 
00112 void argCleanup( void );
00113 
00121 void argSwapBuffers( void );
00122 
00135 void argMainLoop( void (*mouseFunc)(int button, int state, int x, int y),
00136                   void (*keyFunc)(unsigned char key, int x, int y),
00137                   void (*mainFunc)(void) );
00138 
00148 void argDrawMode2D( void );
00149 
00155 void argDraw2dLeft( void );
00156 
00162 void argDraw2dRight( void );
00163 
00170 void argDrawMode3D( void );
00171 
00179 void argDraw3dLeft( void );
00180 
00188 void argDraw3dRight( void );
00189 
00198 void argDraw3dCamera( int xwin, int ywin );
00199 
00200 
00209 void argConvGlpara( double para[3][4], double gl_para[16] );
00210 
00225 void argConvGLcpara( ARParam *param, double gnear, double gfar, double m[16] );
00226 
00244 void argDispImage( ARUint8 *image, int xwin, int ywin );
00245 
00255 void argDispHalfImage( ARUint8 *image, int xwin, int ywin );
00256 
00268 void argDrawSquare( double vertex[4][2], int xwin, int ywin );
00269 
00283 void argLineSeg( double x1, double y1, double x2, double y2, int xwin, int ywin );
00284 
00294 void argLineSegHMD( double x1, double y1, double x2, double y2 );
00295 
00311 void argInqSetting( int *hmdMode, 
00312                     int *gMiniXnum2, int *gMiniYnum2,
00313                     void (**mouseFunc)(int button, int state, int x, int y),
00314                     void (**keyFunc)(unsigned char key, int x, int y),
00315                     void (**mainFunc)(void) );
00316 
00317 /*-------------------------*/
00318 
00319 void argsInit( ARSParam *scparam, double zoom, int twinFlag, int fullFlag, int xwin, int ywin );
00320 void argsDraw3dCamera( int xwin, int ywin, int LorR, int stencil_flag );
00321 void argsConvGLcpara( ARSParam *sparam, double gnear, double gfar, double mL[16], double mR[16] );
00322 void argsDispImage( ARUint8 *image, int LorR, int xwin, int ywin );
00323 void argsDispHalfImage( ARUint8 *image, int LorR, int xwin, int ywin );
00324 void argsLineSeg( double x1, double y1, double x2, double y2, int xwin, int ywin, int LorR );
00325 void argsDrawSquare( double  vertex[4][2], int xwin, int ywin, int LorR );
00326 
00327 
00328 #ifdef __cplusplus
00329 }
00330 #endif
00331 #endif
 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