1// Code by: Jeremy Moles (cubicool) 2007-2008
3#ifndef OSGWIDGET_VERSION
4#define OSGWIDGET_VERSION
6#include <osgWidget/Export>
11 * osgWidgetGetVersion() returns the library version number.
12 * Numbering convention : OpenSceneGraph-1.0 will return 1.0 from osgWidgetGetVersion.
14 * This C function can be also used to check for the existence of the OpenSceneGraph
15 * library using autoconf and its m4 macro AC_CHECK_LIB.
17 * Here is the code to add to your configure.in:
20 # Check for the OpenSceneGraph (OSG) Util library
22 AC_CHECK_LIB(osg, osgWidgetGetVersion, ,
23 [AC_MSG_ERROR(OpenSceneGraph Util library not found. See http://www.openscenegraph.org)],)
26extern OSGWIDGET_EXPORT const char* osgWidgetGetVersion();
29 * osgWidgetGetLibraryName() returns the library name in human friendly form.
31extern OSGWIDGET_EXPORT const char* osgWidgetGetLibraryName();