#ifndef TEXTUREMANAGER_H #define TEXTUREMANAGER_H #include "wii/texpalette.h" #include "lyt/layout.h" #include #include 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 m_textures; QHash 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