Panda3D
dxGraphicsDevice9.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file dxGraphicsDevice9.h
10  * @author masad
11  * @date 2003-07-22
12  */
13 
14 #ifndef DXGRAPHICSDEVICE_H
15 #define DXGRAPHICSDEVICE_H
16 
17 // #define GSG_VERBOSE 1
18 
19 #include "dxgsg9base.h"
20 #include "graphicsDevice.h"
21 #include "wdxGraphicsPipe9.h"
22 
23 
24 /**
25  * A GraphicsDevice necessary for multi-window rendering in DX.
26  */
27 class EXPCL_PANDADX DXGraphicsDevice9 : public GraphicsDevice {
28  friend class wdxGraphicsPipe9;
29 
30 public:
33 
34  DXScreenData _Scrn;
35  LPDIRECT3DDEVICE9 _d3d_device; // same as Scrn._d3d_device, cached for spd
36  IDirect3DSwapChain9 *_swap_chain;
37 
38 #if 0
39 protected:
40  static TypeHandle get_class_type();
41  static void init_type();
42  virtual TypeHandle get_type() const;
43  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
44 #endif
45 };
46 
47 #endif
A GraphicsDevice necessary for multi-window rendering in DX.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.