Equalizer  2.1.0
Parallel Rendering Framework
glx/pipe.h
1 
2 /* Copyright (c) 2009-2014, Stefan Eilemann <eile@equalizergraphics.com>
3  * 2009, Maxim Makhinya
4  *
5  * This library is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU Lesser General Public License version 2.1 as published
7  * by the Free Software Foundation.
8  *
9  * This library is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef EQ_GLX_PIPE_H
20 #define EQ_GLX_PIPE_H
21 
22 #include <eq/glx/types.h>
23 
24 #include <eq/systemPipe.h> // base class
25 
26 namespace eq
27 {
28 namespace glx
29 {
30 namespace detail
31 {
32 class Pipe;
33 }
34 
36 class Pipe : public SystemPipe
37 {
38 public:
40  Pipe(eq::Pipe* parent);
41 
43  virtual ~Pipe();
44 
53  EQ_API virtual bool configInit();
54 
61  EQ_API virtual void configExit();
63 
65  EQ_API Display* getXDisplay() const;
66 
68  EQ_API GLXEWContext* glxewGetContext();
69 
71  static bool getGPUInfo(Display* display, GPUInfo& info);
72 
73 protected:
83  void setXDisplay(Display* display);
84 
90  std::string getXDisplayString();
91 
100  virtual bool configInitGL() { return true; }
101 private:
102  detail::Pipe* const _impl;
103 
104  bool _configInitGLXEW();
105 };
106 }
107 }
108 #endif // EQ_GLX_PIPE_H
A Pipe represents a graphics card (GPU) on a Node.
Definition: pipe.h:50
virtual bool configInitGL()
Initialize this pipe for OpenGL.
Definition: glx/pipe.h:100
The interface definition for system-specific GPU handling.
Definition: systemPipe.h:38
The Equalizer client library.
Definition: eq/agl/types.h:23
Default implementation of a glX system pipe.
Definition: glx/pipe.h:36