Equalizer  1.4.1
include/eq/client/glx/pipe.h
00001 
00002 /* Copyright (c) 2009-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_GLX_PIPE_H
00020 #define EQ_GLX_PIPE_H
00021 
00022 #include <eq/client/glx/types.h>
00023 
00024 #include <eq/client/gl.h>         // GLXEWContext
00025 #include <eq/client/systemPipe.h> // base class
00026 
00027 namespace eq
00028 {
00029 namespace glx
00030 {
00032     class Pipe : public SystemPipe
00033     {
00034     public:
00036         Pipe( eq::Pipe* parent );
00037 
00039         virtual ~Pipe();
00040 
00049         EQ_API virtual bool configInit();
00050 
00057         EQ_API virtual void configExit();
00059 
00061         Display* getXDisplay() const { return _xDisplay; }
00062 
00064         GLXEWContext* glxewGetContext() { return _glxewContext; }
00065 
00067         static bool getGPUInfo( Display* display, GPUInfo& info );
00068 
00069     protected:
00079         void setXDisplay( Display* display );
00080 
00086         std::string getXDisplayString();
00087 
00096         virtual bool configInitGL() { return true; }
00097 
00098     private:
00100         Display* _xDisplay;
00101  
00103         GLXEWContext* const _glxewContext;
00104         bool _configInitGLXEW();
00105 
00106         struct Private;
00107         Private* _private; // placeholder for binary-compatible changes
00108     };
00109 }
00110 }
00111 #endif // EQ_GLX_PIPE_H
Generated on Mon Nov 26 2012 14:41:49 for Equalizer 1.4.1 by  doxygen 1.7.6.1