|
Equalizer 1.1.3-git
|
00001 00002 /* Copyright (c) 2009-2011, 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/gl.h> // GLXEWContext 00023 #include <eq/client/glXTypes.h> 00024 #include <eq/client/systemPipe.h> // base class 00025 #include <eq/client/types.h> 00026 00027 namespace eq 00028 { 00030 class GLXPipe : public SystemPipe 00031 { 00032 public: 00034 GLXPipe( Pipe* parent ); 00035 00037 virtual ~GLXPipe( ); 00038 00047 EQ_API virtual bool configInit(); 00048 00055 EQ_API virtual void configExit(); 00057 00059 Display* getXDisplay() const { return _xDisplay; } 00060 00062 GLXEWContext* glxewGetContext() { return _glxewContext; } 00063 00065 static bool getGPUInfo( Display* display, GPUInfo& info ); 00066 00067 protected: 00077 void setXDisplay( Display* display ); 00078 00084 std::string getXDisplayString(); 00085 00094 virtual bool configInitGL() { return true; } 00095 00096 private: 00098 Display* _xDisplay; 00099 00101 GLXEWContext* const _glxewContext; 00102 bool _configInitGLXEW(); 00103 00104 struct Private; 00105 Private* _private; // placeholder for binary-compatible changes 00106 }; 00107 } 00108 00109 #endif // EQ_GLX_PIPE_H
1.1.3-git by
1.7.4