OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Version.h
Go to the documentation of this file.
1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2009 Robert Osfield
2  *
3  * This library is open source and may be redistributed and/or modified under
4  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5  * (at your option) any later version. The full license is in LICENSE file
6  * included with this distribution, and on the openscenegraph.org website.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * OpenSceneGraph Public License for more details.
12 */
13 
14 #ifndef OSG_VERSION
15 #define OSG_VERSION 1
16 
17 #include <osg/Export>
18 
19 extern "C" {
20 
21 #define OPENSCENEGRAPH_MAJOR_VERSION 3
22 #define OPENSCENEGRAPH_MINOR_VERSION 4
23 #define OPENSCENEGRAPH_PATCH_VERSION 0
24 #define OPENSCENEGRAPH_SOVERSION 130
25 
26 /* Convenience macro that can be used to decide whether a feature is present or not i.e.
27  * #if OSG_MIN_VERSION_REQUIRED(2,9,5)
28  * your code here
29  * #endif
30  */
31 #define OSG_MIN_VERSION_REQUIRED(MAJOR, MINOR, PATCH) ((OPENSCENEGRAPH_MAJOR_VERSION>MAJOR) || (OPENSCENEGRAPH_MAJOR_VERSION==MAJOR && (OPENSCENEGRAPH_MINOR_VERSION>MINOR || (OPENSCENEGRAPH_MINOR_VERSION==MINOR && OPENSCENEGRAPH_PATCH_VERSION>=PATCH))))
32 #define OSG_VERSION_LESS_THAN(MAJOR, MINOR, PATCH) ((OPENSCENEGRAPH_MAJOR_VERSION<MAJOR) || (OPENSCENEGRAPH_MAJOR_VERSION==MAJOR && (OPENSCENEGRAPH_MINOR_VERSION<MINOR || (OPENSCENEGRAPH_MINOR_VERSION==MINOR && OPENSCENEGRAPH_PATCH_VERSION<PATCH))))
33 #define OSG_VERSION_LESS_OR_EQUAL(MAJOR, MINOR, PATCH) ((OPENSCENEGRAPH_MAJOR_VERSION<MAJOR) || (OPENSCENEGRAPH_MAJOR_VERSION==MAJOR && (OPENSCENEGRAPH_MINOR_VERSION<MINOR || (OPENSCENEGRAPH_MINOR_VERSION==MINOR && OPENSCENEGRAPH_PATCH_VERSION<=PATCH))))
34 #define OSG_VERSION_GREATER_THAN(MAJOR, MINOR, PATCH) ((OPENSCENEGRAPH_MAJOR_VERSION>MAJOR) || (OPENSCENEGRAPH_MAJOR_VERSION==MAJOR && (OPENSCENEGRAPH_MINOR_VERSION>MINOR || (OPENSCENEGRAPH_MINOR_VERSION==MINOR && OPENSCENEGRAPH_PATCH_VERSION>PATCH))))
35 #define OSG_VERSION_GREATER_OR_EQUAL(MAJOR, MINOR, PATCH) ((OPENSCENEGRAPH_MAJOR_VERSION>MAJOR) || (OPENSCENEGRAPH_MAJOR_VERSION==MAJOR && (OPENSCENEGRAPH_MINOR_VERSION>MINOR || (OPENSCENEGRAPH_MINOR_VERSION==MINOR && OPENSCENEGRAPH_PATCH_VERSION>=PATCH))))
36 
37 
54 extern OSG_EXPORT const char* osgGetVersion();
55 
57 extern OSG_EXPORT const char* osgGetSOVersion();
58 
60 extern OSG_EXPORT const char* osgGetLibraryName();
61 
62 // old defines for backwards compatibility.
63 #define OSG_VERSION_MAJOR OPENSCENEGRAPH_MAJOR_VERSION
64 #define OSG_VERSION_MINOR OPENSCENEGRAPH_MINOR_VERSION
65 #define OSG_VERSION_PATCH OPENSCENEGRAPH_PATCH_VERSION
66 
67 #define OSG_VERSION_RELEASE OSG_VERSION_PATCH
68 #define OSG_VERSION_REVISION 0
69 
70 
71 }
72 
73 #endif
#define OSG_EXPORT
Definition: Export.h:43
OSG_EXPORT const char * osgGetSOVersion()
OSG_EXPORT const char * osgGetVersion()
OSG_EXPORT const char * osgGetLibraryName()