00001 /* 00002 ----------------------------------------------------------------------------- 00003 This source file is part of OGRE 00004 (Object-oriented Graphics Rendering Engine) 00005 For the latest info, see http://www.ogre3d.org/ 00006 00007 Copyright © 2000-2002 The OGRE Team 00008 Also see acknowledgements in Readme.html 00009 00010 This program is free software; you can redistribute it and/or modify it under 00011 the terms of the GNU Lesser General Public License as published by the Free Software 00012 Foundation; either version 2 of the License, or (at your option) any later 00013 version. 00014 00015 This program is distributed in the hope that it will be useful, but WITHOUT 00016 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00017 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public License along with 00020 this program; if not, write to the Free Software Foundation, Inc., 59 Temple 00021 Place - Suite 330, Boston, MA 02111-1307, USA, or go to 00022 00023 http://www.gnu.org/copyleft/lesser.txt. 00024 ----------------------------------------------------------------------------- 00025 */ 00026 00027 #ifndef _DDSCodec_H__ 00028 #define _DDSCodec_H__ 00029 00030 #include "OgreILImageCodec.h" 00031 00032 namespace Ogre 00033 { 00034 00035 class ILCodecs { 00036 protected: 00037 static Codec* mPNGCodec, *mJPGCodec, *mJPEGCodec, 00038 *mTGACodec, *mDDSCodec, *mBMPCodec; 00039 public: 00040 // Register all codecs provided by this module 00041 static void registerCodecs(void); 00042 // Delete all codecs provided by this module 00043 static void deleteCodecs(void); 00044 }; 00045 00048 class _OgreExport BMPCodec : public ILImageCodec 00049 { 00050 public: 00051 String getType() const { return "bmp"; } 00052 00053 unsigned int getILType(void) const; 00054 00055 }; 00056 00059 class _OgreExport TGACodec : public ILImageCodec 00060 { 00061 public: 00062 String getType() const { return "tga"; } 00063 00064 unsigned int getILType(void) const; 00065 }; 00066 00069 class _OgreExport JPEGCodec : public ILImageCodec 00070 { 00071 public: 00072 String getType() const { return "jpeg"; } 00073 00074 unsigned int getILType(void) const; 00075 }; 00076 00077 class _OgreExport JPGCodec : public JPEGCodec 00078 { 00079 public: 00080 String getType() const { return "jpg"; } 00081 }; 00082 00085 class _OgreExport DDSCodec : public ILImageCodec 00086 { 00087 public: 00088 String getType() const { return "dds"; } 00089 00090 unsigned int getILType(void) const; 00091 }; 00092 00095 class _OgreExport PNGCodec : public ILImageCodec 00096 { 00097 public: 00098 String getType() const { return "png"; } 00099 00100 unsigned int getILType(void) const; 00101 }; 00102 00103 } // namespace Ogre 00104 00105 00106 #endif // #ifndef _DDSCodec_H__ 00107
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:48:29 2004