source: Include/directx9/d3d9.sbp@ 272

Last change on this file since 272 was 1, checked in by (none), 18 years ago
File size: 26.9 KB
RevLine 
[1]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#include <directx9\d3d9types.sbp>
12#include <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
26Class IDirect3D9
27 Inherits IUnknown
28Public
29 'IDirect3D9 methods
30 Abstract Function ShoRegisterSoftwareDevice(pInitializeFunction As VoidPtr) As DWord
31 Abstract Function GetAdapterCount() As DWord
32 Abstract Function GetAdapterIdentifier(Adapter As DWord, Flags As DWord, pIdentifier As *D3DADAPTER_IDENTIFIER9) As DWord
33 Abstract Function GetAdapterModeCount(Adapter As DWord, Format As D3DFORMAT) As DWord
34 Abstract Function EnumAdapterModes(Adapter As DWord, Format As D3DFORMAT, Mode As DWord, pMode As *D3DDISPLAYMODE) As DWord
35 Abstract Function GetAdapterDisplayMode(Adapter As DWord, pMode As *D3DDISPLAYMODE) As DWord
36 Abstract Function CheckDeviceType(Adapter As DWord, DevType As D3DDEVTYPE, AdapterFormat As D3DFORMAT, BackBufferFormat As D3DFORMAT, bWindowed As Long) As DWord
37 Abstract Function CheckDeviceFormat(Adapter As DWord, DeviceType As D3DDEVTYPE, AdapterFormat As D3DFORMAT, Usage As DWord, RType As D3DRESOURCETYPE, CheckFormat As D3DFORMAT) As DWord
38 Abstract Function CheckDeviceMultiSampleType(Adapter As DWord, DeviceType As D3DDEVTYPE, SurfaceFormat As D3DFORMAT, Windowed As Long, MultiSampleType As D3DMULTISAMPLE_TYPE, pQualityLevels As DWordPtr) As DWord
39 Abstract Function CheckDepthStencilMatch(Adapter As DWord, DeviceType As D3DDEVTYPE, AdapterFormat As D3DFORMAT, RenderTargetFormat As D3DFORMAT, DepthStencilFormat As D3DFORMAT) As DWord
40 Abstract Function CheckDeviceFormatConversion(Adapter As DWord, DeviceType As D3DDEVTYPE, SourceFormat As D3DFORMAT, TargetFormat As D3DFORMAT) As DWord
41 Abstract Function GetDeviceCaps(Adapter As DWord, DeviceType As D3DDEVTYPE, pCaps As *D3DCAPS9) As DWord
42 Abstract Function GetAdapterMonitor(Adapter As DWord) As DWord
43 Abstract Function CreateDevice(Adapter As DWord, DeviceType As D3DDEVTYPE, hFocusWindow As HWND, BehaviorFlags As DWord, pPresentationParameters As *D3DPRESENT_PARAMETERS, ppReturnedDeviceInterface As *LPDIRECT3DDEVICE9) As DWord
44End Class
45TypeDef LPDIRECT3D9 = *IDirect3D9
46
47Class IDirect3DDevice9
48 Inherits IUnknown
49Public
50 'IDirect3DDevice9 methods
51 Abstract Function TestCooperativeLevel() As DWord
52 Abstract Function GetAvailableTextureMem() As DWord
53 Abstract Function EvictManagedResources() As DWord
54 Abstract Function GetDirect3D(ppD3D9 As *LPDIRECT3D9) As DWord
55 Abstract Function GetDeviceCaps(pCaps As *D3DCAPS9) As DWord
56 Abstract Function GetDisplayMode(iSwapChain As DWord, pMode As DWordPtr) As DWord
57 Abstract Function GetCreationParameters(pParameters As *D3DDEVICE_CREATION_PARAMETERS) As DWord
58 Abstract Function SetCursorProperties(XHotSpot As DWord, YHotSpot As DWord,pCursorBitmap As *IDirect3DSurface9) As DWord
59 Abstract Sub SetCursorPosition(X As Long, Y As Long, Flags As DWord)
60 Abstract Function ShowCursor(bShow As Long) As Long
61 Abstract Function CreateAdditionalSwapChain(pPresentationParameters As *D3DPRESENT_PARAMETERS, ppSwapChain As **IDirect3DSwapChain9) As DWord
62 Abstract Function GetSwapChain(iSwapChain As DWord, ppSwapChain As **IDirect3DSwapChain9) As DWord
63 Abstract Function GetNumberOfSwapChains() As DWord
64 Abstract Function Reset(pPresentationParameters As *D3DPRESENT_PARAMETERS) As DWord
65 Abstract Function Present(pSourceRect As *RECT, pDestRect As *RECT, hDestWindowOverride As DWord, pDirtyRegion As *RGNDATA) As DWord
66 Abstract Function GetBackBuffer(iSwapChain As DWord, iBackBuffer As DWord, bufType As D3DBACKBUFFER_TYPE, ppBackBuffer As **IDirect3DSurface9) As DWord
67 Abstract Function GetRasterStatus(iSwapChain As DWord, pRasterStatus As *D3DRASTER_STATUS) As DWord
68 Abstract Function SetDialogBoxMode(bEnableDialogs As Long) As DWord
69 Abstract Sub SetGammaRamp(iSwapChain As DWord, Flags As DWord, pRamp As *D3DGAMMARAMP)
70 Abstract Sub GetGammaRamp(iSwapChain As DWord, pRamp As *D3DGAMMARAMP)
71 Abstract 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 Abstract 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 Abstract 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 Abstract Function CreateVertexBuffer(Length As DWord, Usage As DWord, FVF As DWord, Pool As D3DPOOL, ppVertexBuffer As **IDirect3DVertexBuffer9, pSharedHandle As DWordPtr) As DWord
75 Abstract Function CreateIndexBuffer(Length As DWord, Usage As DWord, Format As D3DFORMAT, Pool As D3DPOOL, ppIndexBuffer As **IDirect3DIndexBuffer9, pSharedHandle As DWordPtr) As DWord
76 Abstract 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 Abstract 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 Abstract Function UpdateSurface(pSourceSurface As *IDirect3DSurface9, pSourceRect As *RECT, pDestinationSurface As *IDirect3DSurface9, pDestPoint As *POINTAPI) As DWord
79 Abstract Function UpdateTexture(pSourceTexture As *IDirect3DBaseTexture9, pDestinationTexture As *IDirect3DBaseTexture9) As DWord
80 Abstract Function GetRenderTargetData(pRenderTarget As *IDirect3DSurface9, pDestSurface As *IDirect3DSurface9) As DWord
81 Abstract Function GetFrontBufferData(iSwapChain As DWord, pDestSurface As *IDirect3DSurface9) As DWord
82 Abstract Function StretchRect(pSourceSurface As *IDirect3DSurface9, pSourceRect As *RECT, pDestSurface As *IDirect3DSurface9, pDestRect As *RECT, Filter As D3DTEXTUREFILTERTYPE) As DWord
83 Abstract Function ColorFill(pSurface As *IDirect3DSurface9, pRect As *RECT,dwColor As DWord) As DWord
84 Abstract Function CreateOffscreenPlainSurface(Width As DWord, Height As DWord, Format As D3DFORMAT, Pool As D3DPOOL, ppSurface As **IDirect3DSurface9, pSharedHandle As DWordPtr) As DWord
85 Abstract Function SetRenderTarget(RenderTargetIndex As DWord, pRenderTarget As *IDirect3DSurface9) As DWord
86 Abstract Function GetRenderTarget(RenderTargetIndex As DWord, ppRenderTarget As **IDirect3DSurface9) As DWord
87 Abstract Function SetDepthStencilSurface(pNewZStencil As *IDirect3DSurface9) As DWord
88 Abstract Function GetDepthStencilSurface(ppZStencilSurface As **IDirect3DSurface9) As DWord
89 Abstract Function BeginScene() As DWord
90 Abstract Function EndScene() As DWord
91 Abstract Function Clear(Count As DWord, pRects As *D3DRECT, Flags As DWord, dwColor As DWord, Z As Single, Stencil As DWord) As DWord
92 Abstract Function SetTransform(State As D3DTRANSFORMSTATETYPE, pMatrix As *D3DMATRIX) As DWord
93 Abstract Function GetTransform(State As D3DTRANSFORMSTATETYPE, pMatrix As *D3DMATRIX) As DWord
94 Abstract Function MultiplyTransform(State As D3DTRANSFORMSTATETYPE, pMatrix As *D3DMATRIX) As DWord
95 Abstract Function SetViewport(pViewport As *D3DVIEWPORT9) As DWord
96 Abstract Function GetViewport(pViewport As *D3DVIEWPORT9) As DWord
97 Abstract Function SetMaterial(pMaterial As *D3DMATERIAL9) As DWord
98 Abstract Function GetMaterial(pMaterial As *D3DMATERIAL9) As DWord
99 Abstract Function SetLight(Index As DWord, pLight As *D3DLIGHT9) As DWord
100 Abstract Function GetLight(Index As DWord, pLight As *D3DLIGHT9) As DWord
101 Abstract Function LightEnable(Index As DWord, Enable As Long) As DWord
102 Abstract Function GetLightEnable(Index As DWord, pEnable As DWordPtr) As DWord
103 Abstract Function SetClipPlane(Index As DWord, pPlane As SinglePtr) As DWord
104 Abstract Function GetClipPlane(Index As DWord, pPlane As SinglePtr) As DWord
105 Abstract Function SetRenderState(State As D3DRENDERSTATETYPE, Value As DWord) As DWord
106 Abstract Function GetRenderState(State As D3DRENDERSTATETYPE, pValue As DWordPtr) As DWord
107 Abstract Function CreateStateBlock(BlockType As D3DSTATEBLOCKTYPE, ppSB As **IDirect3DStateBlock9) As DWord
108 Abstract Function BeginStateBlock() As DWord
109 Abstract Function EndStateBlock(ppSB As **IDirect3DStateBlock9) As DWord
110 Abstract Function SetClipStatus(pClipStatus As *D3DCLIPSTATUS9) As DWord
111 Abstract Function GetClipStatus(pClipStatus As *D3DCLIPSTATUS9) As DWord
112 Abstract Function GetTexture(Stage As DWord, ppTexture As **IDirect3DBaseTexture9) As DWord
113 Abstract Function SetTexture(Stage As DWord, pTexture As *IDirect3DBaseTexture9) As DWord
114 Abstract Function GetTextureStageState(Stage As DWord, StateType As D3DTEXTURESTAGESTATETYPE, pValue As DWordPtr) As DWord
115 Abstract Function SetTextureStageState(Stage As DWord, StateType As D3DTEXTURESTAGESTATETYPE, Value As DWord) As DWord
116 Abstract Function GetSamplerState(Sampler As DWord, SamplerStateType As D3DSAMPLERSTATETYPE, pValue As DWordPtr) As DWord
117 Abstract Function SetSamplerState(Sampler As DWord, SamplerStateType As D3DSAMPLERSTATETYPE, Value As DWord) As DWord
118 Abstract Function ValidateDevice(pNumPasses As DWordPtr) As DWord
119 Abstract Function SetPaletteEntries(PaletteNumber As DWord, pEntries As *PALETTEENTRY) As DWord
120 Abstract Function GetPaletteEntries(PaletteNumber As DWord, pEntries As *PALETTEENTRY) As DWord
121 Abstract Function SetCurrentTexturePalette(PaletteNumber As DWord) As DWord
122 Abstract Function GetCurrentTexturePalette(pPaletteNumber As DWordPtr) As DWord
123 Abstract Function SetScissorRect(pRect As *RECT) As DWord
124 Abstract Function GetScissorRect(pRect As *RECT) As DWord
125 Abstract Function SetSoftwareVertexProcessing(bSoftware As Long) As DWord
126 Abstract Function GetSoftwareVertexProcessing() As Long
127 Abstract Function SetNPatchMode(nSegments As Single) As DWord
128 Abstract Function GetNPatchMode() As Single
129 Abstract Function DrawPrimitive(PrimitiveType As D3DPRIMITIVETYPE, StartVertex As DWord, PrimitiveCount As DWord) As DWord
130 Abstract Function DrawIndexedPrimitive(PrimitiveType As D3DPRIMITIVETYPE, BaseVertexIndex As Long, MinVertexIndex As DWord, NumVertices As DWord, startIndex As DWord, primCount As DWord) As DWord
131 Abstract Function DrawPrimitiveUP(PrimitiveType As D3DPRIMITIVETYPE, PrimitiveCount As DWord, pVertexStreamZeroData As VoidPtr, VertexStreamZeroStride As DWord) As DWord
132 Abstract 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 Abstract Function ProcessVertices(SrcStartIndex As DWord, DestIndex As DWord, VertexCount As DWord, pDestBuffer As *IDirect3DVertexBuffer9, pVertexDecl As *IDirect3DVertexDeclaration9, Flags As DWord) As DWord
134 Abstract Function CreateVertexDeclaration(pVertexElements As *D3DVERTEXELEMENT9, ppDecl As **IDirect3DVertexDeclaration9) As DWord
135 Abstract Function SetVertexDeclaration(pDecl As *IDirect3DVertexDeclaration9) As DWord
136 Abstract Function GetVertexDeclaration(ppDecl As **IDirect3DVertexDeclaration9) As DWord
137 Abstract Function SetFVF(FVF As DWord) As DWord
138 Abstract Function GetFVF(pFVF As DWordPtr) As DWord
139 Abstract Function CreateVertexShader(pFunction As DWordPtr, ppShader As **IDirect3DVertexShader9) As DWord
140 Abstract Function SetVertexShader(pShader As *IDirect3DVertexShader9) As DWord
141 Abstract Function GetVertexShader(ppShader As **IDirect3DVertexShader9) As DWord
142 Abstract Function SetVertexShaderConstantF(StartRegister As DWord, pConstantData As SinglePtr, Vector4fCount As DWord) As DWord
143 Abstract Function GetVertexShaderConstantF(StartRegister As DWord, pConstantData As SinglePtr, Vector4fCount As DWord) As DWord
144 Abstract Function SetVertexShaderConstantI(StartRegister As DWord, pConstantData As WordPtr, Vector4iCount As DWord) As DWord
145 Abstract Function GetVertexShaderConstantI(StartRegister As DWord, pConstantData As WordPtr, Vector4iCount As DWord) As DWord
146 Abstract Function SetVertexShaderConstantB(StartRegister As DWord, pConstantData As DWordPtr, BoolCount As DWord) As DWord
147 Abstract Function GetVertexShaderConstantB(StartRegister As DWord, pConstantData As DWordPtr, BoolCount As DWord) As DWord
148 Abstract Function SetStreamSource(StreamNumber As DWord, pStreamData As *IDirect3DVertexBuffer9, OffsetInBytes As DWord, Stride As DWord) As DWord
149 Abstract Function GetStreamSource(StreamNumber As DWord, ppStreamData As **IDirect3DVertexBuffer9, pOffsetInBytes As DWordPtr, pStride As DWordPtr) As DWord
150 Abstract Function SetStreamSourceFreq(StreamNumber As DWord, Setting As DWord) As DWord
151 Abstract Function GetStreamSourceFreq(StreamNumber As DWord, pSetting As DWordPtr) As DWord
152 Abstract Function SetIndices(pIndexData As *IDirect3DIndexBuffer9) As DWord
153 Abstract Function GetIndices(ppIndexData As **IDirect3DIndexBuffer9) As DWord
154 Abstract Function CreatePixelShader(pFunction As DWordPtr, ppShader As **IDirect3DPixelShader9) As DWord
155 Abstract Function SetPixelShader(pShader As *IDirect3DPixelShader9) As DWord
156 Abstract Function GetPixelShader(ppShader As **IDirect3DPixelShader9) As DWord
157 Abstract Function SetPixelShaderConstantF(StartRegister As DWord, pConstantData As SinglePtr, Vector4fCount As DWord) As DWord
158 Abstract Function GetPixelShaderConstantF(StartRegister As DWord, pConstantData As SinglePtr, Vector4fCount As DWord) As DWord
159 Abstract Function SetPixelShaderConstantI(StartRegister As DWord, pConstantData As WordPtr, Vector4iCount As DWord) As DWord
160 Abstract Function GetPixelShaderConstantI(StartRegister As DWord, pConstantData As WordPtr, Vector4iCount As DWord) As DWord
161 Abstract Function SetPixelShaderConstantB(StartRegister As DWord, pConstantData As DWordPtr, BoolCount As DWord) As DWord
162 Abstract Function GetPixelShaderConstantB(StartRegister As DWord, pConstantData As DWordPtr, BoolCount As DWord) As DWord
163 Abstract Function DrawRectPatch(Handle As DWord, pNumSegs As SinglePtr, pRectPatchInfo As *D3DRECTPATCH_INFO) As DWord
164 Abstract Function DrawTriPatch(Handle As DWord, pNumSegs As SinglePtr, pTriPatchInfo As *D3DTRIPATCH_INFO) As DWord
165 Abstract Function DeletePatch(Handle As DWord) As DWord
166 Abstract Function CreateQuery(QueryType As D3DQUERYTYPE, ppQuery As **IDirect3DQuery9) As DWord
167End Class
168TypeDef LPDIRECT3DDEVICE9 = *IDirect3DDevice9
169
170Class IDirect3DStateBlock9
171 Inherits IUnknown
172Public
173 'IDirect3DStateBlock9 methods
174 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
175 Abstract Function Capture() As DWord
176 Abstract Function Apply() As DWord
177End Class
178TypeDef LPDIRECT3DSTATEBLOCK9 = *IDirect3DStateBlock9
179
180Class IDirect3DSwapChain9
181 Inherits IUnknown
182Public
183 'IDirect3DSwapChain9 methods
184 Abstract Function Present(pSourceRect As *RECT, pDestRect As *RECT, hDestWindowOverride As DWord, pDirtyRegion As *RGNDATA, dwFlags As DWord) As DWord
185 Abstract Function GetFrontBufferData(pDestSurface As *IDirect3DSurface9) As DWord
186 Abstract Function GetBackBuffer(iBackBuffer As DWord, bbtype As D3DBACKBUFFER_TYPE, ppBackBuffer As **IDirect3DSurface9) As DWord
187 Abstract Function GetRasterStatus(pRasterStatus As *D3DRASTER_STATUS) As DWord
188 Abstract Function GetDisplayMode(pMode As *D3DDISPLAYMODE) As DWord
189 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
190 Abstract Function GetPresentParameters(pPresentationParameters As *D3DPRESENT_PARAMETERS) As DWord
191End Class
192TypeDef LPDIRECT3DSWAPCHAIN9 = *IDirect3DSwapChain9
193
194Class IDirect3DResource9
195 Inherits IUnknown
196Public
197 'IDirect3DResource9 methods
198 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
199 Abstract Function SetPrivateData(ByRef refguid As GUID, pData As VoidPtr, SizeOfData As DWord, Flags As DWord) As DWord
200 Abstract Function GetPrivateData(ByRef refguid As GUID, pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
201 Abstract Function FreePrivateData(ByRef refguid As GUID) As DWord
202 Abstract Function SetPriority(PriorityNew As DWord) As DWord
203 Abstract Function GetPriority() As DWord
204 Abstract Sub PreLoad()
205 Abstract Function GetType() As D3DRESOURCETYPE
206End Class
207TypeDef LPDIRECT3DRESOURCE9 = *IDirect3DResource9
208
209Class IDirect3DVertexDeclaration9
210 Inherits IUnknown
211Public
212 'IDirect3DVertexDeclaration9 methods
213 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
214 Abstract Function GetDeclaration(pElement As *D3DVERTEXELEMENT9, pNumElements As DWordPtr) As DWord
215End Class
216TypeDef LPDIRECT3DVERTEXDECLARATION9 = *IDirect3DVertexDeclaration9
217
218Class IDirect3DVertexShader9
219 Inherits IUnknown
220Public
221 'IDirect3DVertexShader9 methods
222 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
223 Abstract Function GetFunction(pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
224End Class
225TypeDef LPDIRECT3DVERTEXSHADER9 = *IDirect3DVertexShader9
226
227Class IDirect3DPixelShader9
228 Inherits IUnknown
229Public
230 'IDirect3DPixelShader9 methods
231 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
232 Abstract Function GetFunction(pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
233End Class
234TypeDef LPDIRECT3DPIXELSHADER9 = *IDirect3DPixelShader9
235
236Class IDirect3DBaseTexture9
237 Inherits IUnknown
238Public
239 'IDirect3DResource9 methods
240 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
241 Abstract Function SetPrivateData(ByRef refguid As GUID, pData As VoidPtr, SizeOfData As DWord, Flags As DWord) As DWord
242 Abstract Function GetPrivateData(ByRef refguid As GUID, pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
243 Abstract Function FreePrivateData(ByRef refguid As GUID) As DWord
244 Abstract Function SetPriority(PriorityNew As DWord) As DWord
245 Abstract Function GetPriority() As DWord
246 Abstract Sub PreLoad()
247 Abstract Function GetType() As D3DRESOURCETYPE
248 Abstract Function SetLOD(LODNew As DWord) As DWord
249 Abstract Function GetLOD() As DWord
250 Abstract Function GetLevelCount() As DWord
251 Abstract Function SetAutoGenFilterType(FilterType As D3DTEXTUREFILTERTYPE) As DWord
252 Abstract Function GetAutoGenFilterType() As D3DTEXTUREFILTERTYPE
253 Abstract Sub GenerateMipSubLevels()
254End Class
255TypeDef LPDIRECT3DBASETEXTURE9 = *IDirect3DBaseTexture9
256
257Class IDirect3DTexture9
258 Inherits IDirect3DBaseTexture9
259Public
260 Abstract Function GetLevelDesc(Level As DWord, pDesc As *D3DSURFACE_DESC) As DWord
261 Abstract Function GetSurfaceLevel(Level As DWord, ppSurfaceLevel As **IDirect3DSurface9) As DWord
262 Abstract Function LockRect(Level As DWord, pLockedRect As *D3DLOCKED_RECT, pRect As *RECT, Flags As DWord) As DWord
263 Abstract Function UnlockRect(Level As DWord) As DWord
264 Abstract Function AddDirtyRect(pDirtyRect As *RECT) As DWord
265End Class
266TypeDef LPDIRECT3DTEXTURE9 = *IDirect3DTexture9
267
268Class IDirect3DVolumeTexture9
269 Inherits IDirect3DBaseTexture9
270Public
271 Abstract Function GetLevelDesc(Level As DWord, pDesc As *D3DSURFACE_DESC) As DWord
272 Abstract Function GetVolumeLevel(Level As DWord, ppVolumeLevel As **IDirect3DVolume9) As DWord
273 Abstract Function LockBox(Level As DWord, pLockedVolume As *D3DLOCKED_BOX, pBox As *D3DBOX, Flags As DWord) As DWord
274 Abstract Function UnlockBox(Level As DWord) As DWord
275 Abstract Function AddDirtyBox(pDirtyBox As *D3DBOX) As DWord
276End Class
277TypeDef LPDIRECT3DVOLUMETEXTURE9 = *IDirect3DVolumeTexture9
278
279Class IDirect3DCubeTexture9
280 Inherits IDirect3DBaseTexture9
281End Class
282TypeDef LPDIRECT3DCUBETEXTURE9 = *IDirect3DCubeTexture9
283
284Class IDirect3DVertexBuffer9
285 Inherits IUnknown
286Public
287 'IDirect3DResource9 methods
288 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
289 Abstract Function SetPrivateData(ByRef refguid As GUID, pData As VoidPtr, SizeOfData As DWord, Flags As DWord) As DWord
290 Abstract Function GetPrivateData(ByRef refguid As GUID, pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
291 Abstract Function FreePrivateData(ByRef refguid As GUID) As DWord
292 Abstract Function SetPriority(PriorityNew As DWord) As DWord
293 Abstract Function GetPriority() As DWord
294 Abstract Sub PreLoad()
295 Abstract Function GetType() As D3DRESOURCETYPE
296 Abstract Function Lock(OffsetToLock As DWord, SizeToLock As DWord, ppbData As VoidPtr, Flags As DWord) As DWord
297 Abstract Function Unlock() As DWord
298 Abstract Function GetDesc(pDesc As *D3DVERTEXBUFFER_DESC) As DWord
299End Class
300TypeDef LPDIRECT3DVERTEXBUFFER9 = *IDirect3DVertexBuffer9
301
302Class IDirect3DIndexBuffer9
303 Inherits IUnknown
304Public
305 'IDirect3DResource9 methods
306 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
307 Abstract Function SetPrivateData(ByRef refguid As GUID, pData As VoidPtr, SizeOfData As DWord, Flags As DWord) As DWord
308 Abstract Function GetPrivateData(ByRef refguid As GUID, pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
309 Abstract Function FreePrivateData(ByRef refguid As GUID) As DWord
310 Abstract Function SetPriority(PriorityNew As DWord) As DWord
311 Abstract Function GetPriority() As DWord
312 Abstract Sub PreLoad()
313 Abstract Function GetType() As D3DRESOURCETYPE
314 Abstract Function Lock(OffsetToLock As DWord, SizeToLock As DWord, ppbData As VoidPtr, Flags As DWord) As DWord
315 Abstract Function Unlock() As DWord
316 Abstract Function GetDesc(pDesc As *D3DINDEXBUFFER_DESC) As DWord
317End Class
318TypeDef LPDIRECT3DINDEXBUFFER9 = *IDirect3DIndexBuffer9
319
320Class IDirect3DSurface9
321 Inherits IUnknown
322Public
323 'IDirect3DResource9 methods
324 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
325 Abstract Function SetPrivateData(ByRef refguid As GUID, pData As VoidPtr, SizeOfData As DWord, Flags As DWord) As DWord
326 Abstract Function GetPrivateData(ByRef refguid As GUID, pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
327 Abstract Function FreePrivateData(ByRef refguid As GUID) As DWord
328 Abstract Function SetPriority(PriorityNew As DWord) As DWord
329 Abstract Function GetPriority() As DWord
330 Abstract Sub PreLoad()
331 Abstract Function GetType() As D3DRESOURCETYPE
332 Abstract Function GetContainer(ByRef riid As GUID, ppContainer As VoidPtr) As DWord
333 Abstract Function GetDesc(pDesc As *D3DSURFACE_DESC) As DWord
334 Abstract Function LockRect(pLockedRect As *D3DLOCKED_RECT, pRect As *RECT, Flags As DWord) As DWord
335 Abstract Function UnlockRect() As DWord
336 Abstract Function GetDC(phdc As DWordPtr) As DWord
337 Abstract Function ReleaseDC(hdc As DWord) As DWord
338End Class
339TypeDef LPDIRECT3DSURFACE9 = *IDirect3DSurface9
340
341Class IDirect3DVolume9
342 Inherits IUnknown
343Public
344 'IDirect3DVolume9 methods
345 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
346 Abstract Function SetPrivateData(ByRef refguid As GUID, pData As VoidPtr, SizeOfData As DWord, Flags As DWord) As DWord
347 Abstract Function GetPrivateData(ByRef refguid As GUID, pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
348 Abstract Function FreePrivateData(ByRef refguid As GUID) As DWord
349 Abstract Function GetContainer(ByRef riid As GUID, ppContainer As DWordPtr) As DWord
350 Abstract Function GetDesc(pDesc As *D3DVOLUME_DESC) As DWord
351 Abstract Function LockBox(pLockedVolume As *D3DLOCKED_BOX, pBox As *D3DBOX, Flags As DWord) As DWord
352 Abstract Function UnlockBox() As DWord
353End Class
354TypeDef LPDIRECT3DVOLUME9 = *IDirect3DVolume9
355
356Class IDirect3DQuery9
357 Inherits IUnknown
358Public
359 'IDirect3DQuery9 methods
360 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
361 Abstract Function GetType() As D3DQUERYTYPE
362 Abstract Function GetDataSize() As DWord
363 Abstract Function Issue(dwIssueFlags As DWord) As DWord
364 Abstract Function GetData(pData As VoidPtr, dwSize As DWord, dwGetDataFlags As DWord) As DWord
365End Class
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.