Equalizer
1.4.1
|
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_WGL_PIPE_H 00020 #define EQ_WGL_PIPE_H 00021 00022 #include <eq/client/api.h> 00023 #include <eq/client/gl.h> // GLEW 00024 #include <eq/client/systemPipe.h> // base class 00025 00026 namespace eq 00027 { 00028 namespace wgl 00029 { 00031 class Pipe : public SystemPipe 00032 { 00033 public: 00035 EQ_API Pipe( eq::Pipe* parent ); 00036 00038 EQ_API virtual ~Pipe( ); 00039 00048 EQ_API virtual bool configInit(); 00049 00056 EQ_API virtual void configExit(); 00058 00071 EQ_API bool createWGLAffinityDC( HDC& affinityDC ); 00072 00081 EQ_API HDC createWGLDisplayDC(); 00082 00084 WGLEWContext* wglewGetContext() { return _wglewContext; } 00085 00086 protected: 00096 virtual bool configInitGL() { return true; } 00097 00098 private: 00100 WGLEWContext* const _wglewContext; 00101 00102 struct Private; 00103 Private* _private; // placeholder for binary-compatible changes 00104 00105 bool _configInitWGLEW(); 00106 bool _getGPUHandle( HGPUNV& handle ); 00107 }; 00108 } 00109 } 00110 #endif // EQ_WGL_PIPE_H