summaryrefslogtreecommitdiff
path: root/layoutgl/texturemanager.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-12 14:57:44 +0200
committerTreeki <treeki@gmail.com>2012-09-12 14:57:44 +0200
commit3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10 (patch)
treed10e8cd4e462db28dd3c2f995905c4df57a20fed /layoutgl/texturemanager.h
parentbe8b56a7f0a8f6ba5456a099b61d032fd8aa2f61 (diff)
downloadLayoutStudio-3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10.tar.gz
LayoutStudio-3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10.zip
initial un-exporter version
Diffstat (limited to 'layoutgl/texturemanager.h')
-rw-r--r--layoutgl/texturemanager.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/layoutgl/texturemanager.h b/layoutgl/texturemanager.h
deleted file mode 100644
index 07b7739..0000000
--- a/layoutgl/texturemanager.h
+++ /dev/null
@@ -1,33 +0,0 @@
-#ifndef TEXTUREMANAGER_H
-#define TEXTUREMANAGER_H
-
-#include "wii/texpalette.h"
-#include "lyt/layout.h"
-#include <QGLContext>
-#include <QHash>
-
-class LGLTextureManager {
-public:
- LGLTextureManager();
-
- void setup(QGLWidget *gl, const LYTLayout *layout);
-
-private:
- const QGLContext *m_gl;
- const LYTLayout *m_layout;
- const LYTPackageBase *m_package;
-
- QHash<QString, GLuint> m_textures;
- QHash<QString, QImage> m_images;
-
-public:
- GLuint glTextureForName(const QString name) const {
- return m_textures.value(name);
- }
-
- QImage imageForName(const QString name) const {
- return m_images.value(name);
- }
-};
-
-#endif // TEXTUREMANAGER_H