Go to the documentation of this file.
21 #include "../../SDL_internal.h"
23 #ifndef SDL_directx_h_
24 #define SDL_directx_h_
42 #define MAKE_HRESULT(sev,fac,code) \
43 ((HRESULT)(((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))))
47 #define S_OK (HRESULT)0x00000000L
51 #define SUCCEEDED(x) ((HRESULT)(x) >= 0)
54 #define FAILED(x) ((HRESULT)(x)<0)
58 #define E_FAIL (HRESULT)0x80000008L
61 #define E_NOINTERFACE (HRESULT)0x80004002L
64 #define E_OUTOFMEMORY (HRESULT)0x8007000EL
67 #define E_INVALIDARG (HRESULT)0x80070057L
70 #define E_NOTIMPL (HRESULT)0x80004001L
72 #ifndef REGDB_E_CLASSNOTREG
73 #define REGDB_E_CLASSNOTREG (HRESULT)0x80040154L
77 #ifndef SEVERITY_ERROR
78 #define SEVERITY_ERROR 1
82 #ifndef FACILITY_WIN32
83 #define FACILITY_WIN32 7
87 #define FIELD_OFFSET(type, field) ((LONG)&(((type *)0)->field))
93 #define DIRECTDRAW_VERSION 0x0700
94 #define DIRECTSOUND_VERSION 0x0800
95 #define DIRECTINPUT_VERSION 0x0800