# Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics

[Home] [Tutorials] [All Classes] [Grouped Classes]

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

# D:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlCore/config.hpp

Go to the documentation of this file.

    00001 /**************************************************************************************/
    00002 /*                                                                                    */
    00003 /*  Visualization Library                                                             */
    00004 /*  http://www.visualizationlibrary.com                                               */
    00005 /*                                                                                    */
    00006 /*  Copyright (c) 2005-2010, Michele Bosi                                             */
    00007 /*  All rights reserved.                                                              */
    00008 /*                                                                                    */
    00009 /*  Redistribution and use in source and binary forms, with or without modification,  */
    00010 /*  are permitted provided that the following conditions are met:                     */
    00011 /*                                                                                    */
    00012 /*  - Redistributions of source code must retain the above copyright notice, this     */
    00013 /*  list of conditions and the following disclaimer.                                  */
    00014 /*                                                                                    */
    00015 /*  - Redistributions in binary form must reproduce the above copyright notice, this  */
    00016 /*  list of conditions and the following disclaimer in the documentation and/or       */
    00017 /*  other materials provided with the distribution.                                   */
    00018 /*                                                                                    */
    00019 /*  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND   */
    00020 /*  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED     */
    00021 /*  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE            */
    00022 /*  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR  */
    00023 /*  ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES    */
    00024 /*  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;      */
    00025 /*  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON    */
    00026 /*  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT           */
    00027 /*  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS     */
    00028 /*  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.                      */
    00029 /*                                                                                    */
    00030 /**************************************************************************************/
    00031
    00033 // Visualization Library Configuration File
    00035
    00041 #ifndef VISUALIZATION_LIBRARY_CONFIG_INCLUDE_ONCE
    00042 #define VISUALIZATION_LIBRARY_CONFIG_INCLUDE_ONCE
    00043
    00044
    00053 #define VL_DEBUG_LIVING_OBJECTS 0
    00054
    00055
    00062 #define VL_FORCE_CHECKS 0
    00063
    00064
    00070 #define VL_MESSAGEBOX_CHECK 0
    00071
    00072
    00087 #define VL_PIPELINE_PRECISION 1
    00088
    00089
    00105 #define VL_FAST_SQUARE_ROOTS 0
    00106
    00107
    00114 #define VL_OBJECT_USER_DATA 0
    00115
    00116
    00123 #define VL_ACTOR_USER_DATA 0
    00124
    00125
    00132 #define VL_TRANSFORM_USER_DATA 0
    00133
    00134
    00141 #define VL_SHADER_USER_DATA 0
    00142
    00143
    00151 #define VL_MAX_ACTOR_LOD 4
    00152
    00153
    00161 #define VL_MAX_EFFECT_LOD 4
    00162
    00163
    00172 #define VL_MAX_TEXTURE_UNITS 8
    00173
    00174
    00183 #define VL_MAX_GENERIC_VERTEX_ATTRIB 8
    00184
    00185
    00189 #define VL_MAX_TIMERS 16
    00190
    00191
    00198 #define VL_STRING_COPY_ON_WRITE 1
    00199
    00200
    00204 #define VL_DEFAULT_BUFFER_BYTE_ALIGNMENT 16
    00205
    00206
    00207 // -------------------- Do Not Touch The Following Section --------------------
    00208
    00210
    00211 #ifndef NDEBUG
    00212   #define VL_DEBUG_SET_OBJECT_NAME() this->mObjectName = className();
    00213 #else
    00214   #define VL_DEBUG_SET_OBJECT_NAME()
    00215 #endif
    00216
    00218
    00219 // Pipeline precision settings
    00220 #if VL_PIPELINE_PRECISION == 2
    00221   namespace vl {  typedef double Real; }
    00223   #define VL_glLoadMatrix glLoadMatrixd
    00224
    00225   #define VL_glMultMatrix glMultMatrixd
    00226 #else
    00227   namespace vl {  typedef float Real; }
    00228   namespace vl { typedef float Real; }
    00230   #define VL_glLoadMatrix glLoadMatrixf
    00231
    00232   #define VL_glMultMatrix glMultMatrixf
    00233 #endif
    00234
    00236
    00237 // Visual Studio special settings
    00238 #ifdef _MSC_VER
    00239   #pragma warning( once : 4996 ) // function or variable may be unsafe
    00240   #pragma warning( once : 4800 ) // forcing value to bool (performance warning)
    00241   #pragma warning( once : 4127 ) // conditional expression is constant
    00242   #pragma warning( once : 4100 ) // unreferenced formal parameter
    00243   #pragma warning( disable : 4251 ) // non-dll type exposed by a dll type
    00244 #endif
    00245
    00247
    00248 // VLCORE_EXPORT macro
    00249 #if defined(_WIN32) && !defined(VL_STATIC_LINKING)
    00250   #ifdef VLCore_EXPORTS
    00251     #define VLCORE_EXPORT __declspec(dllexport)
    00252   #else
    00253     #define VLCORE_EXPORT __declspec(dllimport)
    00254   #endif
    00255 #else
    00256   #define VLCORE_EXPORT
    00257 #endif
    00258
    00259 #endif // VISUALIZATION_LIBRARY_CONFIG_INCLUDE_ONCE

Visualization Library v2011.05.1142 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu May 26 2011 22:51:20.
Permission is granted to use this page to write and publish articles regarding Visualization Library.