Panda3D
Public Member Functions | Static Public Member Functions | Protected Attributes | Friends
GraphicsDevice Class Reference

An abstract device object that is part of Graphics Pipe. More...

#include "graphicsDevice.h"

Inheritance diagram for GraphicsDevice:
TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase DXGraphicsDevice8 DXGraphicsDevice9

List of all members.

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 ()
GraphicsPipeget_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

Detailed Description

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.


Constructor & Destructor Documentation

Normally, the GraphicsDevice constructor holds a reference to the Graphics Pipe that it is part of.

Definition at line 28 of file graphicsDevice.cxx.


Member Function Documentation

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().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations