Equalizer  1.4.1
systemWindow.h
00001 
00002 /* Copyright (c) 2005-2012, Stefan Eilemann <eile@equalizergraphics.com>
00003  *                    2009, Maxim Makhinya
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 EQ_SYSTEM_WINDOW_H
00020 #define EQ_SYSTEM_WINDOW_H
00021 
00022 #include <eq/client/types.h>
00023 #include <eq/client/window.h>         // Window::IAttribute enum
00024 
00025 namespace eq
00026 {
00035     class SystemWindow
00036     {
00037     public:
00039         EQ_API SystemWindow( Window* parent );
00040 
00042         EQ_API virtual ~SystemWindow();
00043         
00056         EQ_API virtual bool configInit() = 0;
00057 
00066         EQ_API virtual void configExit() = 0;
00067 
00076         EQ_API virtual void makeCurrent( const bool cache = true ) const = 0;
00077 
00079         EQ_API virtual void bindFrameBuffer() const = 0;
00080 
00082         EQ_API virtual void swapBuffers() = 0;
00083 
00094         EQ_API virtual void joinNVSwapBarrier( const uint32_t group,
00095                                                const uint32_t barrier ) = 0;
00097 
00101         EQ_API bool configInitFBO();
00102 
00104         EQ_API void configExitFBO();
00105 
00107         virtual const util::FrameBufferObject* getFrameBufferObject()
00108             const { return 0; }
00110 
00114         Window* getWindow() { return _window; }
00115 
00117         const Window* getWindow() const { return _window; }
00118 
00120         EQ_API Pipe* getPipe();
00121 
00123         EQ_API const Pipe* getPipe() const;
00124 
00126         EQ_API Node* getNode();
00127 
00129         EQ_API const Node* getNode() const;
00130 
00132         EQ_API Config* getConfig();
00133 
00135         EQ_API const Config* getConfig() const;
00136 
00138         EQ_API int32_t getIAttribute( const Window::IAttribute attr ) const;
00140 
00145         EQ_API virtual void queryDrawableConfig( DrawableConfig& dc ) = 0;
00146 
00161         virtual const GLEWContext* glewGetContext() const { return 0; }
00162 
00171         EQ_API void setError( const int32_t error );
00172 
00174         EQ_API co::Error getError() const;
00175 
00177         EQ_API virtual bool processEvent( const Event& event );
00178 
00179     private:
00181         Window* const _window;
00182         
00183         struct Private;
00184         Private* _private; // placeholder for binary-compatible changes
00185     };
00186 }
00187 
00188 
00189 #endif // EQ_SYSTEM_WINDOW_H
00190 
Generated on Mon Nov 26 2012 14:41:49 for Equalizer 1.4.1 by  doxygen 1.7.6.1