| 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: TextureArray2Dgl.h 5074 2005-10-13 09:52:35 +0000 (Do, 13 Okt 2005) baumann $ 00019 // $Date: 2005-10-13 09:52:35 +0000 (Do, 13 Okt 2005) $ 00020 // $Revision: 5074 $ 00021 // $State$ 00022 // $Author: baumann $ 00023 00024 #ifndef VRS_OPENGL_TEXTURE_TEXTUREARRAY2DGL_H 00025 #define VRS_OPENGL_TEXTURE_TEXTUREARRAY2DGL_H 00026 00027 #include <vrs/opengl/texturegl.h> 00028 00029 namespace VRS { 00030 00032 class VRS_CORE_API TextureArray2DGL : public TextureGL { 00033 00034 public: 00035 TextureArray2DGL(TextureGL::WrapMode wrapS = TextureGL::REPEAT, 00036 TextureGL::WrapMode wrapT = TextureGL::REPEAT, 00037 TextureGL::FilterMode minFilter = TextureGL::TRILINEAR, 00038 TextureGL::FilterMode magFilter = TextureGL::LINEAR, 00039 GLfloat anisotropic = 1.0, 00040 const Matrix& matrix = Matrix(), 00041 const Color& borderColor = Color::black, 00042 GLenum internalFormat = GL_ZERO); 00053 bool operator==(const TextureArray2DGL& other) const; 00054 00055 virtual void setWrap(TextureGL::WrapMode wrapST); 00056 virtual void setWrapS(TextureGL::WrapMode wrapS); 00057 virtual void setWrapT(TextureGL::WrapMode wrapT); 00058 virtual TextureGL::WrapMode getWrapS() const; 00059 virtual TextureGL::WrapMode getWrapT() const; 00063 VRS_TYPEINFO(TextureArray2DGL, TextureGL); 00064 VRS_SERIALIZABLE(TextureArray2DGL); 00065 00066 private: 00067 WrapMode wrapS_; 00068 WrapMode wrapT_; 00069 }; 00070 00071 } // namespace VRS 00072 00073 #endif // VRS_OPENGL_TEXTURE_TEXTUREARRAY2DGL_H