Equalizer  1.8.0
Parallel Rendering Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
include/eq/client/agl/pipe.h
1 
2 /* Copyright (c) 2009-2013, 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_AGL_PIPE_H
20 #define EQ_AGL_PIPE_H
21 
22 #include <eq/defines.h>
23 #ifdef AGL
24 
25 #include <eq/client/agl/types.h>
26 #include <eq/client/systemPipe.h> // base class
27 
28 namespace eq
29 {
30 namespace agl
31 {
38  class Pipe : public SystemPipe
39  {
40  public:
42  Pipe( eq::Pipe* parent );
43 
45  virtual ~Pipe( );
46 
55  virtual bool configInit( );
56 
63  virtual void configExit( );
65 
67  CGDirectDisplayID getCGDisplayID() const { return _cgDisplayID; }
68 
69  private:
70 
81  void _setCGDisplayID( CGDirectDisplayID id );
83 
85  CGDirectDisplayID _cgDisplayID;
86 
87  struct Private;
88  Private* _private; // placeholder for binary-compatible changes
89  };
90 }
91 }
92 #endif // AGL
93 #endif // EQ_AGL_PIPE_H
A Pipe represents a graphics card (GPU) on a Node.