123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393 |
- DEFINE_GUID( IID_IDirect3D, 0x3BBA0080,0x2421,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 )
- DEFINE_GUID( IID_IDirect3DTexture, 0x2CDCD9E0,0x25A0,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 )
- DEFINE_GUID( IID_IDirect3DLight, 0x4417C142,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E )
- DEFINE_GUID( IID_IDirect3DMaterial, 0x4417C144,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E )
- DEFINE_GUID( IID_IDirect3DExecuteBuffer,0x4417C145,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E )
- DEFINE_GUID( IID_IDirect3DViewport, 0x4417C146,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E )
- extern "C" {
- struct IDirect3D
- struct IDirect3DDevice
- struct IDirect3DExecuteBuffer
- struct IDirect3DLight
- struct IDirect3DMaterial
- struct IDirect3DTexture
- struct IDirect3DViewport
- typedef struct IDirect3D *LPDIRECT3D
- typedef struct IDirect3DDevice *LPDIRECT3DDEVICE
- typedef struct IDirect3DExecuteBuffer *LPDIRECT3DEXECUTEBUFFER
- typedef struct IDirect3DLight *LPDIRECT3DLIGHT
- typedef struct IDirect3DMaterial *LPDIRECT3DMATERIAL
- typedef struct IDirect3DTexture *LPDIRECT3DTEXTURE
- typedef struct IDirect3DViewport *LPDIRECT3DVIEWPORT
- typedef struct IDirect3D *LPDIRECT3D
- typedef struct IDirect3DDevice *LPDIRECT3DDEVICE
- typedef struct IDirect3DExecuteBuffer *LPDIRECT3DEXECUTEBUFFER
- typedef struct IDirect3DLight *LPDIRECT3DLIGHT
- typedef struct IDirect3DMaterial *LPDIRECT3DMATERIAL
- typedef struct IDirect3DTexture *LPDIRECT3DTEXTURE
- typedef struct IDirect3DViewport *LPDIRECT3DVIEWPORT
- DECLARE_INTERFACE_(IDirect3D, IUnknown)
- {
-
- STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE
- STDMETHOD_(ULONG, AddRef) (THIS) PURE
- STDMETHOD_(ULONG, Release) (THIS) PURE
-
- STDMETHOD(Initialize) (THIS_ REFIID) PURE
- STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK, LPVOID) PURE
- STDMETHOD(CreateLight) (THIS_ LPDIRECT3DLIGHT*, IUnknown*) PURE
- STDMETHOD(CreateMaterial) (THIS_ LPDIRECT3DMATERIAL*, IUnknown*) PURE
- STDMETHOD(CreateViewport) (THIS_ LPDIRECT3DVIEWPORT*, IUnknown*) PURE
- STDMETHOD(FindDevice)(THIS_ LPD3DFINDDEVICESEARCH, LPD3DFINDDEVICERESULT) PURE
- }
- DECLARE_INTERFACE_(IDirect3DDevice, IUnknown)
- {
-
- STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE
- STDMETHOD_(ULONG, AddRef) (THIS) PURE
- STDMETHOD_(ULONG, Release) (THIS) PURE
-
- STDMETHOD(Initialize) (THIS_ LPDIRECT3D, LPGUID, LPD3DDEVICEDESC) PURE
- STDMETHOD(GetCaps) (THIS_ LPD3DDEVICEDESC, LPD3DDEVICEDESC) PURE
- STDMETHOD(SwapTextureHandles) (THIS_ LPDIRECT3DTEXTURE, LPDIRECT3DTEXTURE) PURE
- STDMETHOD(CreateExecuteBuffer) (THIS_ LPD3DEXECUTEBUFFERDESC, LPDIRECT3DEXECUTEBUFFER*, IUnknown*) PURE
- STDMETHOD(GetStats) (THIS_ LPD3DSTATS) PURE
- STDMETHOD(Execute) (THIS_ LPDIRECT3DEXECUTEBUFFER, LPDIRECT3DVIEWPORT, DWORD) PURE
- STDMETHOD(AddViewport) (THIS_ LPDIRECT3DVIEWPORT) PURE
- STDMETHOD(DeleteViewport) (THIS_ LPDIRECT3DVIEWPORT) PURE
- STDMETHOD(NextViewport) (THIS_ LPDIRECT3DVIEWPORT, LPDIRECT3DVIEWPORT*, DWORD) PURE
- STDMETHOD(Pick) (THIS_ LPDIRECT3DEXECUTEBUFFER, LPDIRECT3DVIEWPORT, DWORD, LPD3DRECT) PURE
- STDMETHOD(GetPickRecords)(THIS_ LPDWORD, LPD3DPICKRECORD) PURE
- STDMETHOD(EnumTextureFormats) (THIS_ LPD3DENUMTEXTUREFORMATSCALLBACK, LPVOID) PURE
- STDMETHOD(CreateMatrix) (THIS_ LPD3DMATRIXHANDLE) PURE
- STDMETHOD(SetMatrix) (THIS_ D3DMATRIXHANDLE, LPD3DMATRIX) PURE
- STDMETHOD(GetMatrix) (THIS_ D3DMATRIXHANDLE, LPD3DMATRIX) PURE
- STDMETHOD(DeleteMatrix) (THIS_ D3DMATRIXHANDLE) PURE
- STDMETHOD_(HRESULT, BeginScene) (THIS) PURE
- STDMETHOD_(HRESULT, EndScene) (THIS) PURE
- STDMETHOD(GetDirect3D) (THIS_ LPDIRECT3D*) PURE
- }
- DECLARE_INTERFACE_(IDirect3DExecuteBuffer, IUnknown)
- {
-
- STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE
- STDMETHOD_(ULONG, AddRef) (THIS) PURE
- STDMETHOD_(ULONG, Release) (THIS) PURE
-
- STDMETHOD(Initialize) (THIS_ LPDIRECT3DDEVICE, LPD3DEXECUTEBUFFERDESC) PURE
- STDMETHOD(Lock) (THIS_ LPD3DEXECUTEBUFFERDESC) PURE
- STDMETHOD_(HRESULT, Unlock) (THIS) PURE
- STDMETHOD(SetExecuteData) (THIS_ LPD3DEXECUTEDATA) PURE
- STDMETHOD(GetExecuteData) (THIS_ LPD3DEXECUTEDATA) PURE
- STDMETHOD(Validate) (THIS_ LPDWORD, LPD3DVALIDATECALLBACK, LPVOID, DWORD) PURE
- STDMETHOD(Optimize) (THIS_ DWORD) PURE
- }
- DECLARE_INTERFACE_(IDirect3DLight, IUnknown)
- {
-
- STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE
- STDMETHOD_(ULONG, AddRef) (THIS) PURE
- STDMETHOD_(ULONG, Release) (THIS) PURE
-
- STDMETHOD(Initialize) (THIS_ LPDIRECT3D) PURE
- STDMETHOD(SetLight) (THIS_ LPD3DLIGHT) PURE
- STDMETHOD(GetLight) (THIS_ LPD3DLIGHT) PURE
- }
- DECLARE_INTERFACE_(IDirect3DMaterial, IUnknown)
- {
-
- STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE
- STDMETHOD_(ULONG, AddRef) (THIS) PURE
- STDMETHOD_(ULONG, Release) (THIS) PURE
-
- STDMETHOD(Initialize) (THIS_ LPDIRECT3D) PURE
- STDMETHOD(SetMaterial) (THIS_ LPD3DMATERIAL) PURE
- STDMETHOD(GetMaterial) (THIS_ LPD3DMATERIAL) PURE
- STDMETHOD(GetHandle) (THIS_ LPDIRECT3DDEVICE, LPD3DMATERIALHANDLE) PURE
- STDMETHOD_(HRESULT, Reserve) (THIS) PURE
- STDMETHOD_(HRESULT, Unreserve) (THIS) PURE
- }
- DECLARE_INTERFACE_(IDirect3DTexture, IUnknown)
- {
-
- STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE
- STDMETHOD_(ULONG, AddRef) (THIS) PURE
- STDMETHOD_(ULONG, Release) (THIS) PURE
-
- STDMETHOD(Initialize) (THIS_ LPDIRECT3DDEVICE, LPDIRECTDRAWSURFACE) PURE
- STDMETHOD(GetHandle) (THIS_ LPDIRECT3DDEVICE, LPD3DTEXTUREHANDLE) PURE
- STDMETHOD(PaletteChanged) (THIS_ DWORD, DWORD) PURE
- STDMETHOD(Load) (THIS_ LPDIRECT3DTEXTURE) PURE
- STDMETHOD_(HRESULT, Unload) (THIS) PURE
- }
- DECLARE_INTERFACE_(IDirect3DViewport, IUnknown)
- {
-
- STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE
- STDMETHOD_(ULONG, AddRef) (THIS) PURE
- STDMETHOD_(ULONG, Release) (THIS) PURE
-
- STDMETHOD(Initialize) (THIS_ LPDIRECT3D) PURE
- STDMETHOD(GetViewport) (THIS_ LPD3DVIEWPORT) PURE
- STDMETHOD(SetViewport) (THIS_ LPD3DVIEWPORT) PURE
- STDMETHOD(TransformVertices) (THIS_ DWORD, LPD3DTRANSFORMDATA, DWORD, LPDWORD) PURE
- STDMETHOD(LightElements) (THIS_ DWORD, LPD3DLIGHTDATA) PURE
- STDMETHOD(SetBackground) (THIS_ D3DMATERIALHANDLE) PURE
- STDMETHOD(GetBackground) (THIS_ LPD3DMATERIALHANDLE, LPBOOL) PURE
- STDMETHOD(SetBackgroundDepth) (THIS_ LPDIRECTDRAWSURFACE) PURE
- STDMETHOD(GetBackgroundDepth) (THIS_ LPDIRECTDRAWSURFACE*, LPBOOL) PURE
- STDMETHOD(Clear) (THIS_ DWORD, LPD3DRECT, DWORD) PURE
- STDMETHOD(AddLight) (THIS_ LPDIRECT3DLIGHT) PURE
- STDMETHOD(DeleteLight) (THIS_ LPDIRECT3DLIGHT) PURE
- STDMETHOD(NextLight) (THIS_ LPDIRECT3DLIGHT, LPDIRECT3DLIGHT*, DWORD) PURE
- }
- }
|