12 #if !defined( __D3DX9XOF_H__ ) 13 #define __D3DX9XOF_H__ 15 #if defined( __cplusplus ) 21 #define D3DXF_FILEFORMAT_BINARY 0 22 #define D3DXF_FILEFORMAT_TEXT 1 23 #define D3DXF_FILEFORMAT_COMPRESSED 2 27 #define D3DXF_FILESAVE_TOFILE 0x00L 28 #define D3DXF_FILESAVE_TOWFILE 0x01L 32 #define D3DXF_FILELOAD_FROMFILE 0x00L 33 #define D3DXF_FILELOAD_FROMWFILE 0x01L 34 #define D3DXF_FILELOAD_FROMRESOURCE 0x02L 35 #define D3DXF_FILELOAD_FROMMEMORY 0x03L 58 #if defined( _WIN32 ) && !defined( _NO_COM ) 62 0xcef08cf9, 0x7b4f, 0x4429, 0x96, 0x24, 0x2a, 0x69, 0x0a, 0x93, 0x32, 0x01 );
66 0xcef08cfa, 0x7b4f, 0x4429, 0x96, 0x24, 0x2a, 0x69, 0x0a, 0x93, 0x32, 0x01 );
70 0xcef08cfb, 0x7b4f, 0x4429, 0x96, 0x24, 0x2a, 0x69, 0x0a, 0x93, 0x32, 0x01 );
74 0xcef08cfc, 0x7b4f, 0x4429, 0x96, 0x24, 0x2a, 0x69, 0x0a, 0x93, 0x32, 0x01 );
78 0xcef08cfd, 0x7b4f, 0x4429, 0x96, 0x24, 0x2a, 0x69, 0x0a, 0x93, 0x32, 0x01 );
82 #if defined( __cplusplus ) 83 #if !defined( DECLSPEC_UUID ) 85 #define DECLSPEC_UUID( x ) __declspec( uuid( x ) ) 87 #define DECLSPEC_UUID( x ) 91 interface DECLSPEC_UUID( "cef08cf9-7b4f-4429-9624-2a690a933201" )
93 interface DECLSPEC_UUID( "cef08cfa-7b4f-4429-9624-2a690a933201" )
95 interface DECLSPEC_UUID( "cef08cfb-7b4f-4429-9624-2a690a933201" )
97 interface DECLSPEC_UUID( "cef08cfc-7b4f-4429-9624-2a690a933201" )
99 interface DECLSPEC_UUID( "cef08cfd-7b4f-4429-9624-2a690a933201" )
102 #if defined( _COM_SMARTPTR_TYPEDEF ) 127 #define INTERFACE ID3DXFile 131 STDMETHOD( QueryInterface )( THIS_ REFIID, LPVOID* ) PURE;
132 STDMETHOD_( ULONG, AddRef )( THIS ) PURE;
133 STDMETHOD_( ULONG,
Release )( THIS ) PURE;
139 STDMETHOD( RegisterTemplates )( THIS_ LPCVOID, SIZE_T ) PURE;
148 #define INTERFACE ID3DXFileSaveObject 152 STDMETHOD( QueryInterface )( THIS_ REFIID, LPVOID* ) PURE;
153 STDMETHOD_( ULONG, AddRef )( THIS ) PURE;
154 STDMETHOD_( ULONG,
Release )( THIS ) PURE;
156 STDMETHOD( GetFile )( THIS_
ID3DXFile** ) PURE;
157 STDMETHOD( AddDataObject )( THIS_ REFGUID, LPCSTR,
CONST GUID*,
159 STDMETHOD( Save )( THIS ) PURE;
167 #define INTERFACE ID3DXFileSaveData 171 STDMETHOD( QueryInterface )( THIS_ REFIID, LPVOID* ) PURE;
172 STDMETHOD_( ULONG, AddRef )( THIS ) PURE;
173 STDMETHOD_( ULONG,
Release )( THIS ) PURE;
176 STDMETHOD( GetName )( THIS_ LPSTR, SIZE_T* ) PURE;
177 STDMETHOD( GetId )( THIS_ LPGUID ) PURE;
178 STDMETHOD( GetType )( THIS_ GUID* ) PURE;
179 STDMETHOD( AddDataObject )( THIS_ REFGUID, LPCSTR,
CONST GUID*,
181 STDMETHOD( AddDataReference )( THIS_ LPCSTR,
CONST GUID* ) PURE;
189 #define INTERFACE ID3DXFileEnumObject 193 STDMETHOD( QueryInterface )( THIS_ REFIID, LPVOID* ) PURE;
194 STDMETHOD_( ULONG, AddRef )( THIS ) PURE;
195 STDMETHOD_( ULONG,
Release )( THIS ) PURE;
197 STDMETHOD( GetFile )( THIS_
ID3DXFile** ) PURE;
198 STDMETHOD( GetChildren )( THIS_ SIZE_T* ) PURE;
200 STDMETHOD( GetDataObjectById )( THIS_ REFGUID,
ID3DXFileData** ) PURE;
201 STDMETHOD( GetDataObjectByName )( THIS_ LPCSTR,
ID3DXFileData** ) PURE;
209 #define INTERFACE ID3DXFileData 213 STDMETHOD( QueryInterface )( THIS_ REFIID, LPVOID* ) PURE;
214 STDMETHOD_( ULONG, AddRef )( THIS ) PURE;
215 STDMETHOD_( ULONG,
Release )( THIS ) PURE;
218 STDMETHOD( GetName )( THIS_ LPSTR, SIZE_T* ) PURE;
219 STDMETHOD( GetId )( THIS_ LPGUID ) PURE;
220 STDMETHOD( Lock )( THIS_ SIZE_T*, LPCVOID* ) PURE;
221 STDMETHOD( Unlock )( THIS ) PURE;
222 STDMETHOD( GetType )( THIS_ GUID* ) PURE;
223 STDMETHOD_(
BOOL, IsReference )( THIS ) PURE;
224 STDMETHOD( GetChildren )( THIS_ SIZE_T* ) PURE;
234 #define _FACD3DXF 0x876 236 #define D3DXFERR_BADOBJECT MAKE_HRESULT( 1, _FACD3DXF, 900 ) 237 #define D3DXFERR_BADVALUE MAKE_HRESULT( 1, _FACD3DXF, 901 ) 238 #define D3DXFERR_BADTYPE MAKE_HRESULT( 1, _FACD3DXF, 902 ) 239 #define D3DXFERR_NOTFOUND MAKE_HRESULT( 1, _FACD3DXF, 903 ) 240 #define D3DXFERR_NOTDONEYET MAKE_HRESULT( 1, _FACD3DXF, 904 ) 241 #define D3DXFERR_FILENOTFOUND MAKE_HRESULT( 1, _FACD3DXF, 905 ) 242 #define D3DXFERR_RESOURCENOTFOUND MAKE_HRESULT( 1, _FACD3DXF, 906 ) 243 #define D3DXFERR_BADRESOURCE MAKE_HRESULT( 1, _FACD3DXF, 907 ) 244 #define D3DXFERR_BADFILETYPE MAKE_HRESULT( 1, _FACD3DXF, 908 ) 245 #define D3DXFERR_BADFILEVERSION MAKE_HRESULT( 1, _FACD3DXF, 909 ) 246 #define D3DXFERR_BADFILEFLOATSIZE MAKE_HRESULT( 1, _FACD3DXF, 910 ) 247 #define D3DXFERR_BADFILE MAKE_HRESULT( 1, _FACD3DXF, 911 ) 248 #define D3DXFERR_PARSEERROR MAKE_HRESULT( 1, _FACD3DXF, 912 ) 249 #define D3DXFERR_BADARRAYSIZE MAKE_HRESULT( 1, _FACD3DXF, 913 ) 250 #define D3DXFERR_BADDATAREFERENCE MAKE_HRESULT( 1, _FACD3DXF, 914 ) 251 #define D3DXFERR_NOMOREOBJECTS MAKE_HRESULT( 1, _FACD3DXF, 915 ) 252 #define D3DXFERR_NOMOREDATA MAKE_HRESULT( 1, _FACD3DXF, 916 ) 253 #define D3DXFERR_BADCACHEFILE MAKE_HRESULT( 1, _FACD3DXF, 917 ) 260 #define WIN_TYPES(itype, ptype) typedef interface itype *LP##ptype, **LPLP##ptype 269 #if defined( __cplusplus ) Definition: d3dx9xof.h:41
interface ID3DXFileData ID3DXFileData
Definition: d3dx9xof.h:120
DWORD D3DXF_FILEFORMAT
Definition: d3dx9xof.h:19
interface ID3DXFileSaveData ID3DXFileSaveData
Definition: d3dx9xof.h:118
HMODULE hModule
Definition: d3dx9xof.h:43
WIN_TYPES(ID3DXFile, D3DXFILE)
DEFINE_GUID(IID_ID3DXBuffer, 0x932e6a7e, 0xc68e, 0x45dd, 0xa7, 0xbf, 0x53, 0xd1, 0x9c, 0x86, 0xdb, 0x1f)
DECLARE_INTERFACE_(ID3DXFile, IUnknown)
Definition: d3dx9xof.h:129
interface DECLSPEC_UUID("C530AD7D-9B16-4395-A979-BA2ECFF83ADD") ID3D10ShaderReflectionType
STDAPI D3DXFileCreate(ID3DXFile **lplpDirectXFile)
DWORD D3DXF_FILESAVEOPTIONS
Definition: d3dx9xof.h:25
SIZE_T dSize
Definition: d3dx9xof.h:55
struct _D3DXF_FILELOADRESOURCE D3DXF_FILELOADRESOURCE
LPCSTR lpName
Definition: d3dx9xof.h:44
static INLINE ULONG Release(void *object)
Definition: dxgi_common.h:253
unsigned int BOOL
Definition: gctypes.h:51
interface ID3DXFileSaveObject ID3DXFileSaveObject
Definition: d3dx9xof.h:117
interface ID3DXFileEnumObject ID3DXFileEnumObject
Definition: d3dx9xof.h:119
Definition: d3dx9xof.h:52
LPCVOID lpMemory
Definition: d3dx9xof.h:54
Definition: glslang_tab.cpp:133
DWORD D3DXF_FILELOADOPTIONS
Definition: d3dx9xof.h:30
LPCSTR lpType
Definition: d3dx9xof.h:45
interface ID3DXFile ID3DXFile
Definition: d3dx9xof.h:116
struct _D3DXF_FILELOADMEMORY D3DXF_FILELOADMEMORY