Panda3D
|
00001 // Filename: dxGraphicsDevice.h 00002 // Created by: masad (22Jul03) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef DXGRAPHICSDEVICE_H 00016 #define DXGRAPHICSDEVICE_H 00017 00018 //#define GSG_VERBOSE 1 00019 00020 #include "dxgsg9base.h" 00021 #include "graphicsDevice.h" 00022 #include "wdxGraphicsPipe9.h" 00023 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Class : DXGraphicsDevice9 00027 // Description : A GraphicsDevice necessary for multi-window rendering 00028 // in DX. 00029 //////////////////////////////////////////////////////////////////// 00030 class EXPCL_PANDADX DXGraphicsDevice9 : public GraphicsDevice { 00031 friend class wdxGraphicsPipe9; 00032 00033 public: 00034 DXGraphicsDevice9(wdxGraphicsPipe9 *pipe); 00035 ~DXGraphicsDevice9(); 00036 00037 DXScreenData _Scrn; 00038 LPDIRECT3DDEVICE9 _d3d_device; // same as Scrn._d3d_device, cached for spd 00039 IDirect3DSwapChain9 *_swap_chain; 00040 00041 #if 0 00042 protected: 00043 static TypeHandle get_class_type(); 00044 static void init_type(); 00045 virtual TypeHandle get_type() const; 00046 virtual TypeHandle force_init_type() {init_type(); return get_class_type();} 00047 #endif 00048 }; 00049 00050 #endif