TAPs 0.7.7.3
TAPsDef.hpp
Go to the documentation of this file.
00001 /******************************************************************************
00002 TAPsDef.hpp
00003 
00004 A header file for including standard libraries.
00005 
00006 SUKITTI PUNAK   (09/16/2004)
00007 UPDATE          (08/18/2010)
00008 ******************************************************************************/
00009 
00019 #ifndef TAPs_DEF_HPP
00020 #define TAPs_DEF_HPP
00021 
00022 // List of namespaces
00023 #include "TAPsListOfNamespaces.hpp"
00024 
00025 //=============================================================================
00026 // Preprocessing
00027 //-----------------------------------------------------------------------------
00028 // disable: "conversion from 'double' to 'float', possible loss of data
00029 //#pragma warning (disable : 4244)
00030 // disable: "truncation from 'double' to 'float'
00031 //#pragma warning (disable : 4305)
00032 //-----------------------------------------------------------------------------
00033 //#define TAPs_ENABLE_DEBUG // for debugging message, etc.
00034 //#define TAPs_USE_EXPORT   // for separation of declarations and definitions
00035 /*
00036 // Use export if TAPs_USE_EXPORT is defined
00037 #if defined( TAPs_USE_EXPORT )
00038     #define EXPORT export
00039 #else
00040     #define EXPORT
00041 #endif
00042 */
00043 
00044 //=============================================================================
00045 // For the Data Type represents Real Number
00046 //-----------------------------------------------------------------------------
00047 //#define TAPs_USE_FLOAT            // Real is float, else Real is double
00048 //#define TAPs_USE_DOUBLE           // Real is double, else Real is double
00049 //#define TAPs_USE_LONG_DOUBLE  // Real is long double, else Real is double
00050 #if defined( TAPs_USE_FLOAT )
00051     typedef float Real;
00052 #elif defined( TAPs_USE_DOUBLE )
00053     typedef double Real;
00054 #elif defined( TAPs_USE_LONG_DOUBLE )
00055     typedef long double Real;
00056 #else
00057     typedef double Real;
00058     #define TAPs_USE_DOUBLE
00059 #endif
00060 
00061 //=============================================================================
00062 // For Debugging
00063 //-----------------------------------------------------------------------------
00064 //#define   TAPs_DEBUG_MODE     //! For showing TAPs debug messages
00065 //#define   TAPs_ENABLE_DEBUG   //! An alias for TAPs_DEBUG_MODE
00066 //---------------------------------------------------------
00067 #ifdef  TAPs_DEBUG_MODE
00068     #ifndef TAPs_ENABLE_DEBUG
00069     #define TAPs_ENABLE_DEBUG
00070     #endif
00071 
00073 
00074     // TAPs Debug Msges in more detail
00075     //#define   TAPs_DEBUG_MODE_DETAIL_1
00076     // TAPs Debug Msges in much more detail
00077     //#define   TAPs_DEBUG_MODE_DETAIL_2
00078     // TAPs Debug Msges in the most detail
00079     //#define   TAPs_DEBUG_MODE_DETAIL_3
00080     // TAPs Debug Msges in the most most detail
00081     //#define   TAPs_DEBUG_MODE_DETAIL_4
00082     // TAPs Debug Msges in the insane detail                                        
00083     //#define   TAPs_DEBUG_MODE_DETAIL_5
00084 
00085 #endif//TAPs_DEBUG_MODE
00086 
00087 #ifdef  TAPs_ENABLE_DEBUG
00088     #ifndef TAPs_DEBUG_MODE
00089     #define TAPs_DEBUG_MODE
00090     #endif
00091 #endif//TAPs_ENABLE_DEBUG
00092 //---------------------------------------------------------
00093 #ifdef  TAPs_DEBUG_MODE
00094     #define TAPsDebugMessage( x )   std::cout << "TAPs Debug: " << x;
00095 #else //TAPs_DEBUG_MODE
00096     #define TAPsDebugMessage( x )   ;
00097 #endif//TAPs_DEBUG_MODE
00098 //-----------------------------------------------------------------------------
00099 //=============================================================================
00100 
00101 //=============================================================================
00102 // For Maximizing Speed (less Graphics)
00103 //-----------------------------------------------------------------------------
00104 //#define TAPs_MAXIMIZE_SPEED   //! For Maximizing Speed (less Graphics)
00105 //---------------------------------------------------------
00106 #ifdef  TAPs_MAXIMIZE_SPEED
00107 #endif//TAPs_MAXIMIZE_SPEED
00108 //-----------------------------------------------------------------------------
00109 //=============================================================================
00110 
00111 //=============================================================================
00112 // OpenGL Enable Face's Vertex Color (either 3 or 4 components for RGB(A))
00113 //-----------------------------------------------------------------------------
00117 //#define TAPs_ENABLE_FACE_VERTEX_COLOR
00118 //---------------------------------------------------------
00119 #ifdef  TAPs_ENABLE_FACE_VERTEX_COLOR
00120 #endif//TAPs_ENABLE_FACE_VERTEX_COLOR
00121 //-----------------------------------------------------------------------------
00122 //=============================================================================
00123 
00124 //=============================================================================
00125 // OpenGL Enable Face's Vertex Texture Coordinates (1, 2, or 3 components for s, t, and r)
00126 //-----------------------------------------------------------------------------
00130 //#define TAPs_ENABLE_FACE_VERTEX_TEXTURE_COORDINATES
00131 //---------------------------------------------------------
00132 #ifdef  TAPs_ENABLE_FACE_VERTEX_TEXTURE_COORDINATES
00133 
00136     #define TAPs_USE_WXWIDGETS
00137 #endif//TAPs_ENABLE_FACE_VERTEX_TEXTURE_COORDINATES
00138 //-----------------------------------------------------------------------------
00139 //=============================================================================
00140 
00141 //=============================================================================
00142 // For Reading and Conforming to ASE (ASCII Scene Exporter) by 3DS Max
00143 //-----------------------------------------------------------------------------
00149 //#define TAPs_SUPPORT_ASE_FORMAT
00150 //---------------------------------------------------------
00151 #ifdef  TAPs_SUPPORT_ASE_FORMAT
00152 #endif//TAPs_SUPPORT_ASE_FORMAT
00153 //-----------------------------------------------------------------------------
00154 //=============================================================================
00155 
00156 //=============================================================================
00157 // For Pooling Vertex and Other Data, such as Normal, into Arrays, 
00158 // i.e., Creating (OpenGL) Arrays or (DirectX) Buffers 
00159 // and Textures for (NVIDIA) CUDA
00160 //-----------------------------------------------------------------------------
00161 //#define TAPs_USE_DATA_POOL        //! For pooling data into arrays
00162 //---------------------------------------------------------
00163 #ifdef  TAPs_USE_DATA_POOL
00164 #endif//TAPs_USE_DATA_POOL
00165 //-----------------------------------------------------------------------------
00166 //=============================================================================
00167 
00168 //=============================================================================
00169 // For using GLSL
00170 //-----------------------------------------------------------------------------
00171 //#define TAPs_USE_GLSL     //! For using GLSL
00172 //---------------------------------------------------------
00173 #ifdef  TAPs_USE_GLSL
00174 #endif//TAPs_USE_GLSL
00175 //-----------------------------------------------------------------------------
00176 //=============================================================================
00177 
00178 //=============================================================================
00179 // For using NVIDIA Cuda
00180 //-----------------------------------------------------------------------------
00181 //#define TAPs_USE_CUDA     //! For using NVIDIA Cuda
00182 //---------------------------------------------------------
00183 #ifdef  TAPs_USE_CUDA
00184 #endif//TAPs_USE_CUDA
00185 //-----------------------------------------------------------------------------
00186 //=============================================================================
00187 
00188 //=============================================================================
00189 // For Collecting Data
00190 //-----------------------------------------------------------------------------
00191 //#define TAPs_COLLECT_DATA     //! For collecting data
00192 //---------------------------------------------------------
00193 #ifdef  TAPs_COLLECT_DATA
00194 #endif//TAPs_COLLECT_DATA
00195 //-----------------------------------------------------------------------------
00196 //=============================================================================
00197     
00198 //=============================================================================
00199 // For Using wxWidgets
00200 //-----------------------------------------------------------------------------
00201 //#define TAPs_USE_WXWIDGETS    //! For any wxWidgets API
00202 //---------------------------------------------------------
00203 #ifdef  TAPs_USE_WXWIDGETS
00204 #endif//TAPs_USE_WXWIDGETS
00205 //-----------------------------------------------------------------------------
00206 //=============================================================================
00207 
00208 //-----------------------------------------------------------------------------
00209 //=============================================================================
00210 #endif
00211 //34567890123456789012345678901234567890123456789012345678901234567890123456789
00212 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines