glXPipe.h

00001 
00002 /* Copyright (c) 2009, Stefan Eilemann <eile@equalizergraphics.com>
00003                      , 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_OS_PIPE_GLX_H
00020 #define EQ_OS_PIPE_GLX_H
00021 
00022 #include <eq/client/osPipe.h> // base class
00023 
00024 namespace eq
00025 {
00026     class GLXEventHandler;
00027 
00029     class EQ_EXPORT GLXPipe : public OSPipe
00030     {
00031     public:
00032         GLXPipe( Pipe* parent );
00033         virtual ~GLXPipe( );
00034 
00042         virtual bool configInit( );
00043 
00049         virtual void configExit( );
00050 
00052         virtual void initEventHandler();
00054         virtual void exitEventHandler();
00056 
00058         Display* getXDisplay() const { return _xDisplay; }
00059 
00061         GLXEventHandler* getGLXEventHandler() { return _eventHandler; }
00062 
00063     private:
00072         void _setXDisplay( Display* display );
00073 
00078         std::string _getXDisplayString();
00079 
00080         //check if it should be private
00081         static int XErrorHandler( Display* display, XErrorEvent* event );
00082 
00084         Display* _xDisplay;
00085 
00087         GLXEventHandler* _eventHandler;
00088 
00089         union // placeholder for binary-compatible changes
00090         {
00091             char dummy[64];
00092         };
00093     };
00094 }
00095 
00096 #endif // EQ_OS_PIPE_GLX_H
Generated on Mon Aug 10 18:58:39 2009 for Equalizer 0.9 by  doxygen 1.5.8