source: trunk/ab5.0/ablib/src/directx9/d3d9.sbp

Last change on this file was 303, checked in by イグトランス (egtra), 17 years ago

フルコンパイルでのミスあぶり出し。註:修正は全て@300や@301以前に行われた。

File size: 25.0 KB
Line 
1'd3d9.sbp - Direct3D include file
2
3
4#ifndef _INC_D3D9
5#define _INC_D3D9
6
7
8Const DIRECT3D_VERSION = &H0900
9Const D3D_SDK_VERSION = 32
10
11#require <directx9\d3d9types.sbp>
12#require <directx9\d3d9caps.sbp>
13
14
15'--------------
16' DirectX9 API
17'--------------
18
19Declare Function Direct3DCreate9 Lib "d3d9.dll" (SDKVersion As DWord) As LPDIRECT3D9
20
21
22'--------------------
23' DirectX9 Interface
24'--------------------
25
26Interface IDirect3D9
27 Inherits IUnknown
28Public
29 'IDirect3D9 methods
30 Function ShoRegisterSoftwareDevice(pInitializeFunction As VoidPtr) As DWord
31 Function GetAdapterCount() As DWord
32 Function GetAdapterIdentifier(Adapter As DWord, Flags As DWord, pIdentifier As *D3DADAPTER_IDENTIFIER9) As DWord
33 Function GetAdapterModeCount(Adapter As DWord, Format As D3DFORMAT) As DWord
34 Function EnumAdapterModes(Adapter As DWord, Format As D3DFORMAT, Mode As DWord, pMode As *D3DDISPLAYMODE) As DWord
35 Function GetAdapterDisplayMode(Adapter As DWord, pMode As *D3DDISPLAYMODE) As DWord
36 Function CheckDeviceType(Adapter As DWord, DevType As D3DDEVTYPE, AdapterFormat As D3DFORMAT, BackBufferFormat As D3DFORMAT, bWindowed As Long) As DWord
37 Function CheckDeviceFormat(Adapter As DWord, DeviceType As D3DDEVTYPE, AdapterFormat As D3DFORMAT, Usage As DWord, RType As D3DRESOURCETYPE, CheckFormat As D3DFORMAT) As DWord
38 Function CheckDeviceMultiSampleType(Adapter As DWord, DeviceType As D3DDEVTYPE, SurfaceFormat As D3DFORMAT, Windowed As Long, MultiSampleType As D3DMULTISAMPLE_TYPE, pQualityLevels As DWordPtr) As DWord
39 Function CheckDepthStencilMatch(Adapter As DWord, DeviceType As D3DDEVTYPE, AdapterFormat As D3DFORMAT, RenderTargetFormat As D3DFORMAT, DepthStencilFormat As D3DFORMAT) As DWord
40 Function CheckDeviceFormatConversion(Adapter As DWord, DeviceType As D3DDEVTYPE, SourceFormat As D3DFORMAT, TargetFormat As D3DFORMAT) As DWord
41 Function GetDeviceCaps(Adapter As DWord, DeviceType As D3DDEVTYPE, pCaps As *D3DCAPS9) As DWord
42 Function GetAdapterMonitor(Adapter As DWord) As DWord
43 Function CreateDevice(Adapter As DWord, DeviceType As D3DDEVTYPE, hFocusWindow As HWND, BehaviorFlags As DWord, pPresentationParameters As *D3DPRESENT_PARAMETERS, ppReturnedDeviceInterface As *LPDIRECT3DDEVICE9) As DWord
44End Interface
45TypeDef LPDIRECT3D9 = *IDirect3D9
46
47Interface IDirect3DDevice9
48 Inherits IUnknown
49Public
50 'IDirect3DDevice9 methods
51 Function TestCooperativeLevel() As DWord
52 Function GetAvailableTextureMem() As DWord
53 Function EvictManagedResources() As DWord
54 Function GetDirect3D(ppD3D9 As *LPDIRECT3D9) As DWord
55 Function GetDeviceCaps(pCaps As *D3DCAPS9) As DWord
56 Function GetDisplayMode(iSwapChain As DWord, pMode As DWordPtr) As DWord
57 Function GetCreationParameters(pParameters As *D3DDEVICE_CREATION_PARAMETERS) As DWord
58 Function SetCursorProperties(XHotSpot As DWord, YHotSpot As DWord,pCursorBitmap As *IDirect3DSurface9) As DWord
59 Sub SetCursorPosition(X As Long, Y As Long, Flags As DWord)
60 Function ShowCursor(bShow As Long) As Long
61 Function CreateAdditionalSwapChain(pPresentationParameters As *D3DPRESENT_PARAMETERS, ppSwapChain As **IDirect3DSwapChain9) As DWord
62 Function GetSwapChain(iSwapChain As DWord, ppSwapChain As **IDirect3DSwapChain9) As DWord
63 Function GetNumberOfSwapChains() As DWord
64 Function Reset(pPresentationParameters As *D3DPRESENT_PARAMETERS) As DWord
65 Function Present(pSourceRect As *RECT, pDestRect As *RECT, hDestWindowOverride As DWord, pDirtyRegion As *RGNDATA) As DWord
66 Function GetBackBuffer(iSwapChain As DWord, iBackBuffer As DWord, bufType As D3DBACKBUFFER_TYPE, ppBackBuffer As **IDirect3DSurface9) As DWord
67 Function GetRasterStatus(iSwapChain As DWord, pRasterStatus As *D3DRASTER_STATUS) As DWord
68 Function SetDialogBoxMode(bEnableDialogs As Long) As DWord
69 Sub SetGammaRamp(iSwapChain As DWord, Flags As DWord, pRamp As *D3DGAMMARAMP)
70 Sub GetGammaRamp(iSwapChain As DWord, pRamp As *D3DGAMMARAMP)
71 Function CreateTexture(Width As DWord, Height As DWord, Levels As DWord, Usage As DWord, Format As D3DFORMAT, Pool As D3DPOOL, ppTexture As **IDirect3DTexture9, pSharedHandle As DWordPtr) As DWord
72 Function CreateVolumeTexture(Width As DWord, Height As DWord, Depth As DWord, Levels As DWord, Usage As DWord, Format As D3DFORMAT, Pool As D3DPOOL, ppVolumeTexture As **IDirect3DVolumeTexture9, pSharedHandle As DWordPtr) As DWord
73 Function CreateCubeTexture(EdgeLength As DWord, Levels As DWord, Usage As DWord, Format As D3DFORMAT, Pool As D3DPOOL, ppCubeTexture As **IDirect3DCubeTexture9, pSharedHandle As DWordPtr) As DWord
74 Function CreateVertexBuffer(Length As DWord, Usage As DWord, FVF As DWord, Pool As D3DPOOL, ppVertexBuffer As **IDirect3DVertexBuffer9, pSharedHandle As DWordPtr) As DWord
75 Function CreateIndexBuffer(Length As DWord, Usage As DWord, Format As D3DFORMAT, Pool As D3DPOOL, ppIndexBuffer As **IDirect3DIndexBuffer9, pSharedHandle As DWordPtr) As DWord
76 Function CreateRenderTarget(Width As DWord, Height As DWord, Format As D3DFORMAT, MultiSample As D3DMULTISAMPLE_TYPE, MultisampleQuality As DWord, Lockable As Long, ppSurface As **IDirect3DSurface9, pSharedHandle As DWordPtr) As DWord
77 Function CreateDepthStencilSurface(Width As DWord, Height As DWord, Format As D3DFORMAT, MultiSample As D3DMULTISAMPLE_TYPE, MultisampleQuality As DWord, Discard As Long, ppSurface As **IDirect3DSurface9, pSharedHandle As DWordPtr) As DWord
78 Function UpdateSurface(pSourceSurface As *IDirect3DSurface9, pSourceRect As *RECT, pDestinationSurface As *IDirect3DSurface9, pDestPoint As *POINTAPI) As DWord
79 Function UpdateTexture(pSourceTexture As *IDirect3DBaseTexture9, pDestinationTexture As *IDirect3DBaseTexture9) As DWord
80 Function GetRenderTargetData(pRenderTarget As *IDirect3DSurface9, pDestSurface As *IDirect3DSurface9) As DWord
81 Function GetFrontBufferData(iSwapChain As DWord, pDestSurface As *IDirect3DSurface9) As DWord
82 Function StretchRect(pSourceSurface As *IDirect3DSurface9, pSourceRect As *RECT, pDestSurface As *IDirect3DSurface9, pDestRect As *RECT, Filter As D3DTEXTUREFILTERTYPE) As DWord
83 Function ColorFill(pSurface As *IDirect3DSurface9, pRect As *RECT,dwColor As DWord) As DWord
84 Function CreateOffscreenPlainSurface(Width As DWord, Height As DWord, Format As D3DFORMAT, Pool As D3DPOOL, ppSurface As **IDirect3DSurface9, pSharedHandle As DWordPtr) As DWord
85 Function SetRenderTarget(RenderTargetIndex As DWord, pRenderTarget As *IDirect3DSurface9) As DWord
86 Function GetRenderTarget(RenderTargetIndex As DWord, ppRenderTarget As **IDirect3DSurface9) As DWord
87 Function SetDepthStencilSurface(pNewZStencil As *IDirect3DSurface9) As DWord
88 Function GetDepthStencilSurface(ppZStencilSurface As **IDirect3DSurface9) As DWord
89 Function BeginScene() As DWord
90 Function EndScene() As DWord
91 Function Clear(Count As DWord, pRects As *D3DRECT, Flags As DWord, dwColor As DWord, Z As Single, Stencil As DWord) As DWord
92 Function SetTransform(State As D3DTRANSFORMSTATETYPE, pMatrix As *D3DMATRIX) As DWord
93 Function GetTransform(State As D3DTRANSFORMSTATETYPE, pMatrix As *D3DMATRIX) As DWord
94 Function MultiplyTransform(State As D3DTRANSFORMSTATETYPE, pMatrix As *D3DMATRIX) As DWord
95 Function SetViewport(pViewport As *D3DVIEWPORT9) As DWord
96 Function GetViewport(pViewport As *D3DVIEWPORT9) As DWord
97 Function SetMaterial(pMaterial As *D3DMATERIAL9) As DWord
98 Function GetMaterial(pMaterial As *D3DMATERIAL9) As DWord
99 Function SetLight(Index As DWord, pLight As *D3DLIGHT9) As DWord
100 Function GetLight(Index As DWord, pLight As *D3DLIGHT9) As DWord
101 Function LightEnable(Index As DWord, Enable As Long) As DWord
102 Function GetLightEnable(Index As DWord, pEnable As DWordPtr) As DWord
103 Function SetClipPlane(Index As DWord, pPlane As SinglePtr) As DWord
104 Function GetClipPlane(Index As DWord, pPlane As SinglePtr) As DWord
105 Function SetRenderState(State As D3DRENDERSTATETYPE, Value As DWord) As DWord
106 Function GetRenderState(State As D3DRENDERSTATETYPE, pValue As DWordPtr) As DWord
107 Function CreateStateBlock(BlockType As D3DSTATEBLOCKTYPE, ppSB As **IDirect3DStateBlock9) As DWord
108 Function BeginStateBlock() As DWord
109 Function EndStateBlock(ppSB As **IDirect3DStateBlock9) As DWord
110 Function SetClipStatus(pClipStatus As *D3DCLIPSTATUS9) As DWord
111 Function GetClipStatus(pClipStatus As *D3DCLIPSTATUS9) As DWord
112 Function GetTexture(Stage As DWord, ppTexture As **IDirect3DBaseTexture9) As DWord
113 Function SetTexture(Stage As DWord, pTexture As *IDirect3DBaseTexture9) As DWord
114 Function GetTextureStageState(Stage As DWord, StateType As D3DTEXTURESTAGESTATETYPE, pValue As DWordPtr) As DWord
115 Function SetTextureStageState(Stage As DWord, StateType As D3DTEXTURESTAGESTATETYPE, Value As DWord) As DWord
116 Function GetSamplerState(Sampler As DWord, SamplerStateType As D3DSAMPLERSTATETYPE, pValue As DWordPtr) As DWord
117 Function SetSamplerState(Sampler As DWord, SamplerStateType As D3DSAMPLERSTATETYPE, Value As DWord) As DWord
118 Function ValidateDevice(pNumPasses As DWordPtr) As DWord
119 Function SetPaletteEntries(PaletteNumber As DWord, pEntries As *PALETTEENTRY) As DWord
120 Function GetPaletteEntries(PaletteNumber As DWord, pEntries As *PALETTEENTRY) As DWord
121 Function SetCurrentTexturePalette(PaletteNumber As DWord) As DWord
122 Function GetCurrentTexturePalette(pPaletteNumber As DWordPtr) As DWord
123 Function SetScissorRect(pRect As *RECT) As DWord
124 Function GetScissorRect(pRect As *RECT) As DWord
125 Function SetSoftwareVertexProcessing(bSoftware As Long) As DWord
126 Function GetSoftwareVertexProcessing() As Long
127 Function SetNPatchMode(nSegments As Single) As DWord
128 Function GetNPatchMode() As Single
129 Function DrawPrimitive(PrimitiveType As D3DPRIMITIVETYPE, StartVertex As DWord, PrimitiveCount As DWord) As DWord
130 Function DrawIndexedPrimitive(PrimitiveType As D3DPRIMITIVETYPE, BaseVertexIndex As Long, MinVertexIndex As DWord, NumVertices As DWord, startIndex As DWord, primCount As DWord) As DWord
131 Function DrawPrimitiveUP(PrimitiveType As D3DPRIMITIVETYPE, PrimitiveCount As DWord, pVertexStreamZeroData As VoidPtr, VertexStreamZeroStride As DWord) As DWord
132 Function DrawIndexedPrimitiveUP(PrimitiveType As D3DPRIMITIVETYPE, MinVertexIndex As DWord, NumVertices As DWord, PrimitiveCount As DWord, pIndexData As VoidPtr, IndexDataFormat As D3DFORMAT, pVertexStreamZeroData As VoidPtr, VertexStreamZeroStride As DWord) As DWord
133 Function ProcessVertices(SrcStartIndex As DWord, DestIndex As DWord, VertexCount As DWord, pDestBuffer As *IDirect3DVertexBuffer9, pVertexDecl As *IDirect3DVertexDeclaration9, Flags As DWord) As DWord
134 Function CreateVertexDeclaration(pVertexElements As *D3DVERTEXELEMENT9, ppDecl As **IDirect3DVertexDeclaration9) As DWord
135 Function SetVertexDeclaration(pDecl As *IDirect3DVertexDeclaration9) As DWord
136 Function GetVertexDeclaration(ppDecl As **IDirect3DVertexDeclaration9) As DWord
137 Function SetFVF(FVF As DWord) As DWord
138 Function GetFVF(pFVF As DWordPtr) As DWord
139 Function CreateVertexShader(pFunction As DWordPtr, ppShader As **IDirect3DVertexShader9) As DWord
140 Function SetVertexShader(pShader As *IDirect3DVertexShader9) As DWord
141 Function GetVertexShader(ppShader As **IDirect3DVertexShader9) As DWord
142 Function SetVertexShaderConstantF(StartRegister As DWord, pConstantData As SinglePtr, Vector4fCount As DWord) As DWord
143 Function GetVertexShaderConstantF(StartRegister As DWord, pConstantData As SinglePtr, Vector4fCount As DWord) As DWord
144 Function SetVertexShaderConstantI(StartRegister As DWord, pConstantData As WordPtr, Vector4iCount As DWord) As DWord
145 Function GetVertexShaderConstantI(StartRegister As DWord, pConstantData As WordPtr, Vector4iCount As DWord) As DWord
146 Function SetVertexShaderConstantB(StartRegister As DWord, pConstantData As DWordPtr, BoolCount As DWord) As DWord
147 Function GetVertexShaderConstantB(StartRegister As DWord, pConstantData As DWordPtr, BoolCount As DWord) As DWord
148 Function SetStreamSource(StreamNumber As DWord, pStreamData As *IDirect3DVertexBuffer9, OffsetInBytes As DWord, Stride As DWord) As DWord
149 Function GetStreamSource(StreamNumber As DWord, ppStreamData As **IDirect3DVertexBuffer9, pOffsetInBytes As DWordPtr, pStride As DWordPtr) As DWord
150 Function SetStreamSourceFreq(StreamNumber As DWord, Setting As DWord) As DWord
151 Function GetStreamSourceFreq(StreamNumber As DWord, pSetting As DWordPtr) As DWord
152 Function SetIndices(pIndexData As *IDirect3DIndexBuffer9) As DWord
153 Function GetIndices(ppIndexData As **IDirect3DIndexBuffer9) As DWord
154 Function CreatePixelShader(pFunction As DWordPtr, ppShader As **IDirect3DPixelShader9) As DWord
155 Function SetPixelShader(pShader As *IDirect3DPixelShader9) As DWord
156 Function GetPixelShader(ppShader As **IDirect3DPixelShader9) As DWord
157 Function SetPixelShaderConstantF(StartRegister As DWord, pConstantData As SinglePtr, Vector4fCount As DWord) As DWord
158 Function GetPixelShaderConstantF(StartRegister As DWord, pConstantData As SinglePtr, Vector4fCount As DWord) As DWord
159 Function SetPixelShaderConstantI(StartRegister As DWord, pConstantData As WordPtr, Vector4iCount As DWord) As DWord
160 Function GetPixelShaderConstantI(StartRegister As DWord, pConstantData As WordPtr, Vector4iCount As DWord) As DWord
161 Function SetPixelShaderConstantB(StartRegister As DWord, pConstantData As DWordPtr, BoolCount As DWord) As DWord
162 Function GetPixelShaderConstantB(StartRegister As DWord, pConstantData As DWordPtr, BoolCount As DWord) As DWord
163 Function DrawRectPatch(Handle As DWord, pNumSegs As SinglePtr, pRectPatchInfo As *D3DRECTPATCH_INFO) As DWord
164 Function DrawTriPatch(Handle As DWord, pNumSegs As SinglePtr, pTriPatchInfo As *D3DTRIPATCH_INFO) As DWord
165 Function DeletePatch(Handle As DWord) As DWord
166 Function CreateQuery(QueryType As D3DQUERYTYPE, ppQuery As **IDirect3DQuery9) As DWord
167End Interface
168TypeDef LPDIRECT3DDEVICE9 = *IDirect3DDevice9
169
170Interface IDirect3DStateBlock9
171 Inherits IUnknown
172Public
173 'IDirect3DStateBlock9 methods
174 Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
175 Function Capture() As DWord
176 Function Apply() As DWord
177End Interface
178TypeDef LPDIRECT3DSTATEBLOCK9 = *IDirect3DStateBlock9
179
180Interface IDirect3DSwapChain9
181 Inherits IUnknown
182Public
183 'IDirect3DSwapChain9 methods
184 Function Present(pSourceRect As *RECT, pDestRect As *RECT, hDestWindowOverride As DWord, pDirtyRegion As *RGNDATA, dwFlags As DWord) As DWord
185 Function GetFrontBufferData(pDestSurface As *IDirect3DSurface9) As DWord
186 Function GetBackBuffer(iBackBuffer As DWord, bbtype As D3DBACKBUFFER_TYPE, ppBackBuffer As **IDirect3DSurface9) As DWord
187 Function GetRasterStatus(pRasterStatus As *D3DRASTER_STATUS) As DWord
188 Function GetDisplayMode(pMode As *D3DDISPLAYMODE) As DWord
189 Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
190 Function GetPresentParameters(pPresentationParameters As *D3DPRESENT_PARAMETERS) As DWord
191End Interface
192TypeDef LPDIRECT3DSWAPCHAIN9 = *IDirect3DSwapChain9
193
194Interface IDirect3DResource9
195 Inherits IUnknown
196Public
197 'IDirect3DResource9 methods
198 Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
199 Function SetPrivateData(ByRef refguid As GUID, pData As VoidPtr, SizeOfData As DWord, Flags As DWord) As DWord
200 Function GetPrivateData(ByRef refguid As GUID, pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
201 Function FreePrivateData(ByRef refguid As GUID) As DWord
202 Function SetPriority(PriorityNew As DWord) As DWord
203 Function GetPriority() As DWord
204 Sub PreLoad()
205 Function GetType() As D3DRESOURCETYPE
206End Interface
207TypeDef LPDIRECT3DRESOURCE9 = *IDirect3DResource9
208
209Interface IDirect3DVertexDeclaration9
210 Inherits IUnknown
211Public
212 'IDirect3DVertexDeclaration9 methods
213 Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
214 Function GetDeclaration(pElement As *D3DVERTEXELEMENT9, pNumElements As DWordPtr) As DWord
215End Interface
216TypeDef LPDIRECT3DVERTEXDECLARATION9 = *IDirect3DVertexDeclaration9
217
218Interface IDirect3DVertexShader9
219 Inherits IUnknown
220Public
221 'IDirect3DVertexShader9 methods
222 Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
223 Function GetFunction(pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
224End Interface
225TypeDef LPDIRECT3DVERTEXSHADER9 = *IDirect3DVertexShader9
226
227Interface IDirect3DPixelShader9
228 Inherits IUnknown
229Public
230 'IDirect3DPixelShader9 methods
231 Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
232 Function GetFunction(pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
233End Interface
234TypeDef LPDIRECT3DPIXELSHADER9 = *IDirect3DPixelShader9
235
236Interface IDirect3DBaseTexture9
237 Inherits IUnknown
238Public
239 'IDirect3DResource9 methods
240 Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
241 Function SetPrivateData(ByRef refguid As GUID, pData As VoidPtr, SizeOfData As DWord, Flags As DWord) As DWord
242 Function GetPrivateData(ByRef refguid As GUID, pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
243 Function FreePrivateData(ByRef refguid As GUID) As DWord
244 Function SetPriority(PriorityNew As DWord) As DWord
245 Function GetPriority() As DWord
246 Sub PreLoad()
247 Function GetType() As D3DRESOURCETYPE
248 Function SetLOD(LODNew As DWord) As DWord
249 Function GetLOD() As DWord
250 Function GetLevelCount() As DWord
251 Function SetAutoGenFilterType(FilterType As D3DTEXTUREFILTERTYPE) As DWord
252 Function GetAutoGenFilterType() As D3DTEXTUREFILTERTYPE
253 Sub GenerateMipSubLevels()
254End Interface
255TypeDef LPDIRECT3DBASETEXTURE9 = *IDirect3DBaseTexture9
256
257Interface IDirect3DTexture9
258 Inherits IDirect3DBaseTexture9
259Public
260 Function GetLevelDesc(Level As DWord, pDesc As *D3DSURFACE_DESC) As DWord
261 Function GetSurfaceLevel(Level As DWord, ppSurfaceLevel As **IDirect3DSurface9) As DWord
262 Function LockRect(Level As DWord, pLockedRect As *D3DLOCKED_RECT, pRect As *RECT, Flags As DWord) As DWord
263 Function UnlockRect(Level As DWord) As DWord
264 Function AddDirtyRect(pDirtyRect As *RECT) As DWord
265End Interface
266TypeDef LPDIRECT3DTEXTURE9 = *IDirect3DTexture9
267
268Interface IDirect3DVolumeTexture9
269 Inherits IDirect3DBaseTexture9
270Public
271 Function GetLevelDesc(Level As DWord, pDesc As *D3DSURFACE_DESC) As DWord
272 Function GetVolumeLevel(Level As DWord, ppVolumeLevel As **IDirect3DVolume9) As DWord
273 Function LockBox(Level As DWord, pLockedVolume As *D3DLOCKED_BOX, pBox As *D3DBOX, Flags As DWord) As DWord
274 Function UnlockBox(Level As DWord) As DWord
275 Function AddDirtyBox(pDirtyBox As *D3DBOX) As DWord
276End Interface
277TypeDef LPDIRECT3DVOLUMETEXTURE9 = *IDirect3DVolumeTexture9
278
279Interface IDirect3DCubeTexture9
280 Inherits IDirect3DBaseTexture9
281End Interface
282TypeDef LPDIRECT3DCUBETEXTURE9 = *IDirect3DCubeTexture9
283
284Interface IDirect3DVertexBuffer9
285 Inherits IUnknown
286Public
287 'IDirect3DResource9 methods
288 Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
289 Function SetPrivateData(ByRef refguid As GUID, pData As VoidPtr, SizeOfData As DWord, Flags As DWord) As DWord
290 Function GetPrivateData(ByRef refguid As GUID, pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
291 Function FreePrivateData(ByRef refguid As GUID) As DWord
292 Function SetPriority(PriorityNew As DWord) As DWord
293 Function GetPriority() As DWord
294 Sub PreLoad()
295 Function GetType() As D3DRESOURCETYPE
296 Function Lock(OffsetToLock As DWord, SizeToLock As DWord, ppbData As VoidPtr, Flags As DWord) As DWord
297 Function Unlock() As DWord
298 Function GetDesc(pDesc As *D3DVERTEXBUFFER_DESC) As DWord
299End Interface
300TypeDef LPDIRECT3DVERTEXBUFFER9 = *IDirect3DVertexBuffer9
301
302Interface IDirect3DIndexBuffer9
303 Inherits IUnknown
304Public
305 'IDirect3DResource9 methods
306 Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
307 Function SetPrivateData(ByRef refguid As GUID, pData As VoidPtr, SizeOfData As DWord, Flags As DWord) As DWord
308 Function GetPrivateData(ByRef refguid As GUID, pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
309 Function FreePrivateData(ByRef refguid As GUID) As DWord
310 Function SetPriority(PriorityNew As DWord) As DWord
311 Function GetPriority() As DWord
312 Sub PreLoad()
313 Function GetType() As D3DRESOURCETYPE
314 Function Lock(OffsetToLock As DWord, SizeToLock As DWord, ppbData As VoidPtr, Flags As DWord) As DWord
315 Function Unlock() As DWord
316 Function GetDesc(pDesc As *D3DINDEXBUFFER_DESC) As DWord
317End Interface
318TypeDef LPDIRECT3DINDEXBUFFER9 = *IDirect3DIndexBuffer9
319
320Interface IDirect3DSurface9
321 Inherits IUnknown
322Public
323 'IDirect3DResource9 methods
324 Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
325 Function SetPrivateData(ByRef refguid As GUID, pData As VoidPtr, SizeOfData As DWord, Flags As DWord) As DWord
326 Function GetPrivateData(ByRef refguid As GUID, pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
327 Function FreePrivateData(ByRef refguid As GUID) As DWord
328 Function SetPriority(PriorityNew As DWord) As DWord
329 Function GetPriority() As DWord
330 Sub PreLoad()
331 Function GetType() As D3DRESOURCETYPE
332 Function GetContainer(ByRef riid As GUID, ppContainer As VoidPtr) As DWord
333 Function GetDesc(pDesc As *D3DSURFACE_DESC) As DWord
334 Function LockRect(pLockedRect As *D3DLOCKED_RECT, pRect As *RECT, Flags As DWord) As DWord
335 Function UnlockRect() As DWord
336 Function GetDC(phdc As DWordPtr) As DWord
337 Function ReleaseDC(hdc As DWord) As DWord
338End Interface
339TypeDef LPDIRECT3DSURFACE9 = *IDirect3DSurface9
340
341Interface IDirect3DVolume9
342 Inherits IUnknown
343Public
344 'IDirect3DVolume9 methods
345 Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
346 Function SetPrivateData(ByRef refguid As GUID, pData As VoidPtr, SizeOfData As DWord, Flags As DWord) As DWord
347 Function GetPrivateData(ByRef refguid As GUID, pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
348 Function FreePrivateData(ByRef refguid As GUID) As DWord
349 Function GetContainer(ByRef riid As GUID, ppContainer As DWordPtr) As DWord
350 Function GetDesc(pDesc As *D3DVOLUME_DESC) As DWord
351 Function LockBox(pLockedVolume As *D3DLOCKED_BOX, pBox As *D3DBOX, Flags As DWord) As DWord
352 Function UnlockBox() As DWord
353End Interface
354TypeDef LPDIRECT3DVOLUME9 = *IDirect3DVolume9
355
356Interface IDirect3DQuery9
357 Inherits IUnknown
358Public
359 'IDirect3DQuery9 methods
360 Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
361 Function GetType() As D3DQUERYTYPE
362 Function GetDataSize() As DWord
363 Function Issue(dwIssueFlags As DWord) As DWord
364 Function GetData(pData As VoidPtr, dwSize As DWord, dwGetDataFlags As DWord) As DWord
365End Interface
366TypeDef LPDIRECT3DQUERY9 = *IDirect3DQuery9
367
368
369' Flags for SetPrivateData method on all D3D9 interfaces
370Const D3DSPD_IUNKNOWN = &H00000001
371
372
373' Flags for IDirect3D9::CreateDevice's BehaviorFlags
374Const D3DCREATE_FPU_PRESERVE = &H00000002
375Const D3DCREATE_MULTITHREADED = &H00000004
376
377Const D3DCREATE_PUREDEVICE = &H00000010
378Const D3DCREATE_SOFTWARE_VERTEXPROCESSING = &H00000020
379Const D3DCREATE_HARDWARE_VERTEXPROCESSING = &H00000040
380Const D3DCREATE_MIXED_VERTEXPROCESSING = &H00000080
381Const D3DCREATE_DISABLE_DRIVER_MANAGEMENT = &H00000100
382Const D3DCREATE_ADAPTERGROUP_DEVICE = &H00000200
383Const D3DCREATE_DISABLE_DRIVER_MANAGEMENT_EX = &H00000400
384
385Const D3DCREATE_NOWINDOWCHANGES = &H00000800
386
387
388' Parameter for IDirect3D9::CreateDevice's Adapter argument
389Const D3DADAPTER_DEFAULT = 0
390
391
392' Flags for IDirect3D9::EnumAdapters
393Const D3DENUM_WHQL_LEVEL = &H00000002
394
395
396' Maximum number of back-buffers supported in DX9
397Const D3DPRESENT_BACK_BUFFERS_MAX = 3
398
399
400' Flags for IDirect3DDevice9::SetGammaRamp
401Const D3DSGR_NO_CALIBRATION = &H00000000
402Const D3DSGR_CALIBRATE = &H00000001
403
404
405' Flags for IDirect3DDevice9::SetCursorPosition
406Const D3DCURSOR_IMMEDIATE_UPDATE = &H00000001
407
408
409' Flags for IDirect3DSwapChain9::Present
410Const D3DPRESENT_DONOTWAIT = &H00000001
411Const D3DPRESENT_LINEAR_CONTENT = &H00000002
412
413
414' DirectDraw error codes
415Const _FACD3D = &H876
416Const MAKE_D3DHRESULT(code) = MAKE_HRESULT( 1, _FACD3D, code )
417Const MAKE_D3DSTATUS(code) = MAKE_HRESULT( 0, _FACD3D, code )
418
419' Direct3D Errors
420Const D3D_OK = S_OK
421Const D3DERR_WRONGTEXTUREFORMAT = MAKE_D3DHRESULT(2072)
422Const D3DERR_UNSUPPORTEDCOLOROPERATION = MAKE_D3DHRESULT(2073)
423Const D3DERR_UNSUPPORTEDCOLORARG = MAKE_D3DHRESULT(2074)
424Const D3DERR_UNSUPPORTEDALPHAOPERATION = MAKE_D3DHRESULT(2075)
425Const D3DERR_UNSUPPORTEDALPHAARG = MAKE_D3DHRESULT(2076)
426Const D3DERR_TOOMANYOPERATIONS = MAKE_D3DHRESULT(2077)
427Const D3DERR_CONFLICTINGTEXTUREFILTER = MAKE_D3DHRESULT(2078)
428Const D3DERR_UNSUPPORTEDFACTORVALUE = MAKE_D3DHRESULT(2079)
429Const D3DERR_CONFLICTINGRENDERSTATE = MAKE_D3DHRESULT(2081)
430Const D3DERR_UNSUPPORTEDTEXTUREFILTER = MAKE_D3DHRESULT(2082)
431Const D3DERR_CONFLICTINGTEXTUREPALETTE = MAKE_D3DHRESULT(2086)
432Const D3DERR_DRIVERINTERNALERROR = MAKE_D3DHRESULT(2087)
433
434Const D3DERR_NOTFOUND = MAKE_D3DHRESULT(2150)
435Const D3DERR_MOREDATA = MAKE_D3DHRESULT(2151)
436Const D3DERR_DEVICELOST = MAKE_D3DHRESULT(2152)
437Const D3DERR_DEVICENOTRESET = MAKE_D3DHRESULT(2153)
438Const D3DERR_NOTAVAILABLE = MAKE_D3DHRESULT(2154)
439Const D3DERR_OUTOFVIDEOMEMORY = MAKE_D3DHRESULT(380)
440Const D3DERR_INVALIDDEVICE = MAKE_D3DHRESULT(2155)
441Const D3DERR_INVALIDCALL = MAKE_D3DHRESULT(2156)
442Const D3DERR_DRIVERINVALIDCALL = MAKE_D3DHRESULT(2157)
443Const D3DERR_WASSTILLDRAWING = MAKE_D3DHRESULT(540)
444Const D3DOK_NOAUTOGEN = MAKE_D3DSTATUS(2159)
445
446
447#endif '_INC_D3D9
Note: See TracBrowser for help on using the repository browser.