| VRS - The Virtual Rendering System |
| version 3.3 |
00001 /********************************************************************** 00002 VRS - The Virtual Rendering System 00003 Copyright (C) 2001 Computer Graphics Systems Group at the 00004 Hasso-Plattner-Institute, Potsdam, Germany. 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 This library is distributed in the hope that it will be useful, but 00010 WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 See the GNU Lesser General Public License for more details. 00013 You should have received a copy of the GNU Lesser+ General Public 00014 License along with this library; if not, write to the FreeSoftware 00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA, 02111-1307, USA. 00016 **********************************************************************/ 00017 00018 // $Id: texture3dgl.h 6014 2007-08-09 07:51:16Z Konstantin_Baumann $ 00019 // $Date: 2007-08-09 09:51:16 +0200 (Thu, 09 Aug 2007) $ 00020 // $Revision: 6014 $ 00021 // $State$ 00022 // $Author: Konstantin_Baumann $ 00023 // 00024 // $Log$ 00025 // Revision 1.9 2005/10/13 09:52:35 baumann 00026 // mipmap handling improved 00027 // 00028 // Revision 1.8 2005/01/03 01:43:10 klimetschek 00029 // - modified win32 project layout, splitted vrs.vcproj into vrs_container, vrs_core, vrs_sg, vrs_image, vrs_opengl and vrs_io 00030 // - removed vrs.vcproj 00031 // minor things: 00032 // - added all glutexamples to vrs4glut.sln 00033 // - fixed some problems in glutexamples 00034 // - removed all project references from all VS projects (using solution wide project dependencies instead) 00035 // 00036 // Revision 1.7 2004/11/03 14:45:07 saar 00037 // Class comment changed (Doxygen style) 00038 // 00039 // Revision 1.6 2004/03/12 16:28:41 baumann 00040 // macros VRS_NAMESPACE_BEGIN/_END expanded and removed 00041 // 00042 // Revision 1.5 2004/01/19 11:43:58 baumann 00043 // serialization mechanism improved 00044 // 00045 // Revision 1.4 2002/12/11 16:05:31 kirsch 00046 // use Matrix() instead of Matrix::identity in constructor 00047 // 00048 // Revision 1.3 2002/11/13 07:20:50 baumann 00049 // changed TextureGL enum values to uppercase 00050 // added TextureGL::definesComponent() 00051 // 00052 // Revision 1.2 2002/10/29 10:32:53 baumann 00053 // macros VRS_CLASSNAME_* and VRS_IMPL_TYPEINFO_* removed 00054 // 00055 // Revision 1.1 2002/04/24 05:02:42 baumann 00056 // 3D textures added 00057 // 00058 00059 #ifndef VRS_OPENGL_TEXTURE_TEXTURE3DGL_H 00060 #define VRS_OPENGL_TEXTURE_TEXTURE3DGL_H 00061 00062 #include <vrs/opengl/texturegl.h> 00063 00064 namespace VRS { 00065 00067 class VRS_CORE_API Texture3DGL : public TextureGL { 00068 00069 public: 00070 Texture3DGL(TextureGL::WrapMode wrapS = TextureGL::REPEAT, 00071 TextureGL::WrapMode wrapT = TextureGL::REPEAT, 00072 TextureGL::WrapMode wrapR = TextureGL::REPEAT, 00073 TextureGL::FilterMode minFilter = TextureGL::TRILINEAR, 00074 TextureGL::FilterMode maxFilter = TextureGL::LINEAR, 00075 GLfloat anisotropic = 1.0, 00076 const Matrix& matrix = Matrix(), 00077 const Color& borderColor = Color(0.0f, 0.0f, 0.0f, 0.0f), // transparent black 00078 GLenum internalFormat = GL_ZERO); 00089 virtual void setWrap(TextureGL::WrapMode wrapSTR); 00090 virtual void setWrapS(TextureGL::WrapMode wrapS); 00091 virtual void setWrapT(TextureGL::WrapMode wrapT); 00092 virtual void setWrapR(TextureGL::WrapMode wrapR); 00093 virtual TextureGL::WrapMode getWrapS() const; 00094 virtual TextureGL::WrapMode getWrapT() const; 00095 virtual TextureGL::WrapMode getWrapR() const; 00099 VRS_TYPEINFO(Texture3DGL, TextureGL); 00100 VRS_SERIALIZABLE(Texture3DGL); 00101 00102 private: 00103 WrapMode wrapS_; 00104 WrapMode wrapT_; 00105 WrapMode wrapR_; 00106 }; 00107 00108 } // namespace VRS 00109 00110 #endif // VRS_OPENGL_TEXTURE_TEXTURE3DGL_H