Ignore:
Timestamp:
Mar 20, 2011, 8:31:20 PM (13 years ago)
Author:
Torben Dannhauer
Message:
 
Location:
experimental/TerrainTest/ModificationManager
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • experimental/TerrainTest/ModificationManager/Export.h

    r277 r279  
     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 TERRAINMODMANAGER_EXPORT_
     15#define TERRAINMODMANAGER_EXPORT_ 1
     16
     17#include<osg/Config>
     18
     19#if defined(_MSC_VER) && defined(OSG_DISABLE_MSVC_WARNINGS)
     20    #pragma warning( disable : 4244 )
     21    #pragma warning( disable : 4251 )
     22    #pragma warning( disable : 4267 )
     23    #pragma warning( disable : 4275 )
     24    #pragma warning( disable : 4290 )
     25    #pragma warning( disable : 4786 )
     26    #pragma warning( disable : 4305 )
     27    #pragma warning( disable : 4996 )
     28#endif
     29
     30#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__)
     31    #  if defined( OSG_LIBRARY_STATIC )
     32    #    define TERRAINMODMANAGER_EXPORT
     33    #  elif defined( TERRAINMODMANAGER_LIBRARY )
     34    #    define TERRAINMODMANAGER_EXPORT   __declspec(dllexport)
     35    #  else
     36    #    define TERRAINMODMANAGER_EXPORT   __declspec(dllimport)
     37    #  endif
     38#else
     39    #  define TERRAINMODMANAGER_EXPORT
     40#endif 
     41
     42/**
     43
     44\namespace osgTerrain
     45
     46The osgTerrain library is a NodeKit that provides geospecifc terrain rendering support.
     47*/
     48
     49#endif
  • experimental/TerrainTest/ModificationManager/ModificationManager.cpp

    r277 r279  
    2323//-
    2424
    25 #define USE_TERRAIN_PROTO_WORKAROUND USE_TERRAIN_PROTO_WORKAROUND
    2625
    2726
  • experimental/TerrainTest/ModificationManager/ModificationManager.h

    r277 r279  
    1616*/
    1717
    18 #include "region.h"
     18#include <region.h>
    1919#include "myTileLoadedCallback.h"
    2020#include "terrainModificationTechnique.h"
     
    2323#include <osg/observer_ptr>
    2424#include <vector>
     25
     26#include "Export.h"
    2527
    2628
     
    4244 * @date  Mrz 2011
    4345 */
    44 class ModificationManager
     46class TERRAINMODMANAGER_EXPORT ModificationManager
    4547{
    4648public:
     
    103105
    104106        //! Copy-Constructor: Private to avoid that someone can create an class instance by copying the singleton instance.
    105         ModificationManager(const ModificationManager& cc) {};
     107        ModificationManager(const ModificationManager& cc) {cc;};
    106108
    107109        //! Vector of all managed terrain pointers.
  • experimental/TerrainTest/ModificationManager/ModificationManager.vcproj

    r277 r279  
    4242                                Name="VCCLCompilerTool"
    4343                                Optimization="0"
    44                                 PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MODIFICATIONMANAGER_EXPORTS"
     44                                AdditionalIncludeDirectories="&quot;$(OSG_ROOT)\include&quot;;..\;.\"
     45                                PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MODIFICATIONMANAGER_EXPORTS;TERRAINMODMANAGER_LIBRARY;USE_TERRAIN_PROTO_WORKAROUND"
    4546                                MinimalRebuild="true"
    4647                                BasicRuntimeChecks="3"
     
    6162                        <Tool
    6263                                Name="VCLinkerTool"
     64                                LinkLibraryDependencies="false"
     65                                AdditionalDependencies="osgTerraind.lib osgDBd.lib osgd.lib OpenThreadsd.lib"
     66                                OutputFile="$(OutDir)\$(ProjectName)d.dll"
    6367                                LinkIncremental="2"
     68                                AdditionalLibraryDirectories="$(OSG_ROOT)/lib"
    6469                                GenerateDebugInformation="true"
    6570                                SubSystem="2"
     71                                ImportLibrary="$(TargetDir)$(TargetName).lib"
    6672                                TargetMachine="1"
    6773                        />
     
    115121                                Optimization="2"
    116122                                EnableIntrinsicFunctions="true"
    117                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MODIFICATIONMANAGER_EXPORTS"
     123                                AdditionalIncludeDirectories="&quot;$(OSG_ROOT)\include&quot;;..\;.\"
     124                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MODIFICATIONMANAGER_EXPORTS;TERRAINMODMANAGER_LIBRARY;USE_TERRAIN_PROTO_WORKAROUND"
    118125                                RuntimeLibrary="2"
    119126                                EnableFunctionLevelLinking="true"
     
    133140                        <Tool
    134141                                Name="VCLinkerTool"
     142                                LinkLibraryDependencies="false"
     143                                AdditionalDependencies="osgTerrain.lib osgDB.lib osg.lib OpenThreads.lib"
    135144                                LinkIncremental="1"
     145                                AdditionalLibraryDirectories="$(OSG_ROOT)/lib"
    136146                                GenerateDebugInformation="true"
    137147                                SubSystem="2"
     
    171181                        UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
    172182                        >
     183                        <File
     184                                RelativePath=".\ModificationManager.cpp"
     185                                >
     186                        </File>
     187                        <File
     188                                RelativePath="..\myTerrainTechnique.cpp"
     189                                >
     190                        </File>
    173191                </Filter>
    174192                <Filter
     
    177195                        UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
    178196                        >
     197                        <File
     198                                RelativePath=".\Export.h"
     199                                >
     200                        </File>
     201                        <File
     202                                RelativePath=".\ModificationManager.h"
     203                                >
     204                        </File>
     205                        <File
     206                                RelativePath="..\myTerrainTechnique.h"
     207                                >
     208                        </File>
     209                        <File
     210                                RelativePath="..\region.h"
     211                                >
     212                        </File>
    179213                </Filter>
    180214                <Filter
Note: See TracChangeset for help on using the changeset viewer.