WH3DInit.h
上传用户:cydong117
上传日期:2009-11-10
资源大小:638k
文件大小:1k
源码类别:

模拟服务器

开发平台:

Visual C++

  1. /******************************************************************************************************************
  2.                                                                                                                    
  3. 葛碘疙:
  4. 累己磊:
  5. 累己老:
  6. [老磊][荐沥磊] : 荐沥 郴侩
  7.                                                                                                                    
  8. *******************************************************************************************************************/
  9. #ifndef _C3DINIT_H
  10. #define _C3DINIT_H
  11. class C3DInit
  12. {
  13. //1: Constructor/Destructor
  14. public:
  15. C3DInit();
  16. ~C3DInit();
  17. private:
  18. LPDIRECT3DDEVICE7 m_pd3dDevice;
  19. protected:
  20. D3DMATRIX m_matWorld;
  21. D3DMATRIX m_matView;
  22. D3DMATRIX m_matProj;
  23. D3DMATERIAL7 m_mtrl;
  24. public:
  25. HRESULT InitDeviceObjects();
  26.                                       
  27. __inline static C3DInit* GetObj() {  return m_px3DInit;  }
  28. __inline static VOID SetObj(C3DInit* pxObj) {  m_px3DInit = pxObj; }
  29. protected:
  30. static C3DInit* m_px3DInit;
  31. };
  32. #endif //_C3DINIT_H