SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2009 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.  
  19. extern "C" {
  20.  
  21. #define OPENSCENEGRAPH_MAJOR_VERSION    3
  22. #define OPENSCENEGRAPH_MINOR_VERSION    4
  23. #define OPENSCENEGRAPH_PATCH_VERSION    2
  24. #define OPENSCENEGRAPH_SOVERSION        131
  25.  
  26. /* Convenience macro that can be used to decide whether a feature is present or not i.e.
  27.  * #if OSG_MIN_VERSION_REQUIRED(2,9,5)
  28.  *    your code here
  29.  * #endif
  30.  */
  31. #define OSG_MIN_VERSION_REQUIRED(MAJOR, MINOR, PATCH) ((OPENSCENEGRAPH_MAJOR_VERSION>MAJOR) || (OPENSCENEGRAPH_MAJOR_VERSION==MAJOR && (OPENSCENEGRAPH_MINOR_VERSION>MINOR || (OPENSCENEGRAPH_MINOR_VERSION==MINOR && OPENSCENEGRAPH_PATCH_VERSION>=PATCH))))
  32. #define OSG_VERSION_LESS_THAN(MAJOR, MINOR, PATCH) ((OPENSCENEGRAPH_MAJOR_VERSION<MAJOR) || (OPENSCENEGRAPH_MAJOR_VERSION==MAJOR && (OPENSCENEGRAPH_MINOR_VERSION<MINOR || (OPENSCENEGRAPH_MINOR_VERSION==MINOR && OPENSCENEGRAPH_PATCH_VERSION<PATCH))))
  33. #define OSG_VERSION_LESS_OR_EQUAL(MAJOR, MINOR, PATCH) ((OPENSCENEGRAPH_MAJOR_VERSION<MAJOR) || (OPENSCENEGRAPH_MAJOR_VERSION==MAJOR && (OPENSCENEGRAPH_MINOR_VERSION<MINOR || (OPENSCENEGRAPH_MINOR_VERSION==MINOR && OPENSCENEGRAPH_PATCH_VERSION<=PATCH))))
  34. #define OSG_VERSION_GREATER_THAN(MAJOR, MINOR, PATCH) ((OPENSCENEGRAPH_MAJOR_VERSION>MAJOR) || (OPENSCENEGRAPH_MAJOR_VERSION==MAJOR && (OPENSCENEGRAPH_MINOR_VERSION>MINOR || (OPENSCENEGRAPH_MINOR_VERSION==MINOR && OPENSCENEGRAPH_PATCH_VERSION>PATCH))))
  35. #define OSG_VERSION_GREATER_OR_EQUAL(MAJOR, MINOR, PATCH) ((OPENSCENEGRAPH_MAJOR_VERSION>MAJOR) || (OPENSCENEGRAPH_MAJOR_VERSION==MAJOR && (OPENSCENEGRAPH_MINOR_VERSION>MINOR || (OPENSCENEGRAPH_MINOR_VERSION==MINOR && OPENSCENEGRAPH_PATCH_VERSION>=PATCH))))
  36.  
  37.  
  38. /**
  39.   * osgGetVersion() returns the library version number.
  40.   * Numbering convention : OpenSceneGraph-1.0 will return 1.0 from osgGetVersion.
  41.   *
  42.   * This C function can be also used to check for the existence of the OpenSceneGraph
  43.   * library using autoconf and its m4 macro AC_CHECK_LIB.
  44.   *
  45.   * Here is the code to add to your configure.in:
  46.  \verbatim
  47.  #
  48.  # Check for the OpenSceneGraph (OSG) library
  49.  #
  50.  AC_CHECK_LIB(osg, osgGetVersion, ,
  51.     [AC_MSG_ERROR(OpenSceneGraph library not found. See http://www.openscenegraph.org)],)
  52.  \endverbatim
  53. */
  54. extern OSG_EXPORT const char* osgGetVersion();
  55.  
  56. /** The osgGetSOVersion() method returns the OpenSceneGraph shared object version number. */
  57. extern OSG_EXPORT const char* osgGetSOVersion();
  58.  
  59. /** The osgGetLibraryName() method returns the library name in human-friendly form. */
  60. extern OSG_EXPORT const char* osgGetLibraryName();
  61.  
  62. // old defines for backwards compatibility.
  63. #define OSG_VERSION_MAJOR OPENSCENEGRAPH_MAJOR_VERSION
  64. #define OSG_VERSION_MINOR OPENSCENEGRAPH_MINOR_VERSION
  65. #define OSG_VERSION_PATCH OPENSCENEGRAPH_PATCH_VERSION
  66.  
  67. #define OSG_VERSION_RELEASE OSG_VERSION_PATCH
  68. #define OSG_VERSION_REVISION 0
  69.  
  70.  
  71. }
  72.  
  73. #endif
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top