Code Search for Developers
 
 
  

SDLTextureLoader.h from NeoEngineNG at Krugle


Show SDLTextureLoader.h syntax highlighted

#ifndef _SDLTEXTURELOADER_DEMETER_H_
#define _SDLTEXTURELOADER_DEMETER_H_

#include <Demeter/Globals.h>
#include <Demeter/Terrain.h>

/// \brief The Demeter Terrain Engine.
namespace Demeter
{
	class TERRAIN_API SDLTextureLoader
	{
		public:
			static SDLTextureLoader* GetInstance();
			bool LoadTerrainTexture(std::string imageFilename, Demeter::Terrain * pTerrain);
			bool LoadCommonTerrainTexture(std::string imageFilename, Demeter::Terrain * pTerrain);
			Demeter::Texture* LoadTexture(std::string imageFilename,bool clamp,bool compress,bool useAlpha,int maxWidth = 4096,int maxHeight = 4096);
		private:
			SDLTextureLoader();
			~SDLTextureLoader();
			void LoadImage(const char *szShortFilename, int &width, int &height, Uint8 ** ppBuffer, bool bAlpha);
			bool ApplyTexture(const char *szFilename, bool isBaseTexture, Demeter::Terrain * pTerrain);
			static SDLTextureLoader* 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