Version 934 B

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