1 | ' d3dx9xof.sbp
|
---|
2 |
|
---|
3 |
|
---|
4 | #ifndef _INC_D3DX9XOF
|
---|
5 | #define _INC_D3DX9XOF
|
---|
6 |
|
---|
7 |
|
---|
8 | Class ID3DXFile
|
---|
9 | Inherits IUnknown
|
---|
10 | Public
|
---|
11 | Abstract Function CreateEnumObject(pData As VoidPtr, dwFileLoadOptions As DWord, ppD3DXFileEnumObject As **ID3DXFileEnumObject) As DWord
|
---|
12 | Abstract Function CreateSaveObject(pData As VoidPtr, dwFileSaveOptions As DWord, dwFileFormat As DWord, ppD3DXFileSaveObject As **ID3DXFileSaveObject) As DWord
|
---|
13 | Abstract Function RegisterTemplates(pData As VoidPtr, dwSize As DWord) As DWord
|
---|
14 | Abstract Function RegisterEnumTemplates(pD3DXFileEnumObject As *ID3DXFileEnumObject) As DWord
|
---|
15 | End Class
|
---|
16 |
|
---|
17 |
|
---|
18 | Class ID3DXFileSaveObject
|
---|
19 | Inherits IUnknown
|
---|
20 | Public
|
---|
21 | Abstract Function GetFile(ppD3DXFile As **ID3DXFile) As DWord
|
---|
22 | Abstract Function AddDataObject(ByRef rguidTemplate As GUID, szName As BytePtr, pId As *GUID, cbSize As DWord, pvData As VoidPtr, ppObj As **ID3DXFileSaveData) As DWord
|
---|
23 | Abstract Function Save() As DWord
|
---|
24 | End Class
|
---|
25 |
|
---|
26 |
|
---|
27 | Class ID3DXFileSaveData
|
---|
28 | Inherits IUnknown
|
---|
29 | Public
|
---|
30 | Abstract Function GetSave(ppD3DXFileSaveObject As **ID3DXFileSaveObject) As DWord
|
---|
31 | Abstract Function GetName(pBuffer As BytePtr, lpdwSize As DWordPtr) As DWord
|
---|
32 | Abstract Function GetId(pGuid As *GUID) As DWord
|
---|
33 | Abstract Function GetType(pGuid As *GUID) As DWord
|
---|
34 | Abstract Function AddDataObject(ByRef rguidTemplate As GUID, szName As BytePtr, pId As *GUID, cbSize As DWord, pvData As VoidPtr, ppObj As **ID3DXFileSaveData) As DWord
|
---|
35 | Abstract Function AddDataReference(pBuffer As BytePtr, pGuid As *GUID) As DWord
|
---|
36 | End Class
|
---|
37 |
|
---|
38 |
|
---|
39 | Class ID3DXFileEnumObject
|
---|
40 | Inherits IUnknown
|
---|
41 | Public
|
---|
42 | Abstract Function GetFile(ppD3DXFile As **ID3DXFile) As DWord
|
---|
43 | Abstract Function GetChildren(dwSize As DWord) As DWord
|
---|
44 | Abstract Function GetChild(dwSize As DWord, ppD3DXFileData As **ID3DXFileData) As DWord
|
---|
45 | Abstract Function GetDataObjectById(ByRef rguidTemplate As GUID, ppD3DXFileData As **ID3DXFileData) As DWord
|
---|
46 | Abstract Function GetDataObjectByName(pName As BytePtr, ppD3DXFileData As **ID3DXFileData) As DWord
|
---|
47 | End Class
|
---|
48 |
|
---|
49 |
|
---|
50 | Class ID3DXFileData
|
---|
51 | Inherits IUnknown
|
---|
52 | Public
|
---|
53 | Abstract Function GetEnum(ppD3DXFileEnumObject As **ID3DXFileEnumObject) As DWord
|
---|
54 | Abstract Function GetName(pBuffer As BytePtr, lpdwSize As DWordPtr) As DWord
|
---|
55 | Abstract Function GetId(pId As *GUID) As DWord
|
---|
56 | Abstract Function Lock(dwSize As DWord, pData As VoidPtr) As DWord
|
---|
57 | Abstract Function Unlock() As DWord
|
---|
58 | Abstract Function GetType(pGuid As *GUID) As DWord
|
---|
59 | Abstract Function IsReference() As Long
|
---|
60 | Abstract Function GetChildren(dwSize As DWord) As DWord
|
---|
61 | Abstract Function GetChild(dwSize As DWord, ppD3DFileData As **ID3DXFileData) As DWord
|
---|
62 | End Class
|
---|
63 |
|
---|
64 | '未完成
|
---|
65 | 'Declare Function Lib "dx9abm" Alias "_abm" () As DWord
|
---|
66 |
|
---|
67 |
|
---|
68 | #endif '_INC_D3DX9XOF
|
---|