Equalizer  1.2.1
glWindow.h
00001 
00002 /* Copyright (c) 2005-2011, 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;
00044 
00048         EQ_API virtual void bindFrameBuffer() const;
00049 
00051         EQ_API virtual bool configInitFBO();
00052 
00054         EQ_API virtual void configExitFBO();
00055 
00057         virtual const util::FrameBufferObject* getFrameBufferObject()
00058             const { return _fbo; }
00060      
00062         EQ_API virtual void initGLEW();
00063         
00065         virtual void exitGLEW() { _glewInitialized = false; }
00066         
00081         EQ_API virtual const GLEWContext* glewGetContext() const;
00082 
00087         EQ_API virtual void queryDrawableConfig( DrawableConfig& );
00088 
00089     private:
00090         bool _glewInitialized ;
00091         
00093         GLEWContext* const _glewContext;
00094 
00096         util::FrameBufferObject* _fbo;
00097 
00098         GLEWContext* glewGetContext();
00099 
00100         struct Private;
00101         Private* _private; // placeholder for binary-compatible changes
00102     };
00103 }
00104 
00105 
00106 #endif // EQ_GL_WINDOW_H
00107 
Generated on Fri Jun 8 2012 15:44:31 for Equalizer 1.2.1 by  doxygen 1.8.0