Equalizer  1.11.0
Parallel Rendering Framework
systemPipe.h
1 
2 /* Copyright (c) 2009-2015, Stefan Eilemann <eile@equalizergraphics.com>
3  * Maxim Makhinya
4  * Daniel Nachbaur <danielnachbaur@gmail.com>
5  *
6  * This library is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License version 2.1 as published
8  * by the Free Software Foundation.
9  *
10  * This library is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13  * details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this library; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef EQ_SYSTEM_PIPE_H
21 #define EQ_SYSTEM_PIPE_H
22 
23 #include <eq/api.h>
24 #include <eq/error.h> // enum
25 #include <eq/types.h>
26 #include <string>
27 
28 namespace eq
29 {
39 {
40 public:
42  EQ_API explicit SystemPipe( Pipe* parent );
43 
45  EQ_API virtual ~SystemPipe( );
46 
50  EQ_API virtual bool configInit() = 0;
51 
53  EQ_API virtual void configExit() = 0;
55 
57  Pipe* getPipe() { return _pipe; }
58 
60  const Pipe* getPipe() const { return _pipe; }
61 
64  float getMaxOpenGLVersion() const { return _maxOpenGLVersion; }
65 
66 protected:
74  EQ_API EventOCommand sendError( const uint32_t error );
76 
77  float _maxOpenGLVersion;
78 
79 private:
81  Pipe* const _pipe;
82 };
83 }
84 
85 #endif // EQ_SYSTEM_PIPE_H
virtual EQ_API bool configInit()=0
Initialize the GPU.
const Pipe * getPipe() const
Definition: systemPipe.h:60
EQ_API SystemPipe(Pipe *parent)
Create a new SstemPipe for the given eq::Pipe.
virtual EQ_API ~SystemPipe()
Destroy the SystemPipe.
Pipe * getPipe()
Definition: systemPipe.h:57
A Pipe represents a graphics card (GPU) on a Node.
Definition: pipe.h:50
EQ_API EventOCommand sendError(const uint32_t error)
Send a pipe error event to the application node.
The interface definition for system-specific GPU handling.
Definition: systemPipe.h:38
float getMaxOpenGLVersion() const
Definition: systemPipe.h:64
The Equalizer client library.
Definition: eq/agl/types.h:23
virtual EQ_API void configExit()=0
De-initialize the GPU.