00001 //=========================================================================== 00002 /* 00003 This file is part of the CHAI 3D visualization and haptics libraries. 00004 Copyright (C) 2003-2009 by CHAI 3D. All rights reserved. 00005 00006 This library is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License("GPL") version 2 00008 as published by the Free Software Foundation. 00009 00010 For using the CHAI 3D libraries with software that can not be combined 00011 with the GNU GPL, and for taking advantage of the additional benefits 00012 of our support services, please contact CHAI 3D about acquiring a 00013 Professional Edition License. 00014 00015 \author <http://www.chai3d.org> 00016 \author Francois Conti 00017 \version 2.0.0 $Rev: 258 $ 00018 */ 00019 //=========================================================================== 00020 00021 //--------------------------------------------------------------------------- 00022 #ifndef CGlobalsH 00023 #define CGlobalsH 00024 //--------------------------------------------------------------------------- 00025 00026 //=========================================================================== 00035 //=========================================================================== 00036 00037 //--------------------------------------------------------------------------- 00038 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00039 //--------------------------------------------------------------------------- 00040 00041 //=========================================================================== 00042 // WIN32 / WIN64 OS 00043 //=========================================================================== 00044 #if defined(_WIN32) 00045 //-------------------------------------------------------------------- 00046 // GENERAL 00047 //-------------------------------------------------------------------- 00048 // general windows 00049 #include "windows.h" 00050 00051 // This needs to happen before GLUT gets included 00052 #include <stdlib.h> 00053 00054 //-------------------------------------------------------------------- 00055 // HAPTIC DEVICES 00056 //-------------------------------------------------------------------- 00057 #define _ENABLE_CUSTOM_DEVICE_SUPPORT 00058 #define _ENABLE_DELTA_DEVICE_SUPPORT 00059 #define _ENABLE_FALCON_DEVICE_SUPPORT 00060 #define _ENABLE_MPB_DEVICE_SUPPORT 00061 #define _ENABLE_PHANTOM_DEVICE_SUPPORT 00062 #define _ENABLE_SENSORAY626_DEVICE_SUPPORT 00063 #define _ENABLE_SERVOTOGO_DEVICE_SUPPORT 00064 #define _ENABLE_VIRTUAL_DEVICE_SUPPORT 00065 00066 00067 //-------------------------------------------------------------------- 00068 // BBCP - BORLAND BUILDER 00069 //-------------------------------------------------------------------- 00070 #if defined(_BBCP) 00071 00072 // printf 00073 #define CHAI_DEBUG_PRINT printf 00074 00075 // open gl 00076 #include "GL/glut.h" 00077 #include "GL/gl.h" 00078 #endif 00079 00080 //-------------------------------------------------------------------- 00081 // MSVC - MICROSOFT VISUAL STUDIO 00082 //-------------------------------------------------------------------- 00083 #if defined(_MSVC) 00084 00085 // turn off annoying compiler warnings 00086 #pragma warning(disable: 4267) 00087 #pragma warning(disable: 4305) 00088 #pragma warning(disable: 4786) 00089 #pragma warning(disable: 4800) 00090 #pragma warning(disable: 4996) 00091 00092 // printf 00093 #include <conio.h> 00094 #define CHAI_DEBUG_PRINT _cprintf 00095 00096 // open gl 00097 #include "gl/glut.h" 00098 00099 #endif 00100 00101 #endif 00102 00103 00104 //=========================================================================== 00105 // LINUX OS 00106 //=========================================================================== 00107 #if defined(_LINUX) 00108 00109 //-------------------------------------------------------------------- 00110 // GENERAL 00111 //-------------------------------------------------------------------- 00112 // printf 00113 #define CHAI_DEBUG_PRINT printf 00114 00115 // standard libraries 00116 #include <stdlib.h> 00117 #include <string.h> 00118 00119 // open gl 00120 #include "GL/gl.h" 00121 #include "GL/glut.h" 00122 00123 // threads 00124 #include "pthread.h" 00125 00126 //-------------------------------------------------------------------- 00127 // HAPTIC DEVICES 00128 //-------------------------------------------------------------------- 00129 #define _ENABLE_CUSTOM_DEVICE_SUPPORT 00130 #define _ENABLE_DELTA_DEVICE_SUPPORT 00131 00132 // disabled devices 00133 // #define _ENABLE_PHANTOM_DEVICE_SUPPORT 00134 00135 #endif 00136 00137 //=========================================================================== 00138 // MAC OS 00139 //=========================================================================== 00140 #if defined(_MACOSX) 00141 00142 //-------------------------------------------------------------------- 00143 // GENERAL 00144 //-------------------------------------------------------------------- 00145 // printf 00146 #define CHAI_DEBUG_PRINT printf 00147 00148 // standard libraries 00149 #include <stdlib.h> 00150 #include <string.h> 00151 00152 // open gl 00153 #include "GLUT/glut.h" 00154 00155 // threads 00156 #include "pthread.h" 00157 00158 //-------------------------------------------------------------------- 00159 // HAPTIC DEVICES 00160 //-------------------------------------------------------------------- 00161 #define _ENABLE_CUSTOM_DEVICE_SUPPORT 00162 #define _ENABLE_DELTA_DEVICE_SUPPORT 00163 00164 #endif 00165 00166 00167 //=========================================================================== 00168 // GENERAL 00169 //=========================================================================== 00171 #define CHAI_SIZE_PATH 255 00172 00174 #define CHAI_SIZE_NAME 64 00175 00177 #define CHAI_DBL_MAX 9999999 00178 00179 //--------------------------------------------------------------------------- 00180 #endif // DOXYGEN_SHOULD_SKIP_THIS 00181 //--------------------------------------------------------------------------- 00182 #endif 00183 //--------------------------------------------------------------------------- 00184