Ignore:
Timestamp:
Aug 24, 2007, 11:14:46 AM (17 years ago)
Author:
イグトランス (egtra)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/directx9/d3d9.sbp

    r1 r303  
    99Const D3D_SDK_VERSION = 32
    1010
    11 #include <directx9\d3d9types.sbp>
    12 #include <directx9\d3d9caps.sbp>
     11#require <directx9\d3d9types.sbp>
     12#require <directx9\d3d9caps.sbp>
    1313
    1414
     
    2424'--------------------
    2525
    26 Class IDirect3D9
     26Interface IDirect3D9
    2727    Inherits IUnknown
    2828Public
    2929    '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
    44 End Class
     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
    4545TypeDef LPDIRECT3D9 = *IDirect3D9
    4646
    47 Class IDirect3DDevice9
     47Interface IDirect3DDevice9
    4848    Inherits IUnknown
    4949Public
    5050    '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
    167 End Class
     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
    168168TypeDef LPDIRECT3DDEVICE9 = *IDirect3DDevice9
    169169
    170 Class IDirect3DStateBlock9
     170Interface IDirect3DStateBlock9
    171171    Inherits IUnknown
    172172Public
    173173    'IDirect3DStateBlock9 methods
    174     Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
    175     Abstract Function Capture() As DWord
    176     Abstract Function Apply() As DWord
    177 End Class
     174    Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
     175    Function Capture() As DWord
     176    Function Apply() As DWord
     177End Interface
    178178TypeDef LPDIRECT3DSTATEBLOCK9 = *IDirect3DStateBlock9
    179179
    180 Class IDirect3DSwapChain9
     180Interface IDirect3DSwapChain9
    181181    Inherits IUnknown
    182182Public
    183183    '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
    191 End Class
     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
    192192TypeDef LPDIRECT3DSWAPCHAIN9 = *IDirect3DSwapChain9
    193193
    194 Class IDirect3DResource9
     194Interface IDirect3DResource9
    195195    Inherits IUnknown
    196196Public
    197197    '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
    206 End Class
     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
    207207TypeDef LPDIRECT3DRESOURCE9 = *IDirect3DResource9
    208208
    209 Class IDirect3DVertexDeclaration9
     209Interface IDirect3DVertexDeclaration9
    210210    Inherits IUnknown
    211211Public
    212212    'IDirect3DVertexDeclaration9 methods
    213     Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
    214     Abstract Function GetDeclaration(pElement As *D3DVERTEXELEMENT9, pNumElements As DWordPtr) As DWord
    215 End Class
     213    Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
     214    Function GetDeclaration(pElement As *D3DVERTEXELEMENT9, pNumElements As DWordPtr) As DWord
     215End Interface
    216216TypeDef LPDIRECT3DVERTEXDECLARATION9 = *IDirect3DVertexDeclaration9
    217217
    218 Class IDirect3DVertexShader9
     218Interface IDirect3DVertexShader9
    219219    Inherits IUnknown
    220220Public
    221221    'IDirect3DVertexShader9 methods
    222     Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
    223     Abstract Function GetFunction(pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
    224 End Class
     222    Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
     223    Function GetFunction(pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
     224End Interface
    225225TypeDef LPDIRECT3DVERTEXSHADER9 = *IDirect3DVertexShader9
    226226
    227 Class IDirect3DPixelShader9
     227Interface IDirect3DPixelShader9
    228228    Inherits IUnknown
    229229Public
    230230    'IDirect3DPixelShader9 methods
    231     Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
    232     Abstract Function GetFunction(pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
    233 End Class
     231    Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
     232    Function GetFunction(pData As VoidPtr, pSizeOfData As DWordPtr) As DWord
     233End Interface
    234234TypeDef LPDIRECT3DPIXELSHADER9 = *IDirect3DPixelShader9
    235235
    236 Class IDirect3DBaseTexture9
     236Interface IDirect3DBaseTexture9
    237237    Inherits IUnknown
    238238Public
    239239    '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()
    254 End Class
     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
    255255TypeDef LPDIRECT3DBASETEXTURE9 = *IDirect3DBaseTexture9
    256256
    257 Class IDirect3DTexture9
     257Interface IDirect3DTexture9
    258258    Inherits IDirect3DBaseTexture9
    259259Public
    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
    265 End Class
     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
    266266TypeDef LPDIRECT3DTEXTURE9 = *IDirect3DTexture9
    267267
    268 Class IDirect3DVolumeTexture9
     268Interface IDirect3DVolumeTexture9
    269269    Inherits IDirect3DBaseTexture9
    270270Public
    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
    276 End Class
     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
    277277TypeDef LPDIRECT3DVOLUMETEXTURE9 = *IDirect3DVolumeTexture9
    278278
    279 Class IDirect3DCubeTexture9
     279Interface IDirect3DCubeTexture9
    280280    Inherits IDirect3DBaseTexture9
    281 End Class
     281End Interface
    282282TypeDef LPDIRECT3DCUBETEXTURE9 = *IDirect3DCubeTexture9
    283283
    284 Class IDirect3DVertexBuffer9
     284Interface IDirect3DVertexBuffer9
    285285    Inherits IUnknown
    286286Public
    287287    '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
    299 End Class
     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
    300300TypeDef LPDIRECT3DVERTEXBUFFER9 = *IDirect3DVertexBuffer9
    301301
    302 Class IDirect3DIndexBuffer9
     302Interface IDirect3DIndexBuffer9
    303303    Inherits IUnknown
    304304Public
    305305    '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
    317 End Class
     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
    318318TypeDef LPDIRECT3DINDEXBUFFER9 = *IDirect3DIndexBuffer9
    319319
    320 Class IDirect3DSurface9
     320Interface IDirect3DSurface9
    321321    Inherits IUnknown
    322322Public
    323323    '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
    338 End Class
     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
    339339TypeDef LPDIRECT3DSURFACE9 = *IDirect3DSurface9
    340340
    341 Class IDirect3DVolume9
     341Interface IDirect3DVolume9
    342342    Inherits IUnknown
    343343Public
    344344    '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
    353 End Class
     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
    354354TypeDef LPDIRECT3DVOLUME9 = *IDirect3DVolume9
    355355
    356 Class IDirect3DQuery9
     356Interface IDirect3DQuery9
    357357    Inherits IUnknown
    358358Public
    359359    '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
    365 End Class
     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
    366366TypeDef LPDIRECT3DQUERY9 = *IDirect3DQuery9
    367367
Note: See TracChangeset for help on using the changeset viewer.