00001 00002 /* 00003 TEDDY - General graphics application library 00004 Copyright (C) 1999-2002 Timo Suoranta 00005 tksuoran@cc.helsinki.fi 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Lesser General Public 00009 License as published by the Free Software Foundation; either 00010 version 2.1 of the License, or (at your option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Lesser General Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public 00018 License along with this library; if not, write to the Free Software 00019 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 00021 $Id: TextureManager.cpp,v 1.1 2002/01/22 19:30:04 tksuoran Exp $ 00022 */ 00023 00024 00025 #include "Teddy/TeddyConfig.h" 00026 #include "Teddy/Graphics/TextureManager.h" 00027 #include "Teddy/SysSupport/Messages.h" 00028 using namespace Teddy::SysSupport; 00029 00030 00031 namespace Teddy { 00032 namespace Graphics { 00033 00034 00036 TextureManager::TextureManager(){ 00037 } 00038 00039 00041 /*virtual*/ TextureManager::~TextureManager(){ 00042 deleteAll(); 00043 } 00044 00045 00046 void TextureManager::deleteAll(){ 00047 } 00048 00049 00050 void TextureManager::addTexture( Texture *t ){ 00051 } 00052 00053 00054 Texture *TextureManager::newTexture( char *fname ){ 00055 Texture *t = NULL; 00056 return t; 00057 }; 00058 00059 00060 }; // namespace Graphics 00061 }; // namespace Teddy 00062 00063 00064 /* 00065 00066 Useful extensions: 00067 00068 GL_IBM_texture_mirrored_repeat 00069 GL_EXT_texture_filter_anisotropic (GL_TEXTURE_MAX_ANISOTROPY_EXT) 00070 GL_ARB_texture_compression 00071 GL_EXT_texture_compression_s3tc 00072 00073 Texture formats: 00074 00075 GL_INTENSITY 00076 GL_LUMINANCE 00077 GL_ALPHA 00078 GL_LUMINANCE_ALPHA 00079 GL_RGB 00080 GL_RGBA 00081 00082 GL_ARB_texture_compression: 00083 00084 GL_COMPRESSED_ALPHA_ARB 00085 GL_COMPRESSED_LUMINANCE_ARB 00086 GL_COMPRESSED_INTENSITY_ARB 00087 GL_COMPRESSED_LUMINANCE_ALPHA_ARB 00088 GL_COMPRESSED_RGB_ARB 00089 GL_COMPRESSED_RGBA_ARB 00090 00091 GL_EXT_texture_compression_s3tc: 00092 00093 GL_COMPRESSED_RGB_S3TC_DXT1_EXT 00094 GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 00095 GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 00096 GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 00097 00098 */ 00099 00100