From Mike Wittman and Robert Osfield, added support for SO_VERSION number in
runtime version info. Added checks for OpenThreads version.
This commit is contained in:
@@ -18,12 +18,11 @@
|
||||
|
||||
extern "C" {
|
||||
|
||||
#define OSG_VERSION_MAJOR 2
|
||||
#define OSG_VERSION_MINOR 1
|
||||
#define OSG_VERSION_PATCH 9
|
||||
|
||||
#define OSG_VERSION_RELEASE OSG_VERSION_PATCH
|
||||
#define OSG_VERSION_REVISION 0
|
||||
#define OPENSCENEGRAPH_MAJOR_VERSION 2
|
||||
#define OPENSCENEGRAPH_MINOR_VERSION 1
|
||||
#define OPENSCENEGRAPH_PATCH_VERSION 9
|
||||
#define OPENSCENEGRAPH_SOVERSION 20
|
||||
|
||||
/**
|
||||
* osgGetVersion() returns the library version number.
|
||||
@@ -43,9 +42,21 @@ extern "C" {
|
||||
*/
|
||||
extern OSG_EXPORT const char* osgGetVersion();
|
||||
|
||||
/** The osgGetSOVersion() method returns the OpenSceneGraph soversion number. */
|
||||
extern OSG_EXPORT const char* osgGetSOVersion();
|
||||
|
||||
/** The osgGetLibraryName() method returns the library name in human-friendly form. */
|
||||
extern OSG_EXPORT const char* osgGetLibraryName();
|
||||
|
||||
// old defines for backwards compatibility.
|
||||
#define OSG_VERSION_MAJOR OPENSCENEGRAPH_MAJOR_VERSION
|
||||
#define OSG_VERSION_MINOR OPENSCENEGRAPH_MINOR_VERSION
|
||||
#define OSG_VERSION_PATCH OPENSCENEGRAPH_PATCH_VERSION
|
||||
|
||||
#define OSG_VERSION_RELEASE OSG_VERSION_PATCH
|
||||
#define OSG_VERSION_REVISION 0
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user