version.cpp File Reference

#include <prefix/dtutilprefix-src.h>
#include <dtUtil/version.h>
#include <stdio.h>

Functions

const char * Delta3DGetVersion ()
 delta3DGetVersion() returns the library version number.
const char * Delta3DGetLibraryName ()
 The osgGetLibraryName() method returns the library name in human-friendly form.

Function Documentation

const char* Delta3DGetLibraryName (  ) 

The osgGetLibraryName() method returns the library name in human-friendly form.

const char* Delta3DGetVersion (  ) 

delta3DGetVersion() returns the library version number.

Numbering convention : Delta3D 1.4.0 will return "1.4.0" from delta3DGetVersion.

This C function can be also used to check for the existence of the Delta3D library using autoconf and its m4 macro AC_CHECK_LIB.

Here is the code to add to your configure.in:

 #
 # Check for the Delta3D library
 #
 AC_CHECK_LIB(osg, delta3DGetVersion, ,
    [AC_MSG_ERROR(Delta3D library not found. See http://www.delta3d.org)],)
 


http://www.delta3d.org
2.0.0 generated 14 Feb 2008