Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

/home/slang/XVision2/src/Tools/XVMacros.h

00001 // *** BEGIN_XVISION2_COPYRIGHT_NOTICE ***
00002 // *** END_XVISION2_COPYRIGHT_NOTICE ***
00003 
00004 #ifndef _XVMACROS_H_
00005 #define _XVMACROS_H_
00006 
00007 #include <assert.h>
00008 
00009 #if DEBUG_LEVEL > 0
00010 #define ASSERT(x)  assert(x)
00011 #define NDEBUG
00012 #else
00013 #define ASSERT(x) 
00014 #endif
00015 
00016 #if DEBUG_LEVEL == 2
00017 #define DEBUG
00018 #endif
00019 
00020 #ifndef XV_RGB
00021 #ifdef SCREEN_DEPTH 
00022 #if SCREEN_DEPTH == 32
00023 #define XV_RGB XV_RGBA32
00024 #elif SCREEN_DEPTH == 24
00025 #define XV_RGB XV_RGB24
00026 #elif SCREEN_DEPTH == 16
00027 #define XV_RGB XV_RGB16
00028 #else
00029 #define XV_RGB XV_RGBA32
00030 #endif
00031 #else
00032 #define XV_RGB XV_RGBA32
00033 #endif
00034 #endif
00035 
00036 #endif

Generated at Thu Mar 29 22:37:28 2001 for XVision by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000