Line data Source code
1 :
2 : /* Copyright (c) 2011-2013, Stefan Eilemann <eile@eyescale.ch>
3 : *
4 : * This library is free software; you can redistribute it and/or modify it under
5 : * the terms of the GNU Lesser General Public License version 2.1 as published
6 : * by the Free Software Foundation.
7 : *
8 : * This library is distributed in the hope that it will be useful, but WITHOUT
9 : * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10 : * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11 : * details.
12 : *
13 : * You should have received a copy of the GNU Lesser General Public License
14 : * along with this library; if not, write to the Free Software Foundation, Inc.,
15 : * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16 : */
17 :
18 : #ifndef EQSEQUEL_DETAIL_WINDOW_H
19 : #define EQSEQUEL_DETAIL_WINDOW_H
20 :
21 : #include <seq/types.h>
22 : #include <eq/client/window.h> // base class
23 :
24 : namespace seq
25 : {
26 : namespace detail
27 : {
28 : class Window : public eq::Window
29 : {
30 : public:
31 : Window( eq::Pipe* parent );
32 :
33 : Config* getConfig();
34 : Pipe* getPipe();
35 : seq::Renderer* getRenderer();
36 : detail::Renderer* getRendererImpl();
37 :
38 : /** @name Operations. */
39 : //@{
40 : virtual void frameStart( const uint128_t& frameID,
41 : const uint32_t frameNumber );
42 : virtual void frameFinish( const uint128_t& frameID,
43 : const uint32_t frameNumber );
44 : virtual bool configInitGL( const uint128_t& initID );
45 : virtual bool configExitGL();
46 :
47 2 : bool initContext() { return eq::Window::configInitGL( uint128_t( )); }
48 2 : bool exitContext() { return eq::Window::configExitGL(); }
49 : //@}
50 :
51 : protected:
52 : virtual ~Window();
53 :
54 : private:
55 : };
56 : }
57 : }
58 :
59 : #endif // EQSEQUEL_DETAIL_WINDOW_H
|