Equalizer  2.1.0
Parallel Rendering Framework
accum.h
1 
2 /* Copyright (c) 2009-2014, Stefan Eilemann <eile@equalizergraphics.com>
3  * 2009, Sarah Amsellem <sarah.amsellem@gmail.com>
4  *
5  * This library is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU Lesser General Public License version 2.1 as published
7  * by the Free Software Foundation.
8  *
9  * This library is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef EQUTIL_ACCUM_H
20 #define EQUTIL_ACCUM_H
21 
22 #include <eq/util/types.h>
23 
24 namespace eq
25 {
26 namespace util
27 {
28 namespace detail
29 {
30 class Accum;
31 }
32 
42 class Accum
43 {
44 public:
46  EQ_API explicit Accum(const GLEWContext* const glewContext);
47 
49  EQ_API ~Accum();
50 
59  EQ_API bool init(const PixelViewport& pvp, unsigned textureFormat);
60 
62  EQ_API void exit();
63 
72  EQ_API bool resize(const PixelViewport& pvp);
73  EQ_API bool resize(const int width, const int height);
74 
76  EQ_API void clear();
77 
82  EQ_API void accum();
83 
88  EQ_API void display();
89 
96  EQ_API uint32_t getMaxSteps() const;
97 
104  EQ_API uint32_t getNumSteps() const;
105 
115  EQ_API void setTotalSteps(uint32_t totalSteps);
116 
118  EQ_API uint32_t getTotalSteps();
119 
126  EQ_API bool usesFBO() const;
127 
135  EQ_API static bool usesFBO(const GLEWContext* glewContext);
136 
137  EQ_API const GLEWContext* glewGetContext() const;
138 
139 private:
140  Accum(const Accum&) = delete;
141  Accum& operator=(const Accum&) = delete;
142  detail::Accum* const _impl;
143 };
144 }
145 }
146 
147 #endif // EQUTIL_ACCUM_H
A C++ class to abstract an accumulation buffer.
Definition: accum.h:42
bool init(const int argc, char **argv, NodeFactory *nodeFactory)
Initialize the Equalizer client library.
Definition: init.h:58
The Equalizer client library.
Definition: eq/agl/types.h:23
EQ_API bool exit()
De-initialize the Equalizer client library.