Panda3D
|
An abstract device object that is part of Graphics Pipe. More...
#include "graphicsDevice.h"
Public Member Functions | |
GraphicsDevice (GraphicsPipe *pipe) | |
Normally, the GraphicsDevice constructor holds a reference to the Graphics Pipe that it is part of. | |
virtual TypeHandle | force_init_type () |
GraphicsPipe * | get_pipe () const |
Returns the GraphicsPipe that this device is associated with. | |
virtual TypeHandle | get_type () const |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Protected Attributes | |
GraphicsPipe * | _pipe |
Friends | |
class | GraphicsEngine |
class | GraphicsPipe |
An abstract device object that is part of Graphics Pipe.
This device is set to NULL for OpenGL. But DirectX uses it to take control of multiple windows under single device or multiple devices (i.e. more than one adapters in the machine).
Definition at line 33 of file graphicsDevice.h.
GraphicsDevice::GraphicsDevice | ( | GraphicsPipe * | pipe | ) |
Normally, the GraphicsDevice constructor holds a reference to the Graphics Pipe that it is part of.
Definition at line 28 of file graphicsDevice.cxx.
GraphicsPipe * GraphicsDevice::get_pipe | ( | ) | const [inline] |
Returns the GraphicsPipe that this device is associated with.
Definition at line 23 of file graphicsDevice.I.
static void GraphicsDevice::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from TypedReferenceCount.
Definition at line 53 of file graphicsDevice.h.
References TypedReferenceCount::init_type().