00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef SIMGEAR_OSGVERSION_HXX
00021 #define SIMGEAR_OSGVERSION_HXX 1
00022 #include <osg/Version>
00023 #define SG_OSG_VERSION \
00024 ((OPENSCENEGRAPH_MAJOR_VERSION*10000)\
00025 + (OPENSCENEGRAPH_MINOR_VERSION*1000) + OPENSCENEGRAPH_PATCH_VERSION)
00026
00027 #define SG_OSG_VERSION_GREATER_EQUAL(MAJOR, MINOR, PATCH) \
00028 ((OPENSCENEGRAPH_MAJOR_VERSION > (MAJOR)) || \
00029 (OPENSCENEGRAPH_MAJOR_VERSION == (MAJOR) && \
00030 (OPENSCENEGRAPH_MINOR_VERSION > (MINOR) || \
00031 (OPENSCENEGRAPH_MINOR_VERSION == (MINOR) && \
00032 OPENSCENEGRAPH_PATCH_VERSION >= (PATCH)))))
00033
00034 #define SG_OSG_VERSION_GREATER_THAN(MAJOR, MINOR, PATCH) \
00035 ((OPENSCENEGRAPH_MAJOR_VERSION > (MAJOR)) || \
00036 (OPENSCENEGRAPH_MAJOR_VERSION == (MAJOR) && \
00037 (OPENSCENEGRAPH_MINOR_VERSION > (MINOR) || \
00038 (OPENSCENEGRAPH_MINOR_VERSION == (MINOR) && \
00039 OPENSCENEGRAPH_PATCH_VERSION > (PATCH)))))
00040
00041 #define SG_OSG_VERSION_LESS_THAN(MAJOR, MINOR, PATCH) \
00042 (!SG_OSG_VERSION_GREATER_EQUAL(MAJOR, MINOR, PATCH))
00043
00044 #define SG_OSG_VERSION_LESS_EQUAL(MAJOR, MINOR, PATCH) \
00045 (!SG_OSG_VERSION_GREATER_THAN(MAJOR, MINOR, PATCH))
00046
00047 #define SG_OSG_MIN_VERSION_REQUIRED(MAJOR, MINOR, PATCH) \
00048 SG_OSG_VERSION_GREATER_EQUAL(MAJOR, MINOR, PATCH)
00049
00050 #endif