Panda3D
 All Classes Functions Variables Enumerations
dxGraphicsDevice9.h
1 // Filename: dxGraphicsDevice.h
2 // Created by: masad (22Jul03)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef DXGRAPHICSDEVICE_H
16 #define DXGRAPHICSDEVICE_H
17 
18 //#define GSG_VERBOSE 1
19 
20 #include "dxgsg9base.h"
21 #include "graphicsDevice.h"
22 #include "wdxGraphicsPipe9.h"
23 
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : DXGraphicsDevice9
27 // Description : A GraphicsDevice necessary for multi-window rendering
28 // in DX.
29 ////////////////////////////////////////////////////////////////////
30 class EXPCL_PANDADX DXGraphicsDevice9 : public GraphicsDevice {
31  friend class wdxGraphicsPipe9;
32 
33 public:
36 
37  DXScreenData _Scrn;
38  LPDIRECT3DDEVICE9 _d3d_device; // same as Scrn._d3d_device, cached for spd
39  IDirect3DSwapChain9 *_swap_chain;
40 
41 #if 0
42 protected:
43  static TypeHandle get_class_type();
44  static void init_type();
45  virtual TypeHandle get_type() const;
46  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
47 #endif
48 };
49 
50 #endif
A GraphicsDevice necessary for multi-window rendering in DX.
An abstract device object that is part of Graphics Pipe.
This graphics pipe represents the interface for creating DirectX9 graphics windows.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85