Initial import of KREngine
--HG-- extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%404
This commit is contained in:
30
objview/Classes/krengine/KRTextureManager.h
Normal file
30
objview/Classes/krengine/KRTextureManager.h
Normal 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
|
||||
Reference in New Issue
Block a user