Files
kraken/objview/Classes/krengine/KRTextureManager.h
kearwood cece608881 Initial import of KREngine
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%404
2011-10-25 05:03:10 +00:00

31 lines
583 B
C++

//
// KRTextureManager.h
// gldemo
//
// Created by Kearwood Gilbert on 10-10-14.
// Copyright (c) 2010 Kearwood Software. All rights reserved.
//
#ifndef KRTEXTUREMANAGER_H
#define KRTEXTUREMANAGER_H
#include "KRTexture.h"
#include <map>
using std::map;
class KRTextureManager {
public:
KRTextureManager();
~KRTextureManager();
KRTexture *loadTexture(const char *szName, const char *szPath);
GLuint getTextureName(const char *szName);
KRTexture *getTexture(const char *szFile);
private:
map<std::string, KRTexture *> m_textures;
};
#endif