Equalizer  1.4.1
accumBufferObject.h
00001 
00002 /* Copyright (c) 2009-2011, 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 #include <eq/util/types.h>
00024 
00025 #include <eq/fabric/pixelViewport.h> // member
00026 
00027 namespace eq
00028 {
00029 namespace util
00030 {
00035     class AccumBufferObject : public FrameBufferObject
00036     {
00037     public: 
00039         EQ_API AccumBufferObject( const GLEWContext* const glewContext );
00040 
00042         EQ_API ~AccumBufferObject();
00043 
00056         EQ_API bool init( const PixelViewport& pvp, const unsigned format );
00057 
00059         EQ_API void exit();
00060 
00071         EQ_API void load( const float value );
00072 
00083         EQ_API void accum( const float value );
00084 
00095         EQ_API void display( const float value );
00096 
00097     private:
00105         void _drawQuadWithTexture( Texture* texture, const PixelViewport& pvp,
00106                                    const float value );
00107 
00108         Texture* _texture;
00109         PixelViewport _pvp;
00110     };
00111 }
00112 }
00113 
00114 #endif // EQUTIL_ACCUMBUFFEROBJECT_H
Generated on Mon Nov 26 2012 14:41:48 for Equalizer 1.4.1 by  doxygen 1.7.6.1