60 lines
1.6 KiB
C++
60 lines
1.6 KiB
C++
/* -*-c++-*- */
|
|
/* osgEarth - Geospatial SDK for OpenSceneGraph
|
|
* Copyright 2020 Pelican Mapping
|
|
* http://osgearth.org
|
|
*
|
|
* osgEarth is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
|
*/
|
|
#pragma once
|
|
|
|
#include <osgEarth/Export>
|
|
#include <osgEarth/Notify>
|
|
#include <osgEarth/BuildConfig>
|
|
#include <osg/ref_ptr>
|
|
#include <osg/Referenced>
|
|
#include <memory>
|
|
|
|
namespace osg {
|
|
class ArgumentParser;
|
|
}
|
|
|
|
#define OE_COMMENT(STR)
|
|
|
|
/** osgEarth core */
|
|
namespace osgEarth
|
|
{
|
|
// application-wide unique ID.
|
|
using UID = int;
|
|
|
|
//! Global initializer for osgEarth - call this if you are setting up
|
|
//! windows and views prior to using osgEarth
|
|
extern OSGEARTH_EXPORT void initialize();
|
|
|
|
extern OSGEARTH_EXPORT void initialize(osg::ArgumentParser&);
|
|
|
|
//! Generate an application-wide unique identifier.
|
|
extern OSGEARTH_EXPORT UID createUID();
|
|
}
|
|
|
|
#ifdef _MSC_VER
|
|
// VS ignores
|
|
#pragma warning (disable: 4224)
|
|
#pragma warning (disable: 4180)
|
|
#endif
|
|
|
|
// Sringification
|
|
#define OE_STRINGIFY_0(x) #x
|
|
#define OE_STRINGIFY(x) OE_STRINGIFY_0(x)
|
|
|