| VRS - The Virtual Rendering System |
| version 3.3 |
00001 /****************************************************************************** 00002 * VRS - The Virtual Rendering System 00003 * Copyright (C) 2000-2004 Computer Graphics Systems Group at the 00004 * Hasso-Plattner-Institute (HPI), Potsdam, Germany. 00005 * 00006 * This library is free software; you can redistribute it and/or modify it 00007 * under the terms of the GNU Lesser General Public License as published by 00008 * the Free Software Foundation; either version 2.1 of the License, or (at 00009 * your option) any later version. This library is distributed in the hope 00010 * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied 00011 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Lesser General Public License for more details. You should have received 00013 * a copy of the GNU Lesser+ General Public License along with this library; if 00014 * not, write to the FreeSoftware Foundation, Inc., 59 Temple Place, Suite 330, 00015 * Boston, MA, 02111-1307, USA. 00016 ******************************************************************************/ 00017 00018 // $Id: imageopengltool.h 6628 2009-01-13 14:08:52Z Manuel_Wellmann $ 00019 // $Date: 2009-01-13 15:08:52 +0100 (Tue, 13 Jan 2009) $ 00020 // $Revision: 6628 $ 00021 // $State$ 00022 // $Author: Manuel_Wellmann $ 00023 // 00024 // $Log$ 00025 // Revision 1.2 2005/01/03 01:43:09 klimetschek 00026 // - modified win32 project layout, splitted vrs.vcproj into vrs_container, vrs_core, vrs_sg, vrs_image, vrs_opengl and vrs_io 00027 // - removed vrs.vcproj 00028 // minor things: 00029 // - added all glutexamples to vrs4glut.sln 00030 // - fixed some problems in glutexamples 00031 // - removed all project references from all VS projects (using solution wide project dependencies instead) 00032 // 00033 // Revision 1.1 2004/04/23 13:41:35 kirsch 00034 // added ImageOpenGLTool 00035 // 00036 00037 #ifndef VRS_IMAGE_IMAGEOPENGLTOOL_H 00038 #define VRS_IMAGE_IMAGEOPENGLTOOL_H 00039 00040 #include <vrs/area.h> 00041 #include <vrs/opengl/openglconfig.h> 00042 00043 namespace VRS { 00044 00045 class Image; 00046 00047 class VRS_CORE_API ImageOpenGLTool { 00048 00049 public: 00050 static void* getImagePointer(const Image* image = NULL, const Area& subArea = Area(-1, -1, -1, -1)); 00064 static void setPixelStoreModes(int width, int height, 00065 int alignment = 1, const Area& subArea = Area(-1, -1, -1, -1)); 00067 00077 static GLenum getImageFormat(const Image* image); 00081 static GLenum getPixelFormat(const Image* image); 00085 static GLenum getInternalFormat(const Image* image); 00090 static GLenum getTextureFormat(const GLenum internalFormat); 00095 static bool isS3TC(const Image* const image); 00097 }; 00098 00099 } // namespace VRS 00100 00101 #endif // VRS_IMAGE_IMAGEOPENGLTOOL_H