accumBufferObject.h

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 namespace eq
00025 {
00026 namespace util
00027 {
00028     class Texture;
00029 
00034     class AccumBufferObject : public FrameBufferObject
00035     {
00036     public: 
00038         EQ_EXPORT AccumBufferObject( GLEWContext* const glewContext );
00039 
00041         EQ_EXPORT ~AccumBufferObject();
00042 
00055         EQ_EXPORT bool init( const PixelViewport& pvp,
00056                              GLuint format );
00057 
00059         EQ_EXPORT void exit();
00060 
00069         EQ_EXPORT void load( GLfloat value );
00070 
00079         EQ_EXPORT void accum( GLfloat value );
00080 
00088         EQ_EXPORT void display( GLfloat value );
00089 
00090     private:
00097         void _drawQuadWithTexture( Texture* texture, const PixelViewport& pvp, GLfloat value );
00098 
00099         Texture* _texture;
00100         PixelViewport _pvp;
00101     };
00102 }
00103 }
00104 
00105 #endif // EQUTIL_ACCUMBUFFEROBJECT_H
Generated on Sat Feb 6 12:59:39 2010 for Equalizer 0.9.1 by  doxygen 1.6.1