Version 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. #ifndef OSGTEXT_VERSION
  14. #define OSGTEXT_VERSION 1
  15. #include <osgText/Export>
  16. extern "C" {
  17. /**
  18. * osgTextGetVersion() returns the library version number.
  19. * Numbering convention : OpenSceneGraph-1.0 will return 1.0 from osgTextGetVersion.
  20. *
  21. * This C function can be also used to check for the existence of the OpenSceneGraph
  22. * library using autoconf and its m4 macro AC_CHECK_LIB.
  23. *
  24. * Here is the code to add to your configure.in:
  25. \verbatim
  26. #
  27. # Check for the OpenSceneGraph (OSG) Text library
  28. #
  29. AC_CHECK_LIB(osg, osgTextGetVersion, ,
  30. [AC_MSG_ERROR(OpenSceneGraph Text library not found. See http://www.openscenegraph.org)],)
  31. \endverbatim
  32. */
  33. extern OSGTEXT_EXPORT const char* osgTextGetVersion();
  34. /**
  35. * osgTextGetLibraryName() returns the library name in human friendly form.
  36. */
  37. extern OSGTEXT_EXPORT const char* osgTextGetLibraryName();
  38. }
  39. #endif