Panda3D
 All Classes Functions Variables Enumerations
dxGraphicsDevice8.h
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 "dxgsg8base.h"
00021 #include "graphicsDevice.h"
00022 #include "wdxGraphicsPipe8.h"
00023 
00024 
00025 ////////////////////////////////////////////////////////////////////
00026 //   Class : DXGraphicsDevice8
00027 // Description : A GraphicsDevice necessary for multi-window rendering
00028 //               in DX. 
00029 ////////////////////////////////////////////////////////////////////
00030 class EXPCL_PANDADX DXGraphicsDevice8 : public GraphicsDevice {
00031   friend class wdxGraphicsPipe8;
00032 
00033 public:
00034   DXGraphicsDevice8(wdxGraphicsPipe8 *pipe);
00035   ~DXGraphicsDevice8();
00036 
00037   DXScreenData _Scrn;
00038   LPDIRECT3DDEVICE8 _d3d_device;  // same as Scrn._d3d_device, cached for spd
00039   IDirect3DSwapChain8 *_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
00051 
 All Classes Functions Variables Enumerations