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