HW-SD  1.0.0
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
hwsd::GPUInfo Struct Reference

A structure containing GPU-specific information. More...

#include <gpuInfo.h>

+ Inheritance diagram for hwsd::GPUInfo:
+ Collaboration diagram for hwsd::GPUInfo:

Public Member Functions

 GPUInfo ()
 Default constructor pointing to the default display.
 GPUInfo (const std::string &name)
 Constructor pointing to default display of a specific GPU type.
void invalidatePVP ()
 Invalidate the pixel viewport.
bool operator== (const GPUInfo &rhs) const
bool operator!= (const GPUInfo &rhs) const
std::string getName () const
- Public Member Functions inherited from hwsd::NodeInfo
 NodeInfo ()
 Default constructor describing a local session.
bool operator== (const NodeInfo &rhs) const
bool operator!= (const NodeInfo &rhs) const

Public Attributes

unsigned type
 Four-character code of the GPU type.
unsigned port
 The display (GLX) or ignored (WGL, AGL).
unsigned device
 The screen (GLX, WGL), GPU (WGLn, WGLa) or virtual screen (AGL).
int pvp [4]
 The size and location of the GPU (x,y,w,h).
unsigned flags
 bitmask of additional GPU capabilities
unsigned unused
char dummy [32]
 Buffer for binary-compatible additions.
- Public Attributes inherited from hwsd::NodeInfo
lunchbox::UUID id
 Random unique ID identifing the origin node.
std::string nodeName
 System hostname if remote, empty for local.
std::string session
 The session name: local, default or custom string.
char dummy [32]
 Buffer for binary-compatible additions.

Static Public Attributes

static const unsigned defaultValue = UINT_MAX
 A non-enumerated port or device.
static const unsigned FLAG_VIRTUALGL = 0x1
 Process runs under VirtualGL.
static const unsigned FLAG_VIRTUALGL_DISPLAY = 0x2
 VirtualGL redirect GPU.

Detailed Description

A structure containing GPU-specific information.

Definition at line 32 of file gpuInfo.h.

Constructor & Destructor Documentation

hwsd::GPUInfo::GPUInfo ( )
inline

Default constructor pointing to the default display.

Version
1.0

Definition at line 44 of file gpuInfo.h.

References invalidatePVP().

+ Here is the call graph for this function:

hwsd::GPUInfo::GPUInfo ( const std::string &  name)
inline

Constructor pointing to default display of a specific GPU type.

The information name is a type code of four characters. The passed string is formatted accordingly.

Parameters
namethe type of the GPU.
Version
1.0

Definition at line 58 of file gpuInfo.h.

References invalidatePVP(), and type.

+ Here is the call graph for this function:

Member Function Documentation

std::string hwsd::GPUInfo::getName ( ) const
inline
Returns
the type name string of this information.
Version
1.0

Definition at line 91 of file gpuInfo.h.

References type.

void hwsd::GPUInfo::invalidatePVP ( )
inline

Invalidate the pixel viewport.

Version
1.0

Definition at line 67 of file gpuInfo.h.

References pvp.

Referenced by GPUInfo().

+ Here is the caller graph for this function:

bool hwsd::GPUInfo::operator!= ( const GPUInfo rhs) const
inline
Returns
true if both infos are not identical.
Version
1.0

Definition at line 85 of file gpuInfo.h.

bool hwsd::GPUInfo::operator== ( const GPUInfo rhs) const
inline
Returns
true if both informations are identical.
Version
1.0

Definition at line 76 of file gpuInfo.h.

References device, port, pvp, and type.

Member Data Documentation

const unsigned hwsd::GPUInfo::defaultValue = UINT_MAX
static

A non-enumerated port or device.

Version
1.0

Definition at line 35 of file gpuInfo.h.

unsigned hwsd::GPUInfo::device

The screen (GLX, WGL), GPU (WGLn, WGLa) or virtual screen (AGL).

Version
1.0

Definition at line 104 of file gpuInfo.h.

Referenced by operator==().

const unsigned hwsd::GPUInfo::FLAG_VIRTUALGL = 0x1
static

Process runs under VirtualGL.

Version
1.1.2

Definition at line 38 of file gpuInfo.h.

const unsigned hwsd::GPUInfo::FLAG_VIRTUALGL_DISPLAY = 0x2
static

VirtualGL redirect GPU.

Version
1.1.2

Definition at line 41 of file gpuInfo.h.

unsigned hwsd::GPUInfo::port

The display (GLX) or ignored (WGL, AGL).

Version
1.0

Definition at line 98 of file gpuInfo.h.

Referenced by operator==().

int hwsd::GPUInfo::pvp[4]

The size and location of the GPU (x,y,w,h).

Version
1.0

Definition at line 107 of file gpuInfo.h.

Referenced by invalidatePVP(), and operator==().

unsigned hwsd::GPUInfo::type

Four-character code of the GPU type.

Version
1.0

Definition at line 95 of file gpuInfo.h.

Referenced by getName(), GPUInfo(), and operator==().


The documentation for this struct was generated from the following file: