Equalizer 1.0
|
00001 00002 /* Copyright (c) 2009-2010, Stefan Eilemann <eile@equalizergraphics.com> 00003 * 2009, Sarah Amsellem <sarah.amsellem@gmail.com> 00004 * 00005 * This library is free software; you can redistribute it and/or modify it under 00006 * the terms of the GNU Lesser General Public License version 2.1 as published 00007 * by the Free Software Foundation. 00008 * 00009 * This library is distributed in the hope that it will be useful, but WITHOUT 00010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00012 * details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public License 00015 * along with this library; if not, write to the Free Software Foundation, Inc., 00016 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00017 */ 00018 00019 #ifndef EQUTIL_ACCUMBUFFEROBJECT_H 00020 #define EQUTIL_ACCUMBUFFEROBJECT_H 00021 00022 #include <eq/util/frameBufferObject.h> // base class 00023 00024 #include <eq/fabric/pixelViewport.h> // member 00025 00026 namespace eq 00027 { 00028 namespace util 00029 { 00030 class Texture; 00031 00036 class AccumBufferObject : public FrameBufferObject 00037 { 00038 public: 00040 EQ_API AccumBufferObject( const GLEWContext* const glewContext ); 00041 00043 EQ_API ~AccumBufferObject(); 00044 00057 EQ_API bool init( const PixelViewport& pvp, const GLuint format ); 00058 00060 EQ_API void exit(); 00061 00072 EQ_API void load( const GLfloat value ); 00073 00084 EQ_API void accum( const GLfloat value ); 00085 00096 EQ_API void display( const GLfloat value ); 00097 00098 private: 00106 void _drawQuadWithTexture( Texture* texture, const PixelViewport& pvp, 00107 const GLfloat value ); 00108 00109 Texture* _texture; 00110 PixelViewport _pvp; 00111 }; 00112 } 00113 } 00114 00115 #endif // EQUTIL_ACCUMBUFFEROBJECT_H