Equalizer  1.4.1
glWindow.h
00001 
00002 /* Copyright (c) 2005-2012, Stefan Eilemann <eile@equalizergraphics.com>
00003  *                    2009, Makhinya Maxim
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_GL_WINDOW_H
00020 #define EQ_GL_WINDOW_H
00021 
00022 #include <eq/client/systemWindow.h>         // base class
00023 
00024 namespace eq
00025 {
00033     class GLWindow : public SystemWindow
00034     {
00035     public:
00037         EQ_API GLWindow( Window* parent );
00038 
00040         EQ_API virtual ~GLWindow();
00041 
00043         EQ_API virtual void makeCurrent( const bool cache = true ) const;
00044 
00049         EQ_API bool isCurrent() const;
00050 
00054         EQ_API virtual void bindFrameBuffer() const;
00055 
00057         EQ_API virtual bool configInitFBO();
00058 
00060         EQ_API virtual void configExitFBO();
00061 
00063         virtual const util::FrameBufferObject* getFrameBufferObject()
00064             const { return _fbo; }
00066      
00068         EQ_API virtual void initGLEW();
00069         
00071         virtual void exitGLEW() { _glewInitialized = false; }
00072         
00087         EQ_API virtual const GLEWContext* glewGetContext() const;
00088 
00093         EQ_API virtual void queryDrawableConfig( DrawableConfig& );
00094 
00095     private:
00096         bool _glewInitialized ;
00097         
00099         GLEWContext* const _glewContext;
00100 
00102         util::FrameBufferObject* _fbo;
00103 
00104         GLEWContext* glewGetContext();
00105 
00106         struct Private;
00107         Private* _private; // placeholder for binary-compatible changes
00108     };
00109 }
00110 
00111 
00112 #endif // EQ_GL_WINDOW_H
00113 
Generated on Mon Nov 26 2012 14:41:49 for Equalizer 1.4.1 by  doxygen 1.7.6.1