![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
00001 /* 00002 * Stellarium 00003 * Copyright (C) 2006 Fabien Chereau 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef _STELTEXTUREMGR_HPP_ 00021 #define _STELTEXTUREMGR_HPP_ 00022 00023 #include <QtOpenGL> 00024 #include "StelTexture.hpp" 00025 #include <QObject> 00026 00030 class StelTextureMgr : QObject 00031 { 00032 public: 00033 StelTextureMgr(); 00034 virtual ~StelTextureMgr(); 00035 00038 void init(); 00039 00044 StelTextureSP createTexture(const QString& filename, const StelTexture::StelTextureParams& params=StelTexture::StelTextureParams()); 00045 00052 StelTextureSP createTextureThread(const QString& url, const StelTexture::StelTextureParams& params=StelTexture::StelTextureParams(), const QString& fileExtension=QString(), bool lazyLoading=true); 00053 00054 private: 00055 friend class StelTexture; 00056 00058 bool isNoPowerOfTwoAllowed; 00059 }; 00060 00061 00062 #endif // _STELTEXTUREMGR_HPP_