Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cDX9.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cDX9_H
7 #define _INC_cDX9_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "cDXBase.h"
15 
16 #ifdef USE_DX9
17 
18 #ifndef MAKE_D3DHRESULT
19 #define MAKE_D3DHRESULT(x) (0x88760000|(x))
20 #endif
21 
22 namespace Gray3D
23 {
24  class GRAY3D_LINK cDX9 : public cIUnkPtr<IDirect3D9>, public cSingletonStatic<cDX9>
25  {
32  public:
33  static const HResultCode k_Codes[];
34  public:
35  cDX9() noexcept;
36  ~cDX9();
37  bool InitDX9();
38  };
39 
40  extern cDX9 GRAY3D_LINK g_DX9; // cSingletonStatic ???
41 }
42 #endif
43 
44 #endif // _INC_cDX9_H
#define GRAY3D_LINK
Definition: Gray3D.h:15
Definition: Gray3D.cpp:12