Code Search for Developers
 
 
  

GDALElevationLoader.h from NeoEngineNG at Krugle


Show GDALElevationLoader.h syntax highlighted

#ifndef _GDALELEVATIONLOADER_DEMETER_
#define _GDALELEVATIONLOADER_DEMETER_

#include "Demeter/Globals.h"
#include "Demeter/Terrain.h"

// If this flag is #defined, then all elevation data loaded by GDAL will be mirrored about the X-axis
// when loaded into Demeter. Turn this #define off if your elevation data seems to be "mirrored" horizontally.
#define _SWAP_VERTICAL

/// \brief The Demeter Terrain Engine.
namespace Demeter
{
	class TERRAIN_API GDALElevationLoader
	{
		public:
			static GDALElevationLoader* GetInstance();
			bool LoadElevations(std::string filename,float vertexSpacing,float elevationScale,Demeter::Terrain* pTerrain,bool swapVertical = false);
		private:
			GDALElevationLoader();
			~GDALElevationLoader();
			void DimensionPowerOf2(int origX, int origY, int &newX, int &newY);
			bool m_FirstTimeLoad;
			static GDALElevationLoader* m_Instance;
	};
}

#endif





See more files for this project here

NeoEngineNG

NeoenEngine NG (Next Generation) is the evolution of neoengine one,it\'s a different development from NeoEngine2, it\'s a direct inherits from NeoEngine one.\n

Project homepage: http://sourceforge.net/projects/neoengineng
Programming language(s): C,C++
License: other

  BitArray.h
  Box.h
  Brush.h
  Demeter.h
  DemeterConfig.h
  DemeterConfig.h.in
  DemeterDrawable.h
  DemeterException.h
  DetailTexture.h
  GDALElevationLoader.h
  Globals.h
  ImageLoader.h
  Loader.h
  OGLSL.h
  Plane.h
  Ray.h
  SDLTextureLoader.h
  Settings.h
  Shader.h
  SkyBox.h
  SkyBoxDrawable.h
  StdAfx.h
  Terrain.h
  TerrainBlock.h
  TerrainLattice.h
  TerrainLoadListener.h
  TerrainVertex.h
  Texture.h
  TextureCell.h
  TextureSet.h
  Triangle.h
  Vector.h
  config.h