| [5328] | 1 | /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield |
|---|
| [1529] | 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 | */ |
|---|
| [51] | 13 | |
|---|
| [3440] | 14 | #ifndef OSG_VERSION |
|---|
| 15 | #define OSG_VERSION 1 |
|---|
| [2] | 16 | |
|---|
| 17 | #include <osg/Export> |
|---|
| 18 | |
|---|
| 19 | extern "C" { |
|---|
| 20 | |
|---|
| [6656] | 21 | |
|---|
| [7945] | 22 | #define OPENSCENEGRAPH_MAJOR_VERSION 2 |
|---|
| [9696] | 23 | #define OPENSCENEGRAPH_MINOR_VERSION 9 |
|---|
| [10077] | 24 | #define OPENSCENEGRAPH_PATCH_VERSION 4 |
|---|
| 25 | #define OPENSCENEGRAPH_SOVERSION 59 |
|---|
| [4113] | 26 | |
|---|
| [2] | 27 | /** |
|---|
| [3413] | 28 | * osgGetVersion() returns the library version number. |
|---|
| [4707] | 29 | * Numbering convention : OpenSceneGraph-1.0 will return 1.0 from osgGetVersion. |
|---|
| [3413] | 30 | * |
|---|
| 31 | * This C function can be also used to check for the existence of the OpenSceneGraph |
|---|
| 32 | * library using autoconf and its m4 macro AC_CHECK_LIB. |
|---|
| 33 | * |
|---|
| 34 | * Here is the code to add to your configure.in: |
|---|
| [2] | 35 | \verbatim |
|---|
| 36 | # |
|---|
| 37 | # Check for the OpenSceneGraph (OSG) library |
|---|
| 38 | # |
|---|
| 39 | AC_CHECK_LIB(osg, osgGetVersion, , |
|---|
| 40 | [AC_MSG_ERROR(OpenSceneGraph library not found. See http://www.openscenegraph.org)],) |
|---|
| 41 | \endverbatim |
|---|
| 42 | */ |
|---|
| [4021] | 43 | extern OSG_EXPORT const char* osgGetVersion(); |
|---|
| [2] | 44 | |
|---|
| [7383] | 45 | /** The osgGetSOVersion() method returns the OpenSceneGraph soversion number. */ |
|---|
| 46 | extern OSG_EXPORT const char* osgGetSOVersion(); |
|---|
| 47 | |
|---|
| [3413] | 48 | /** The osgGetLibraryName() method returns the library name in human-friendly form. */ |
|---|
| [4021] | 49 | extern OSG_EXPORT const char* osgGetLibraryName(); |
|---|
| [2] | 50 | |
|---|
| [7383] | 51 | // old defines for backwards compatibility. |
|---|
| 52 | #define OSG_VERSION_MAJOR OPENSCENEGRAPH_MAJOR_VERSION |
|---|
| 53 | #define OSG_VERSION_MINOR OPENSCENEGRAPH_MINOR_VERSION |
|---|
| 54 | #define OSG_VERSION_PATCH OPENSCENEGRAPH_PATCH_VERSION |
|---|
| 55 | |
|---|
| 56 | #define OSG_VERSION_RELEASE OSG_VERSION_PATCH |
|---|
| 57 | #define OSG_VERSION_REVISION 0 |
|---|
| 58 | |
|---|
| 59 | |
|---|
| [349] | 60 | } |
|---|
| [2] | 61 | |
|---|
| 62 | #endif |
|---|