The interface definition for OS-specific GPU handling. More...
#include <osPipe.h>


Public Member Functions | |
| OSPipe (Pipe *parent) | |
| Create a new OSPipe for the given eq::Pipe. | |
| virtual | ~OSPipe () |
| Destroy the OSPipe. | |
| const std::string & | getErrorMessage () const |
| Pipe * | getPipe () |
| const Pipe * | getPipe () const |
Methods forwarded from eq::Pipe | |
| virtual bool | configInit ()=0 |
| Initialize the GPU. | |
| virtual void | configExit ()=0 |
| De-initialize the GPU. | |
Protected Member Functions | |
Error information. | |
| void | setErrorMessage (const std::string &message) |
| Set a message why the last operation failed. | |
Protected Attributes | |
| Pipe *const | _pipe |
| The parent eq::Pipe. | |
| std::string | _error |
| The reason for the last error. | |
The interface definition for OS-specific GPU handling.
The OSPipe abstracts all OS-system specific code for handling a GPU, which facilitates porting to new windowing systems. Each Pipe uses one OSPipe, which is initialized in Pipe::configInit. The OSPipe has to set the pipe's PixelViewport if it is invalid during configInit().
Definition at line 37 of file osPipe.h.
| eq::OSPipe::OSPipe | ( | Pipe * | parent | ) |
Create a new OSPipe for the given eq::Pipe.
Definition at line 25 of file osPipe.cpp.
References _pipe.
| eq::OSPipe::~OSPipe | ( | ) | [virtual] |
Destroy the OSPipe.
Definition at line 31 of file osPipe.cpp.
| virtual bool eq::OSPipe::configInit | ( | ) | [pure virtual] |
Initialize the GPU.
Implemented in eq::AGLPipe, eq::GLXPipe, and eq::WGLPipe.
Referenced by eq::Pipe::configInit().

| virtual void eq::OSPipe::configExit | ( | ) | [pure virtual] |
De-initialize the GPU.
Implemented in eq::AGLPipe, eq::GLXPipe, and eq::WGLPipe.
Referenced by eq::Pipe::configExit().

| const std::string& eq::OSPipe::getErrorMessage | ( | ) | const [inline] |
Definition at line 56 of file osPipe.h.
Referenced by eq::Pipe::configInit().

| Pipe* eq::OSPipe::getPipe | ( | ) | [inline] |
| const Pipe* eq::OSPipe::getPipe | ( | ) | const [inline] |
| void eq::OSPipe::setErrorMessage | ( | const std::string & | message | ) | [inline, protected] |
Set a message why the last operation failed.
The message will be transmitted to the originator of the request, for example to Config::init when set from within the configInit method.
| message | the error message. |
Definition at line 75 of file osPipe.h.
Referenced by eq::GLXPipe::configInit(), eq::AGLPipe::configInit(), and eq::WGLPipe::createWGLAffinityDC().

Pipe* const eq::OSPipe::_pipe [protected] |
The parent eq::Pipe.
Definition at line 79 of file osPipe.h.
Referenced by eq::WGLPipe::configExit(), eq::WGLPipe::configInit(), eq::GLXPipe::configInit(), eq::AGLPipe::configInit(), eq::WGLPipe::createWGLDisplayDC(), and OSPipe().
std::string eq::OSPipe::_error [protected] |
0.9.1 by
1.6.1