Changed *.h files to *.hpp

This commit is contained in:
Kayne Ruse
2013-05-01 21:11:04 +10:00
parent cf82679109
commit 63aa248056
21 changed files with 47 additions and 47 deletions
+26
View File
@@ -0,0 +1,26 @@
#ifndef SURFACEMANAGER_HPP_
#define SURFACEMANAGER_HPP_
#include "SDL/SDL.h"
#include <map>
#include <string>
class SurfaceManager {
public:
SurfaceManager();
~SurfaceManager();
SDL_Surface* Load(std::string key, std::string fname);
SDL_Surface* Reload(std::string key, std::string fname);
SDL_Surface* Get(std::string key);
SDL_Surface* Set(std::string key, SDL_Surface* ptr);
void Free(std::string key);
void FreeAll();
private:
SDL_Surface* LoadSurface(std::string key, std::string fname);
typedef std::map<std::string, SDL_Surface*> mapType;
mapType surfaceMap;
};
#endif