Panda3D

Loading...
Searching...
No Matches
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:
31 DXGraphicsDevice9(wdxGraphicsPipe9 *pipe);
32 ~DXGraphicsDevice9();
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
GraphicsDevice::GraphicsDevice
GraphicsDevice(GraphicsPipe *pipe)
Normally, the GraphicsDevice constructor holds a reference to the Graphics Pipe that it is part of.
Definition graphicsDevice.cxx:25
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
dxgsg9base.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
graphicsDevice.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
DXScreenData
Definition dxgsg9base.h:200
wdxGraphicsPipe9.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.