| 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: fragmentshaderobject.h 6016 2007-08-09 12:59:18Z Konstantin_Baumann $ 00019 // 00020 // $Log$ 00021 // Revision 1.6 2006/05/17 12:25:43 baumann 00022 // changed GLenums from *_ARB to GL2 versions 00023 // 00024 // Revision 1.5 2005/09/27 19:54:41 baumann 00025 // serialization added to GL2 00026 // 00027 // Revision 1.4 2005/09/27 19:47:05 baumann 00028 // serialization added 00029 // 00030 // Revision 1.3 2005/01/03 08:32:08 kirsch 00031 // added VRS_CORE_API 00032 // 00033 // Revision 1.2 2004/11/03 14:45:07 saar 00034 // Class comment changed (Doxygen style) 00035 // 00036 // Revision 1.1 2004/10/06 09:49:14 nienhaus 00037 // support for the OpenGL shading language 00038 // (on behalf of kosta) 00039 // 00040 00041 #ifndef VRS_GL2_FRAGMENTSHADEROBJECT_H 00042 #define VRS_GL2_FRAGMENTSHADEROBJECT_H 00043 00044 #include <vrs/opengl/openglconfig.h> 00045 #include <vrs/opengl/gl2/shaderobject.h> 00046 00047 namespace VRS { 00048 namespace GL2 { 00049 00051 class VRS_CORE_API FragmentShaderObject : public ShaderObject { 00052 public: 00053 VRS_TYPEINFO(FragmentShaderObject, ShaderObject); 00054 VRS_SERIALIZABLE(FragmentShaderObject); 00055 00056 FragmentShaderObject(const std::string& source) : ShaderObject(source) { } 00058 00059 virtual GLenum type() const { return GL_FRAGMENT_SHADER; } 00061 00062 protected: 00063 FragmentShaderObject() { } // only for serialization 00064 }; // FragmentShaderObject 00065 00066 } // namespace GL2 00067 } // namespace VRS 00068 00069 #endif // VRS_GL2_FRAGMENTSHADEROBJECT_H