root/OpenSceneGraph/trunk/include/osg/Version @ 10077

Revision 10077, 2.0 kB (checked in by robert, 4 years ago)

Updated version numbers in prep for 2.9.4 dev release

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 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
19extern "C" {
20
21
22#define OPENSCENEGRAPH_MAJOR_VERSION    2
23#define OPENSCENEGRAPH_MINOR_VERSION    9
24#define OPENSCENEGRAPH_PATCH_VERSION    4
25#define OPENSCENEGRAPH_SOVERSION        59
26
27/**
28  * osgGetVersion() returns the library version number.
29 * Numbering convention : OpenSceneGraph-1.0 will return 1.0 from osgGetVersion.
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:
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*/
43extern OSG_EXPORT const char* osgGetVersion();
44
45/** The osgGetSOVersion() method returns the OpenSceneGraph soversion number. */
46extern OSG_EXPORT const char* osgGetSOVersion();
47
48/** The osgGetLibraryName() method returns the library name in human-friendly form. */
49extern OSG_EXPORT const char* osgGetLibraryName();
50
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
60}
61
62#endif
Note: See TracBrowser for help on using the browser.