Initial import of KREngine

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%404
This commit is contained in:
kearwood
2011-10-25 05:03:10 +00:00
parent 5937288f78
commit cece608881
86 changed files with 12190 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
//
// 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