Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) the Wine project |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Lesser General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2.1 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Lesser General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Lesser General Public |
| 15 | * License along with this library; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 | */ |
| 18 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 19 | #ifndef __WINE_D3D_H |
| 20 | #define __WINE_D3D_H |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 21 | |
Robert Riggs | 4021f5c | 1998-11-22 15:10:19 +0000 | [diff] [blame] | 22 | #include "ddraw.h" |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 23 | #include "d3dtypes.h" /* must precede d3dcaps.h */ |
| 24 | #include "d3dcaps.h" |
Robert Riggs | 4021f5c | 1998-11-22 15:10:19 +0000 | [diff] [blame] | 25 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 26 | /***************************************************************************** |
| 27 | * Predeclare the interfaces |
| 28 | */ |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 29 | DEFINE_GUID(IID_IDirect3D, 0x3BBA0080,0x2421,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56); |
| 30 | DEFINE_GUID(IID_IDirect3D2, 0x6aae1ec1,0x662a,0x11d0,0x88,0x9d,0x00,0xaa,0x00,0xbb,0xb7,0x6a); |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 31 | DEFINE_GUID(IID_IDirect3D3, 0xbb223240,0xe72b,0x11d0,0xa9,0xb4,0x00,0xaa,0x00,0xc0,0x99,0x3e); |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 32 | DEFINE_GUID(IID_IDirect3D7, 0xf5049e77,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8); |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 33 | |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 34 | DEFINE_GUID(IID_IDirect3DRampDevice, 0xF2086B20,0x259F,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56); |
| 35 | DEFINE_GUID(IID_IDirect3DRGBDevice, 0xA4665C60,0x2673,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56); |
| 36 | DEFINE_GUID(IID_IDirect3DHALDevice, 0x84E63dE0,0x46AA,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E); |
| 37 | DEFINE_GUID(IID_IDirect3DMMXDevice, 0x881949a1,0xd6f3,0x11d0,0x89,0xab,0x00,0xa0,0xc9,0x05,0x41,0x29); |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 38 | DEFINE_GUID(IID_IDirect3DRefDevice, 0x50936643,0x13e9,0x11d1,0x89,0xaa,0x00,0xa0,0xc9,0x05,0x41,0x29); |
| 39 | DEFINE_GUID(IID_IDirect3DTnLHalDevice, 0xf5049e78,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8); |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 40 | |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 41 | DEFINE_GUID(IID_IDirect3DDevice, 0x64108800,0x957d,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29); |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 42 | DEFINE_GUID(IID_IDirect3DDevice2, 0x93281501,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29); |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 43 | DEFINE_GUID(IID_IDirect3DDevice3, 0xb0ab3b60,0x33d7,0x11d1,0xa9,0x81,0x00,0xc0,0x4f,0xd7,0xb1,0x74); |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 44 | DEFINE_GUID(IID_IDirect3DDevice7, 0xf5049e79,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8); |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 45 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 46 | DEFINE_GUID(IID_IDirect3DTexture, 0x2CDCD9E0,0x25A0,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56); |
| 47 | DEFINE_GUID(IID_IDirect3DTexture2, 0x93281502,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29); |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 48 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 49 | DEFINE_GUID(IID_IDirect3DLight, 0x4417C142,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E); |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 50 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 51 | DEFINE_GUID(IID_IDirect3DMaterial, 0x4417C144,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E); |
| 52 | DEFINE_GUID(IID_IDirect3DMaterial2, 0x93281503,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29); |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 53 | DEFINE_GUID(IID_IDirect3DMaterial3, 0xca9c46f4,0xd3c5,0x11d1,0xb7,0x5a,0x00,0x60,0x08,0x52,0xb3,0x12); |
| 54 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 55 | DEFINE_GUID(IID_IDirect3DExecuteBuffer, 0x4417C145,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E); |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 56 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 57 | DEFINE_GUID(IID_IDirect3DViewport, 0x4417C146,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E); |
| 58 | DEFINE_GUID(IID_IDirect3DViewport2, 0x93281500,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29); |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 59 | DEFINE_GUID(IID_IDirect3DViewport3, 0xb0ab3b61,0x33d7,0x11d1,0xa9,0x81,0x00,0xc0,0x4f,0xd7,0xb1,0x74); |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 60 | |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 61 | DEFINE_GUID(IID_IDirect3DVertexBuffer, 0x7a503555,0x4a83,0x11d1,0xa5,0xdb,0x00,0xa0,0xc9,0x03,0x67,0xf8); |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 62 | DEFINE_GUID(IID_IDirect3DVertexBuffer7, 0xf5049e7d,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8); |
| 63 | |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 64 | |
| 65 | typedef struct IDirect3D IDirect3D ,*LPDIRECT3D; |
| 66 | typedef struct IDirect3D2 IDirect3D2,*LPDIRECT3D2; |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 67 | typedef struct IDirect3D3 IDirect3D3,*LPDIRECT3D3; |
| 68 | typedef struct IDirect3D7 IDirect3D7,*LPDIRECT3D7; |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 69 | |
| 70 | typedef struct IDirect3DLight IDirect3DLight,*LPDIRECT3DLIGHT; |
| 71 | |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 72 | typedef struct IDirect3DDevice IDirect3DDevice, *LPDIRECT3DDEVICE; |
| 73 | typedef struct IDirect3DDevice2 IDirect3DDevice2, *LPDIRECT3DDEVICE2; |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 74 | typedef struct IDirect3DDevice3 IDirect3DDevice3, *LPDIRECT3DDEVICE3; |
| 75 | typedef struct IDirect3DDevice7 IDirect3DDevice7, *LPDIRECT3DDEVICE7; |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 76 | |
Francois Gouget | ae41e8c | 2000-06-11 20:07:58 +0000 | [diff] [blame] | 77 | typedef struct IDirect3DViewport IDirect3DViewport, *LPDIRECT3DVIEWPORT; |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 78 | typedef struct IDirect3DViewport2 IDirect3DViewport2, *LPDIRECT3DVIEWPORT2; |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 79 | typedef struct IDirect3DViewport3 IDirect3DViewport3, *LPDIRECT3DVIEWPORT3; |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 80 | |
Francois Gouget | ae41e8c | 2000-06-11 20:07:58 +0000 | [diff] [blame] | 81 | typedef struct IDirect3DMaterial IDirect3DMaterial, *LPDIRECT3DMATERIAL; |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 82 | typedef struct IDirect3DMaterial2 IDirect3DMaterial2, *LPDIRECT3DMATERIAL2; |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 83 | typedef struct IDirect3DMaterial3 IDirect3DMaterial3, *LPDIRECT3DMATERIAL3; |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 84 | |
Francois Gouget | ae41e8c | 2000-06-11 20:07:58 +0000 | [diff] [blame] | 85 | typedef struct IDirect3DTexture IDirect3DTexture, *LPDIRECT3DTEXTURE; |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 86 | typedef struct IDirect3DTexture2 IDirect3DTexture2, *LPDIRECT3DTEXTURE2; |
| 87 | |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 88 | typedef struct IDirect3DExecuteBuffer IDirect3DExecuteBuffer, *LPDIRECT3DEXECUTEBUFFER; |
| 89 | |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 90 | typedef struct IDirect3DVertexBuffer IDirect3DVertexBuffer, *LPDIRECT3DVERTEXBUFFER; |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 91 | typedef struct IDirect3DVertexBuffer7 IDirect3DVertexBuffer7, *LPDIRECT3DVERTEXBUFFER7; |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 92 | |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 93 | /* ******************************************************************** |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 94 | Error Codes |
| 95 | ******************************************************************** */ |
| 96 | #define D3D_OK DD_OK |
| 97 | #define D3DERR_BADMAJORVERSION MAKE_DDHRESULT(700) |
| 98 | #define D3DERR_BADMINORVERSION MAKE_DDHRESULT(701) |
| 99 | #define D3DERR_INVALID_DEVICE MAKE_DDHRESULT(705) |
| 100 | #define D3DERR_INITFAILED MAKE_DDHRESULT(706) |
| 101 | #define D3DERR_DEVICEAGGREGATED MAKE_DDHRESULT(707) |
| 102 | #define D3DERR_EXECUTE_CREATE_FAILED MAKE_DDHRESULT(710) |
| 103 | #define D3DERR_EXECUTE_DESTROY_FAILED MAKE_DDHRESULT(711) |
| 104 | #define D3DERR_EXECUTE_LOCK_FAILED MAKE_DDHRESULT(712) |
| 105 | #define D3DERR_EXECUTE_UNLOCK_FAILED MAKE_DDHRESULT(713) |
| 106 | #define D3DERR_EXECUTE_LOCKED MAKE_DDHRESULT(714) |
| 107 | #define D3DERR_EXECUTE_NOT_LOCKED MAKE_DDHRESULT(715) |
| 108 | #define D3DERR_EXECUTE_FAILED MAKE_DDHRESULT(716) |
| 109 | #define D3DERR_EXECUTE_CLIPPED_FAILED MAKE_DDHRESULT(717) |
| 110 | #define D3DERR_TEXTURE_NO_SUPPORT MAKE_DDHRESULT(720) |
| 111 | #define D3DERR_TEXTURE_CREATE_FAILED MAKE_DDHRESULT(721) |
| 112 | #define D3DERR_TEXTURE_DESTROY_FAILED MAKE_DDHRESULT(722) |
| 113 | #define D3DERR_TEXTURE_LOCK_FAILED MAKE_DDHRESULT(723) |
| 114 | #define D3DERR_TEXTURE_UNLOCK_FAILED MAKE_DDHRESULT(724) |
| 115 | #define D3DERR_TEXTURE_LOAD_FAILED MAKE_DDHRESULT(725) |
| 116 | #define D3DERR_TEXTURE_SWAP_FAILED MAKE_DDHRESULT(726) |
| 117 | #define D3DERR_TEXTURE_LOCKED MAKE_DDHRESULT(727) |
| 118 | #define D3DERR_TEXTURE_NOT_LOCKED MAKE_DDHRESULT(728) |
| 119 | #define D3DERR_TEXTURE_GETSURF_FAILED MAKE_DDHRESULT(729) |
| 120 | #define D3DERR_MATRIX_CREATE_FAILED MAKE_DDHRESULT(730) |
| 121 | #define D3DERR_MATRIX_DESTROY_FAILED MAKE_DDHRESULT(731) |
| 122 | #define D3DERR_MATRIX_SETDATA_FAILED MAKE_DDHRESULT(732) |
| 123 | #define D3DERR_MATRIX_GETDATA_FAILED MAKE_DDHRESULT(733) |
| 124 | #define D3DERR_SETVIEWPORTDATA_FAILED MAKE_DDHRESULT(734) |
| 125 | #define D3DERR_INVALIDCURRENTVIEWPORT MAKE_DDHRESULT(735) |
| 126 | #define D3DERR_INVALIDPRIMITIVETYPE MAKE_DDHRESULT(736) |
| 127 | #define D3DERR_INVALIDVERTEXTYPE MAKE_DDHRESULT(737) |
| 128 | #define D3DERR_TEXTURE_BADSIZE MAKE_DDHRESULT(738) |
| 129 | #define D3DERR_INVALIDRAMPTEXTURE MAKE_DDHRESULT(739) |
| 130 | #define D3DERR_MATERIAL_CREATE_FAILED MAKE_DDHRESULT(740) |
| 131 | #define D3DERR_MATERIAL_DESTROY_FAILED MAKE_DDHRESULT(741) |
| 132 | #define D3DERR_MATERIAL_SETDATA_FAILED MAKE_DDHRESULT(742) |
| 133 | #define D3DERR_MATERIAL_GETDATA_FAILED MAKE_DDHRESULT(743) |
| 134 | #define D3DERR_INVALIDPALETTE MAKE_DDHRESULT(744) |
| 135 | #define D3DERR_ZBUFF_NEEDS_SYSTEMMEMORY MAKE_DDHRESULT(745) |
| 136 | #define D3DERR_ZBUFF_NEEDS_VIDEOMEMORY MAKE_DDHRESULT(746) |
| 137 | #define D3DERR_SURFACENOTINVIDMEM MAKE_DDHRESULT(747) |
| 138 | #define D3DERR_LIGHT_SET_FAILED MAKE_DDHRESULT(750) |
| 139 | #define D3DERR_LIGHTHASVIEWPORT MAKE_DDHRESULT(751) |
| 140 | #define D3DERR_LIGHTNOTINTHISVIEWPORT MAKE_DDHRESULT(752) |
| 141 | #define D3DERR_SCENE_IN_SCENE MAKE_DDHRESULT(760) |
| 142 | #define D3DERR_SCENE_NOT_IN_SCENE MAKE_DDHRESULT(761) |
| 143 | #define D3DERR_SCENE_BEGIN_FAILED MAKE_DDHRESULT(762) |
| 144 | #define D3DERR_SCENE_END_FAILED MAKE_DDHRESULT(763) |
| 145 | #define D3DERR_INBEGIN MAKE_DDHRESULT(770) |
| 146 | #define D3DERR_NOTINBEGIN MAKE_DDHRESULT(771) |
| 147 | #define D3DERR_NOVIEWPORTS MAKE_DDHRESULT(772) |
| 148 | #define D3DERR_VIEWPORTDATANOTSET MAKE_DDHRESULT(773) |
| 149 | #define D3DERR_VIEWPORTHASNODEVICE MAKE_DDHRESULT(774) |
| 150 | #define D3DERR_NOCURRENTVIEWPORT MAKE_DDHRESULT(775) |
Ove Kaaven | a9ea857 | 2001-04-16 19:02:22 +0000 | [diff] [blame] | 151 | #define D3DERR_INVALIDVERTEXFORMAT MAKE_DDHRESULT(2048) |
| 152 | #define D3DERR_VERTEXBUFFEROPTIMIZED MAKE_DDHRESULT(2060) |
| 153 | #define D3DERR_VBUF_CREATE_FAILED MAKE_DDHRESULT(2061) |
| 154 | #define D3DERR_VERTEXBUFFERLOCKED MAKE_DDHRESULT(2062) |
| 155 | #define D3DERR_VERTEXBUFFERUNLOCKFAILED MAKE_DDHRESULT(2063) |
| 156 | #define D3DERR_ZBUFFER_NOTPRESENT MAKE_DDHRESULT(2070) |
| 157 | #define D3DERR_STENCILBUFFER_NOTPRESENT MAKE_DDHRESULT(2071) |
| 158 | |
| 159 | #define D3DERR_WRONGTEXTUREFORMAT MAKE_DDHRESULT(2072) |
| 160 | #define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_DDHRESULT(2073) |
| 161 | #define D3DERR_UNSUPPORTEDCOLORARG MAKE_DDHRESULT(2074) |
| 162 | #define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_DDHRESULT(2075) |
| 163 | #define D3DERR_UNSUPPORTEDALPHAARG MAKE_DDHRESULT(2076) |
| 164 | #define D3DERR_TOOMANYOPERATIONS MAKE_DDHRESULT(2077) |
| 165 | #define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_DDHRESULT(2078) |
| 166 | #define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_DDHRESULT(2079) |
| 167 | #define D3DERR_CONFLICTINGRENDERSTATE MAKE_DDHRESULT(2081) |
| 168 | #define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_DDHRESULT(2082) |
| 169 | #define D3DERR_TOOMANYPRIMITIVES MAKE_DDHRESULT(2083) |
| 170 | #define D3DERR_INVALIDMATRIX MAKE_DDHRESULT(2084) |
| 171 | #define D3DERR_TOOMANYVERTICES MAKE_DDHRESULT(2085) |
| 172 | #define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_DDHRESULT(2086) |
| 173 | |
| 174 | #define D3DERR_INVALIDSTATEBLOCK MAKE_DDHRESULT(2100) |
| 175 | #define D3DERR_INBEGINSTATEBLOCK MAKE_DDHRESULT(2101) |
| 176 | #define D3DERR_NOTINBEGINSTATEBLOCK MAKE_DDHRESULT(2102) |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 177 | |
| 178 | /* ******************************************************************** |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 179 | Enums |
| 180 | ******************************************************************** */ |
| 181 | #define D3DNEXT_NEXT 0x01l |
| 182 | #define D3DNEXT_HEAD 0x02l |
| 183 | #define D3DNEXT_TAIL 0x04l |
| 184 | |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 185 | /* ******************************************************************** |
| 186 | Types and structures |
| 187 | ******************************************************************** */ |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 188 | typedef DWORD D3DVIEWPORTHANDLE, *LPD3DVIEWPORTHANDLE; |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 189 | |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 190 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 191 | /***************************************************************************** |
| 192 | * IDirect3D interface |
| 193 | */ |
| 194 | #define ICOM_INTERFACE IDirect3D |
| 195 | #define IDirect3D_METHODS \ |
| 196 | ICOM_METHOD1(HRESULT,Initialize, REFIID,riid) \ |
| 197 | ICOM_METHOD2(HRESULT,EnumDevices, LPD3DENUMDEVICESCALLBACK,lpEnumDevicesCallback, LPVOID,lpUserArg) \ |
| 198 | ICOM_METHOD2(HRESULT,CreateLight, LPDIRECT3DLIGHT*,lplpDirect3DLight, IUnknown*,pUnkOuter) \ |
| 199 | ICOM_METHOD2(HRESULT,CreateMaterial, LPDIRECT3DMATERIAL*,lplpDirect3DMaterial, IUnknown*,pUnkOuter) \ |
| 200 | ICOM_METHOD2(HRESULT,CreateViewport, LPDIRECT3DVIEWPORT*,lplpD3DViewport, IUnknown*,pUnkOuter) \ |
| 201 | ICOM_METHOD2(HRESULT,FindDevice, LPD3DFINDDEVICESEARCH,lpD3DDFS, LPD3DFINDDEVICERESULT,lplpD3DDevice) |
| 202 | #define IDirect3D_IMETHODS \ |
| 203 | IUnknown_IMETHODS \ |
| 204 | IDirect3D_METHODS |
| 205 | ICOM_DEFINE(IDirect3D,IUnknown) |
| 206 | #undef ICOM_INTERFACE |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 207 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 208 | /*** IUnknown methods ***/ |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 209 | #define IDirect3D_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 210 | #define IDirect3D_AddRef(p) ICOM_CALL (AddRef,p) |
| 211 | #define IDirect3D_Release(p) ICOM_CALL (Release,p) |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 212 | /*** IDirect3D methods ***/ |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 213 | #define IDirect3D_Initialize(p,a) ICOM_CALL2(Initialize,p,a) |
| 214 | #define IDirect3D_EnumDevices(p,a,b) ICOM_CALL2(EnumDevices,p,a,b) |
| 215 | #define IDirect3D_CreateLight(p,a,b) ICOM_CALL2(CreateLight,p,a,b) |
| 216 | #define IDirect3D_CreateMaterial(p,a,b) ICOM_CALL2(CreateMaterial,p,a,b) |
| 217 | #define IDirect3D_CreateViewport(p,a,b) ICOM_CALL2(CreateViewport,p,a,b) |
| 218 | #define IDirect3D_FindDevice(p,a,b) ICOM_CALL2(FindDevice,p,a,b) |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 219 | |
| 220 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 221 | /***************************************************************************** |
| 222 | * IDirect3D2 interface |
| 223 | */ |
| 224 | #define ICOM_INTERFACE IDirect3D2 |
| 225 | #define IDirect3D2_METHODS \ |
| 226 | ICOM_METHOD2(HRESULT,EnumDevices, LPD3DENUMDEVICESCALLBACK,lpEnumDevicesCallback, LPVOID,lpUserArg) \ |
| 227 | ICOM_METHOD2(HRESULT,CreateLight, LPDIRECT3DLIGHT*,lplpDirect3DLight, IUnknown*,pUnkOuter) \ |
| 228 | ICOM_METHOD2(HRESULT,CreateMaterial, LPDIRECT3DMATERIAL2*,lplpDirect3DMaterial2, IUnknown*,pUnkOuter) \ |
| 229 | ICOM_METHOD2(HRESULT,CreateViewport, LPDIRECT3DVIEWPORT2*,lplpD3DViewport2, IUnknown*,pUnkOuter) \ |
| 230 | ICOM_METHOD2(HRESULT,FindDevice, LPD3DFINDDEVICESEARCH,lpD3DDFS, LPD3DFINDDEVICERESULT,lpD3DFDR) \ |
| 231 | ICOM_METHOD3(HRESULT,CreateDevice, REFCLSID,rclsid, LPDIRECTDRAWSURFACE,lpDDS, LPDIRECT3DDEVICE2*,lplpD3DDevice2) |
| 232 | #define IDirect3D2_IMETHODS \ |
| 233 | IUnknown_IMETHODS \ |
| 234 | IDirect3D2_METHODS |
| 235 | ICOM_DEFINE(IDirect3D2,IUnknown) |
| 236 | #undef ICOM_INTERFACE |
Vincent BĂ©ron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 237 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 238 | /*** IUnknown methods ***/ |
| 239 | #define IDirect3D2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 240 | #define IDirect3D2_AddRef(p) ICOM_CALL (AddRef,p) |
| 241 | #define IDirect3D2_Release(p) ICOM_CALL (Release,p) |
| 242 | /*** IDirect3D2 methods ***/ |
| 243 | #define IDirect3D2_EnumDevices(p,a,b) ICOM_CALL2(EnumDevices,p,a,b) |
| 244 | #define IDirect3D2_CreateLight(p,a,b) ICOM_CALL2(CreateLight,p,a,b) |
| 245 | #define IDirect3D2_CreateMaterial(p,a,b) ICOM_CALL2(CreateMaterial,p,a,b) |
| 246 | #define IDirect3D2_CreateViewport(p,a,b) ICOM_CALL2(CreateViewport,p,a,b) |
| 247 | #define IDirect3D2_FindDevice(p,a,b) ICOM_CALL2(FindDevice,p,a,b) |
| 248 | #define IDirect3D2_CreateDevice(p,a,b,c) ICOM_CALL3(CreateDevice,p,a,b,c) |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 249 | |
| 250 | |
| 251 | /***************************************************************************** |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 252 | * IDirect3D3 interface |
| 253 | */ |
| 254 | #define ICOM_INTERFACE IDirect3D3 |
| 255 | #define IDirect3D3_METHODS \ |
| 256 | ICOM_METHOD2(HRESULT,EnumDevices, LPD3DENUMDEVICESCALLBACK,lpEnumDevicesCallback, LPVOID,lpUserArg) \ |
| 257 | ICOM_METHOD2(HRESULT,CreateLight, LPDIRECT3DLIGHT*,lplpDirect3DLight, IUnknown*,pUnkOuter) \ |
| 258 | ICOM_METHOD2(HRESULT,CreateMaterial, LPDIRECT3DMATERIAL3*,lplpDirect3DMaterial3, IUnknown*,pUnkOuter) \ |
| 259 | ICOM_METHOD2(HRESULT,CreateViewport, LPDIRECT3DVIEWPORT3*,lplpD3DViewport3, IUnknown*,pUnkOuter) \ |
| 260 | ICOM_METHOD2(HRESULT,FindDevice, LPD3DFINDDEVICESEARCH,lpD3DDFS, LPD3DFINDDEVICERESULT,lpD3DFDR) \ |
| 261 | ICOM_METHOD4(HRESULT,CreateDevice, REFCLSID,rclsid,LPDIRECTDRAWSURFACE4,lpDDS, LPDIRECT3DDEVICE3*,lplpD3DDevice3,LPUNKNOWN,lpUnk) \ |
| 262 | ICOM_METHOD4(HRESULT,CreateVertexBuffer,LPD3DVERTEXBUFFERDESC,lpD3DVertBufDesc,LPDIRECT3DVERTEXBUFFER*,lplpD3DVertBuf,DWORD,dwFlags,LPUNKNOWN,lpUnk) \ |
| 263 | ICOM_METHOD3(HRESULT,EnumZBufferFormats,REFCLSID,riidDevice,LPD3DENUMPIXELFORMATSCALLBACK,lpEnumCallback,LPVOID,lpContext) \ |
| 264 | ICOM_METHOD (HRESULT,EvictManagedTextures) |
| 265 | #define IDirect3D3_IMETHODS \ |
| 266 | IUnknown_IMETHODS \ |
| 267 | IDirect3D3_METHODS |
| 268 | ICOM_DEFINE(IDirect3D3,IUnknown) |
| 269 | #undef ICOM_INTERFACE |
Vincent BĂ©ron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 270 | |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 271 | /*** IUnknown methods ***/ |
| 272 | #define IDirect3D3_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 273 | #define IDirect3D3_AddRef(p) ICOM_CALL (AddRef,p) |
| 274 | #define IDirect3D3_Release(p) ICOM_CALL (Release,p) |
| 275 | /*** IDirect3D3 methods ***/ |
| 276 | #define IDirect3D3_EnumDevices(p,a,b) ICOM_CALL2(EnumDevices,p,a,b) |
| 277 | #define IDirect3D3_CreateLight(p,a,b) ICOM_CALL2(CreateLight,p,a,b) |
| 278 | #define IDirect3D3_CreateMaterial(p,a,b) ICOM_CALL2(CreateMaterial,p,a,b) |
| 279 | #define IDirect3D3_CreateViewport(p,a,b) ICOM_CALL2(CreateViewport,p,a,b) |
| 280 | #define IDirect3D3_FindDevice(p,a,b) ICOM_CALL2(FindDevice,p,a,b) |
| 281 | #define IDirect3D3_CreateDevice(p,a,b,c,d) ICOM_CALL4(CreateDevice,p,a,b,c,d) |
| 282 | #define IDirect3D3_CreateVertexBuffer(p,a,b,c,d) ICOM_CALL4(CreateVertexBuffer,p,a,b,c,d) |
| 283 | #define IDirect3D3_EnumZBufferFormats(p,a,b,c) ICOM_CALL3(EnumZBufferFormats,p,a,b,c) |
| 284 | #define IDirect3D3_EvictManagedTextures(p) ICOM_CALL0(EvictManagedTextures,p) |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 285 | |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 286 | /***************************************************************************** |
| 287 | * IDirect3D7 interface |
| 288 | */ |
| 289 | #define ICOM_INTERFACE IDirect3D7 |
| 290 | #define IDirect3D7_METHODS \ |
| 291 | ICOM_METHOD2(HRESULT,EnumDevices, LPD3DENUMDEVICESCALLBACK7,lpEnumDevicesCallback, LPVOID,lpUserArg) \ |
| 292 | ICOM_METHOD3(HRESULT,CreateDevice, REFCLSID,rclsid,LPDIRECTDRAWSURFACE7,lpDDS, LPDIRECT3DDEVICE7*,lplpD3DDevice) \ |
| 293 | ICOM_METHOD3(HRESULT,CreateVertexBuffer,LPD3DVERTEXBUFFERDESC,lpD3DVertBufDesc,LPDIRECT3DVERTEXBUFFER7*,lplpD3DVertBuf,DWORD,dwFlags) \ |
| 294 | ICOM_METHOD3(HRESULT,EnumZBufferFormats,REFCLSID,riidDevice,LPD3DENUMPIXELFORMATSCALLBACK,lpEnumCallback,LPVOID,lpContext) \ |
| 295 | ICOM_METHOD (HRESULT,EvictManagedTextures) |
| 296 | #define IDirect3D7_IMETHODS \ |
| 297 | IUnknown_IMETHODS \ |
| 298 | IDirect3D7_METHODS |
| 299 | ICOM_DEFINE(IDirect3D7,IUnknown) |
| 300 | #undef ICOM_INTERFACE |
| 301 | |
| 302 | /*** IUnknown methods ***/ |
| 303 | #define IDirect3D7_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 304 | #define IDirect3D7_AddRef(p) ICOM_CALL (AddRef,p) |
| 305 | #define IDirect3D7_Release(p) ICOM_CALL (Release,p) |
| 306 | /*** IDirect3D3 methods ***/ |
| 307 | #define IDirect3D7_EnumDevices(p,a,b) ICOM_CALL2(EnumDevices,p,a,b) |
| 308 | #define IDirect3D7_CreateDevice(p,a,b,c) ICOM_CALL3(CreateDevice,p,a,b,c) |
| 309 | #define IDirect3D7_CreateVertexBuffer(p,a,b,c) ICOM_CALL4(CreateVertexBuffer,p,a,b,c) |
| 310 | #define IDirect3D7_EnumZBufferFormats(p,a,b,c) ICOM_CALL3(EnumZBufferFormats,p,a,b,c) |
| 311 | #define IDirect3D7_EvictManagedTextures(p) ICOM_CALL0(EvictManagedTextures,p) |
| 312 | |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 313 | |
| 314 | /***************************************************************************** |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 315 | * IDirect3DLight interface |
| 316 | */ |
| 317 | #define ICOM_INTERFACE IDirect3DLight |
| 318 | #define IDirect3DLight_METHODS \ |
| 319 | ICOM_METHOD1(HRESULT,Initialize, LPDIRECT3D,lpDirect3D) \ |
| 320 | ICOM_METHOD1(HRESULT,SetLight, LPD3DLIGHT,lpLight) \ |
| 321 | ICOM_METHOD1(HRESULT,GetLight, LPD3DLIGHT,lpLight) |
| 322 | #define IDirect3DLight_IMETHODS \ |
| 323 | IUnknown_IMETHODS \ |
| 324 | IDirect3DLight_METHODS |
| 325 | ICOM_DEFINE(IDirect3DLight,IUnknown) |
| 326 | #undef ICOM_INTERFACE |
Vincent BĂ©ron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 327 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 328 | /*** IUnknown methods ***/ |
| 329 | #define IDirect3DLight_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 330 | #define IDirect3DLight_AddRef(p) ICOM_CALL (AddRef,p) |
| 331 | #define IDirect3DLight_Release(p) ICOM_CALL (Release,p) |
| 332 | /*** IDirect3DLight methods ***/ |
| 333 | #define IDirect3DLight_Initialize(p,a) ICOM_CALL1(Initialize,p,a) |
| 334 | #define IDirect3DLight_SetLight(p,a) ICOM_CALL1(SetLight,p,a) |
| 335 | #define IDirect3DLight_GetLight(p,a) ICOM_CALL1(GetLight,p,a) |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 336 | |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 337 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 338 | /***************************************************************************** |
| 339 | * IDirect3DMaterial interface |
| 340 | */ |
| 341 | #define ICOM_INTERFACE IDirect3DMaterial |
| 342 | #define IDirect3DMaterial_METHODS \ |
| 343 | ICOM_METHOD1(HRESULT,Initialize, LPDIRECT3D,lpDirect3D) \ |
| 344 | ICOM_METHOD1(HRESULT,SetMaterial, LPD3DMATERIAL,lpMat) \ |
| 345 | ICOM_METHOD1(HRESULT,GetMaterial, LPD3DMATERIAL,lpMat) \ |
Ove Kaaven | a9ea857 | 2001-04-16 19:02:22 +0000 | [diff] [blame] | 346 | ICOM_METHOD2(HRESULT,GetHandle, LPDIRECT3DDEVICE,lpDirect3DDevice, LPD3DMATERIALHANDLE,lpHandle) \ |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 347 | ICOM_METHOD (HRESULT,Reserve) \ |
| 348 | ICOM_METHOD (HRESULT,Unreserve) |
| 349 | #define IDirect3DMaterial_IMETHODS \ |
| 350 | IUnknown_IMETHODS \ |
| 351 | IDirect3DMaterial_METHODS |
| 352 | ICOM_DEFINE(IDirect3DMaterial,IUnknown) |
| 353 | #undef ICOM_INTERFACE |
| 354 | |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 355 | /*** IUnknown methods ***/ |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 356 | #define IDirect3DMaterial_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 357 | #define IDirect3DMaterial_AddRef(p) ICOM_CALL (AddRef,p) |
| 358 | #define IDirect3DMaterial_Release(p) ICOM_CALL (Release,p) |
| 359 | /*** IDirect3DMaterial methods ***/ |
| 360 | #define IDirect3DMaterial_Initialize(p,a) ICOM_CALL1(Initialize,p,a) |
| 361 | #define IDirect3DMaterial_SetMaterial(p,a) ICOM_CALL1(SetMaterial,p,a) |
| 362 | #define IDirect3DMaterial_GetMaterial(p,a) ICOM_CALL1(GetMaterial,p,a) |
| 363 | #define IDirect3DMaterial_GetHandle(p,a,b) ICOM_CALL2(GetHandle,p,a,b) |
| 364 | #define IDirect3DMaterial_Reserve(p) ICOM_CALL (Reserve,p) |
| 365 | #define IDirect3DMaterial_Unreserve(p) ICOM_CALL (Unreserve,p) |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 366 | |
| 367 | |
| 368 | /***************************************************************************** |
| 369 | * IDirect3DMaterial2 interface |
| 370 | */ |
| 371 | #define ICOM_INTERFACE IDirect3DMaterial2 |
| 372 | #define IDirect3DMaterial2_METHODS \ |
| 373 | ICOM_METHOD1(HRESULT,SetMaterial, LPD3DMATERIAL,lpMat) \ |
| 374 | ICOM_METHOD1(HRESULT,GetMaterial, LPD3DMATERIAL,lpMat) \ |
| 375 | ICOM_METHOD2(HRESULT,GetHandle, LPDIRECT3DDEVICE2,lpDirect3DDevice2, LPD3DMATERIALHANDLE,lpHandle) |
| 376 | #define IDirect3DMaterial2_IMETHODS \ |
| 377 | IUnknown_IMETHODS \ |
| 378 | IDirect3DMaterial2_METHODS |
| 379 | ICOM_DEFINE(IDirect3DMaterial2,IUnknown) |
| 380 | #undef ICOM_INTERFACE |
| 381 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 382 | /*** IUnknown methods ***/ |
| 383 | #define IDirect3DMaterial2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 384 | #define IDirect3DMaterial2_AddRef(p) ICOM_CALL (AddRef,p) |
| 385 | #define IDirect3DMaterial2_Release(p) ICOM_CALL (Release,p) |
| 386 | /*** IDirect3DMaterial2 methods ***/ |
| 387 | #define IDirect3DMaterial2_SetMaterial(p,a) ICOM_CALL1(SetMaterial,p,a) |
| 388 | #define IDirect3DMaterial2_GetMaterial(p,a) ICOM_CALL1(GetMaterial,p,a) |
| 389 | #define IDirect3DMaterial2_GetHandle(p,a,b) ICOM_CALL2(GetHandle,p,a,b) |
Vincent BĂ©ron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 390 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 391 | |
| 392 | /***************************************************************************** |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 393 | * IDirect3DMaterial3 interface |
| 394 | */ |
| 395 | #define ICOM_INTERFACE IDirect3DMaterial3 |
| 396 | #define IDirect3DMaterial3_METHODS \ |
| 397 | ICOM_METHOD1(HRESULT,SetMaterial, LPD3DMATERIAL,lpMat) \ |
| 398 | ICOM_METHOD1(HRESULT,GetMaterial, LPD3DMATERIAL,lpMat) \ |
| 399 | ICOM_METHOD2(HRESULT,GetHandle, LPDIRECT3DDEVICE3,lpDirect3DDevice2, LPD3DMATERIALHANDLE,lpHandle) |
| 400 | #define IDirect3DMaterial3_IMETHODS \ |
| 401 | IUnknown_IMETHODS \ |
| 402 | IDirect3DMaterial3_METHODS |
| 403 | ICOM_DEFINE(IDirect3DMaterial3,IUnknown) |
| 404 | #undef ICOM_INTERFACE |
| 405 | |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 406 | /*** IUnknown methods ***/ |
| 407 | #define IDirect3DMaterial3_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 408 | #define IDirect3DMaterial3_AddRef(p) ICOM_CALL (AddRef,p) |
| 409 | #define IDirect3DMaterial3_Release(p) ICOM_CALL (Release,p) |
| 410 | /*** IDirect3DMaterial3 methods ***/ |
| 411 | #define IDirect3DMaterial3_SetMaterial(p,a) ICOM_CALL1(SetMaterial,p,a) |
| 412 | #define IDirect3DMaterial3_GetMaterial(p,a) ICOM_CALL1(GetMaterial,p,a) |
| 413 | #define IDirect3DMaterial3_GetHandle(p,a,b) ICOM_CALL2(GetHandle,p,a,b) |
Vincent BĂ©ron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 414 | |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 415 | |
| 416 | /***************************************************************************** |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 417 | * IDirect3DTexture interface |
| 418 | */ |
| 419 | #define ICOM_INTERFACE IDirect3DTexture |
| 420 | #define IDirect3DTexture_METHODS \ |
| 421 | ICOM_METHOD2(HRESULT,Initialize, LPDIRECT3DDEVICE,lpDirect3DDevice, LPDIRECTDRAWSURFACE,) \ |
| 422 | ICOM_METHOD2(HRESULT,GetHandle, LPDIRECT3DDEVICE,lpDirect3DDevice, LPD3DTEXTUREHANDLE,) \ |
| 423 | ICOM_METHOD2(HRESULT,PaletteChanged, DWORD,dwStart, DWORD,dwCount) \ |
| 424 | ICOM_METHOD1(HRESULT,Load, LPDIRECT3DTEXTURE,lpD3DTexture) \ |
| 425 | ICOM_METHOD (HRESULT,Unload) |
| 426 | #define IDirect3DTexture_IMETHODS \ |
| 427 | IUnknown_IMETHODS \ |
| 428 | IDirect3DTexture_METHODS |
| 429 | ICOM_DEFINE(IDirect3DTexture,IUnknown) |
| 430 | #undef ICOM_INTERFACE |
| 431 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 432 | /*** IUnknown methods ***/ |
| 433 | #define IDirect3DTexture_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 434 | #define IDirect3DTexture_AddRef(p) ICOM_CALL (AddRef,p) |
| 435 | #define IDirect3DTexture_Release(p) ICOM_CALL (Release,p) |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 436 | /*** IDirect3DTexture methods ***/ |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 437 | #define IDirect3DTexture_Initialize(p,a,b,c) ICOM_CALL(Initialize,p,a,b,c) |
| 438 | #define IDirect3DTexture_GetHandle(p,a,b,c) ICOM_CALL(GetHandle,p,a,b,c) |
| 439 | #define IDirect3DTexture_PaletteChanged(p,a,b,c) ICOM_CALL(PaletteChanged,p,a,b,c) |
| 440 | #define IDirect3DTexture_Load(p,a,b,c) ICOM_CALL(Load,p,a,b,c) |
| 441 | #define IDirect3DTexture_Unload(p,a,b,c) ICOM_CALL(Unload,p,a,b,c) |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 442 | |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 443 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 444 | /***************************************************************************** |
| 445 | * IDirect3DTexture2 interface |
| 446 | */ |
| 447 | #define ICOM_INTERFACE IDirect3DTexture2 |
| 448 | #define IDirect3DTexture2_METHODS \ |
| 449 | ICOM_METHOD2(HRESULT,GetHandle, LPDIRECT3DDEVICE2,lpDirect3DDevice2, LPD3DTEXTUREHANDLE,lpHandle) \ |
| 450 | ICOM_METHOD2(HRESULT,PaletteChanged, DWORD,dwStart, DWORD,dwCount) \ |
| 451 | ICOM_METHOD1(HRESULT,Load, LPDIRECT3DTEXTURE2,lpD3DTexture2) |
| 452 | #define IDirect3DTexture2_IMETHODS \ |
| 453 | IUnknown_IMETHODS \ |
| 454 | IDirect3DTexture2_METHODS |
| 455 | ICOM_DEFINE(IDirect3DTexture2,IUnknown) |
| 456 | #undef ICOM_INTERFACE |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 457 | |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 458 | /*** IUnknown methods ***/ |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 459 | #define IDirect3DTexture2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 460 | #define IDirect3DTexture2_AddRef(p) ICOM_CALL (AddRef,p) |
| 461 | #define IDirect3DTexture2_Release(p) ICOM_CALL (Release,p) |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 462 | /*** IDirect3DTexture2 methods ***/ |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 463 | #define IDirect3DTexture2_GetHandle(p,a,b) ICOM_CALL2(GetHandle,p,a,b) |
| 464 | #define IDirect3DTexture2_PaletteChanged(p,a,b) ICOM_CALL2(PaletteChanged,p,a,b) |
| 465 | #define IDirect3DTexture2_Load(p,a) ICOM_CALL1(Load,p,a) |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 466 | |
| 467 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 468 | /***************************************************************************** |
| 469 | * IDirect3DViewport interface |
| 470 | */ |
| 471 | #define ICOM_INTERFACE IDirect3DViewport |
| 472 | #define IDirect3DViewport_METHODS \ |
| 473 | ICOM_METHOD1(HRESULT,Initialize, LPDIRECT3D,lpDirect3D) \ |
| 474 | ICOM_METHOD1(HRESULT,GetViewport, LPD3DVIEWPORT,lpData) \ |
| 475 | ICOM_METHOD1(HRESULT,SetViewport, LPD3DVIEWPORT,lpData) \ |
| 476 | ICOM_METHOD4(HRESULT,TransformVertices, DWORD,dwVertexCount, LPD3DTRANSFORMDATA,lpData, DWORD,dwFlags, LPDWORD,lpOffScreen) \ |
| 477 | ICOM_METHOD2(HRESULT,LightElements, DWORD,dwElementCount, LPD3DLIGHTDATA,lpData) \ |
| 478 | ICOM_METHOD1(HRESULT,SetBackground, D3DMATERIALHANDLE,hMat) \ |
| 479 | ICOM_METHOD2(HRESULT,GetBackground, LPD3DMATERIALHANDLE,, LPBOOL,) \ |
| 480 | ICOM_METHOD1(HRESULT,SetBackgroundDepth, LPDIRECTDRAWSURFACE,lpDDSurface) \ |
| 481 | ICOM_METHOD2(HRESULT,GetBackgroundDepth, LPDIRECTDRAWSURFACE*,lplpDDSurface, LPBOOL,lpValid) \ |
| 482 | ICOM_METHOD3(HRESULT,Clear, DWORD,dwCount, LPD3DRECT,lpRects, DWORD,dwFlags) \ |
| 483 | ICOM_METHOD1(HRESULT,AddLight, LPDIRECT3DLIGHT,lpDirect3DLight) \ |
| 484 | ICOM_METHOD1(HRESULT,DeleteLight, LPDIRECT3DLIGHT,lpDirect3DLight) \ |
| 485 | ICOM_METHOD3(HRESULT,NextLight, LPDIRECT3DLIGHT,lpDirect3DLight, LPDIRECT3DLIGHT*,lplpDirect3DLight, DWORD,dwFlags) |
| 486 | #define IDirect3DViewport_IMETHODS \ |
| 487 | IUnknown_IMETHODS \ |
| 488 | IDirect3DViewport_METHODS |
| 489 | ICOM_DEFINE(IDirect3DViewport,IUnknown) |
| 490 | #undef ICOM_INTERFACE |
| 491 | |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 492 | /*** IUnknown methods ***/ |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 493 | #define IDirect3DViewport_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 494 | #define IDirect3DViewport_AddRef(p) ICOM_CALL (AddRef,p) |
| 495 | #define IDirect3DViewport_Release(p) ICOM_CALL (Release,p) |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 496 | /*** IDirect3DViewport methods ***/ |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 497 | #define IDirect3DViewport_Initialize(p,a) ICOM_CALL1(Initialize,p,a) |
| 498 | #define IDirect3DViewport_GetViewport(p,a) ICOM_CALL1(GetViewport,p,a) |
| 499 | #define IDirect3DViewport_SetViewport(p,a) ICOM_CALL1(SetViewport,p,a) |
| 500 | #define IDirect3DViewport_TransformVertices(p,a,b,c,d) ICOM_CALL4(TransformVertices,p,a,b,c,d) |
| 501 | #define IDirect3DViewport_LightElements(p,a,b) ICOM_CALL2(LightElements,p,a,b) |
| 502 | #define IDirect3DViewport_SetBackground(p,a) ICOM_CALL1(SetBackground,p,a) |
| 503 | #define IDirect3DViewport_GetBackground(p,a,b) ICOM_CALL2(GetBackground,p,a,b) |
| 504 | #define IDirect3DViewport_SetBackgroundDepth(p,a) ICOM_CALL1(SetBackgroundDepth,p,a) |
| 505 | #define IDirect3DViewport_GetBackgroundDepth(p,a,b) ICOM_CALL2(GetBackgroundDepth,p,a,b) |
| 506 | #define IDirect3DViewport_Clear(p,a,b,c) ICOM_CALL3(Clear,p,a,b,c) |
| 507 | #define IDirect3DViewport_AddLight(p,a) ICOM_CALL1(AddLight,p,a) |
| 508 | #define IDirect3DViewport_DeleteLight(p,a) ICOM_CALL1(DeleteLight,p,a) |
| 509 | #define IDirect3DViewport_NextLight(p,a,b,c) ICOM_CALL3(NextLight,p,a,b,c) |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 510 | |
| 511 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 512 | /***************************************************************************** |
| 513 | * IDirect3DViewport2 interface |
| 514 | */ |
| 515 | #define ICOM_INTERFACE IDirect3DViewport2 |
| 516 | #define IDirect3DViewport2_METHODS \ |
| 517 | ICOM_METHOD1(HRESULT,GetViewport2, LPD3DVIEWPORT2,lpData) \ |
| 518 | ICOM_METHOD1(HRESULT,SetViewport2, LPD3DVIEWPORT2,lpData) |
| 519 | #define IDirect3DViewport2_IMETHODS \ |
| 520 | IDirect3DViewport_IMETHODS \ |
| 521 | IDirect3DViewport2_METHODS |
| 522 | ICOM_DEFINE(IDirect3DViewport2,IDirect3DViewport) |
| 523 | #undef ICOM_INTERFACE |
| 524 | |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 525 | /*** IUnknown methods ***/ |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 526 | #define IDirect3DViewport2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 527 | #define IDirect3DViewport2_AddRef(p) ICOM_CALL (AddRef,p) |
| 528 | #define IDirect3DViewport2_Release(p) ICOM_CALL (Release,p) |
| 529 | /*** IDirect3Viewport methods ***/ |
| 530 | #define IDirect3DViewport2_Initialize(p,a) ICOM_CALL1(Initialize,p,a) |
| 531 | #define IDirect3DViewport2_GetViewport(p,a) ICOM_CALL1(GetViewport,p,a) |
| 532 | #define IDirect3DViewport2_SetViewport(p,a) ICOM_CALL1(SetViewport,p,a) |
| 533 | #define IDirect3DViewport2_TransformVertices(p,a,b,c,d) ICOM_CALL4(TransformVertices,p,a,b,c,d) |
| 534 | #define IDirect3DViewport2_LightElements(p,a,b) ICOM_CALL2(LightElements,p,a,b) |
| 535 | #define IDirect3DViewport2_SetBackground(p,a) ICOM_CALL1(SetBackground,p,a) |
| 536 | #define IDirect3DViewport2_GetBackground(p,a,b) ICOM_CALL2(GetBackground,p,a,b) |
| 537 | #define IDirect3DViewport2_SetBackgroundDepth(p,a) ICOM_CALL1(SetBackgroundDepth,p,a) |
| 538 | #define IDirect3DViewport2_GetBackgroundDepth(p,a,b) ICOM_CALL2(GetBackgroundDepth,p,a,b) |
| 539 | #define IDirect3DViewport2_Clear(p,a,b,c) ICOM_CALL3(Clear,p,a,b,c) |
| 540 | #define IDirect3DViewport2_AddLight(p,a) ICOM_CALL1(AddLight,p,a) |
| 541 | #define IDirect3DViewport2_DeleteLight(p,a) ICOM_CALL1(DeleteLight,p,a) |
| 542 | #define IDirect3DViewport2_NextLight(p,a,b,c) ICOM_CALL3(NextLight,p,a,b,c) |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 543 | /*** IDirect3DViewport2 methods ***/ |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 544 | #define IDirect3DViewport2_GetViewport2(p,a) ICOM_CALL1(GetViewport2,p,a) |
| 545 | #define IDirect3DViewport2_SetViewport2(p,a) ICOM_CALL1(SetViewport2,p,a) |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 546 | |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 547 | /***************************************************************************** |
| 548 | * IDirect3DViewport3 interface |
| 549 | */ |
| 550 | #define ICOM_INTERFACE IDirect3DViewport3 |
| 551 | #define IDirect3DViewport3_METHODS \ |
| 552 | ICOM_METHOD1(HRESULT,SetBackgroundDepth2,LPDIRECTDRAWSURFACE4,lpDDS) \ |
| 553 | ICOM_METHOD2(HRESULT,GetBackgroundDepth2,LPDIRECTDRAWSURFACE4*,lplpDDS,LPBOOL,lpValid) \ |
| 554 | ICOM_METHOD6(HRESULT,Clear2,DWORD,dwCount,LPD3DRECT,lpRects,DWORD,dwFlags,DWORD,dwColor,D3DVALUE,dvZ,DWORD,dwStencil) |
| 555 | #define IDirect3DViewport3_IMETHODS \ |
| 556 | IDirect3DViewport2_IMETHODS \ |
| 557 | IDirect3DViewport3_METHODS |
Ove Kaaven | a9ea857 | 2001-04-16 19:02:22 +0000 | [diff] [blame] | 558 | ICOM_DEFINE(IDirect3DViewport3,IDirect3DViewport2) |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 559 | #undef ICOM_INTERFACE |
| 560 | |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 561 | /*** IUnknown methods ***/ |
| 562 | #define IDirect3DViewport3_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 563 | #define IDirect3DViewport3_AddRef(p) ICOM_CALL (AddRef,p) |
| 564 | #define IDirect3DViewport3_Release(p) ICOM_CALL (Release,p) |
| 565 | /*** IDirect3Viewport methods ***/ |
| 566 | #define IDirect3DViewport3_Initialize(p,a) ICOM_CALL1(Initialize,p,a) |
| 567 | #define IDirect3DViewport3_GetViewport(p,a) ICOM_CALL1(GetViewport,p,a) |
| 568 | #define IDirect3DViewport3_SetViewport(p,a) ICOM_CALL1(SetViewport,p,a) |
| 569 | #define IDirect3DViewport3_TransformVertices(p,a,b,c,d) ICOM_CALL4(TransformVertices,p,a,b,c,d) |
| 570 | #define IDirect3DViewport3_LightElements(p,a,b) ICOM_CALL2(LightElements,p,a,b) |
| 571 | #define IDirect3DViewport3_SetBackground(p,a) ICOM_CALL1(SetBackground,p,a) |
| 572 | #define IDirect3DViewport3_GetBackground(p,a,b) ICOM_CALL2(GetBackground,p,a,b) |
| 573 | #define IDirect3DViewport3_SetBackgroundDepth(p,a) ICOM_CALL1(SetBackgroundDepth,p,a) |
| 574 | #define IDirect3DViewport3_GetBackgroundDepth(p,a,b) ICOM_CALL2(GetBackgroundDepth,p,a,b) |
| 575 | #define IDirect3DViewport3_Clear(p,a,b,c) ICOM_CALL3(Clear,p,a,b,c) |
| 576 | #define IDirect3DViewport3_AddLight(p,a) ICOM_CALL1(AddLight,p,a) |
| 577 | #define IDirect3DViewport3_DeleteLight(p,a) ICOM_CALL1(DeleteLight,p,a) |
| 578 | #define IDirect3DViewport3_NextLight(p,a,b,c) ICOM_CALL3(NextLight,p,a,b,c) |
| 579 | /*** IDirect3DViewport2 methods ***/ |
| 580 | #define IDirect3DViewport3_GetViewport3(p,a) ICOM_CALL1(GetViewport2,p,a) |
| 581 | #define IDirect3DViewport3_SetViewport3(p,a) ICOM_CALL1(SetViewport2,p,a) |
| 582 | /*** IDirect3DViewport3 methods ***/ |
| 583 | #define IDirect3DViewport3_SetBackgroundDepth2(p,a) ICOM_CALL1(SetBackgroundDepth2,p,a) |
| 584 | #define IDirect3DViewport3_GetBackgroundDepth2(p,a,b) ICOM_CALL2(GetBackgroundDepth2,p,a,b) |
| 585 | #define IDirect3DViewport3_Clear2(p,a,b,c,d,e,f) ICOM_CALL7(Clear2,p,a,b,c,d,e,f) |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 586 | |
| 587 | |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 588 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 589 | /***************************************************************************** |
| 590 | * IDirect3DExecuteBuffer interface |
| 591 | */ |
| 592 | #define ICOM_INTERFACE IDirect3DExecuteBuffer |
| 593 | #define IDirect3DExecuteBuffer_METHODS \ |
| 594 | ICOM_METHOD2(HRESULT,Initialize, LPDIRECT3DDEVICE,lpDirect3DDevice, LPD3DEXECUTEBUFFERDESC,lpDesc) \ |
| 595 | ICOM_METHOD1(HRESULT,Lock, LPD3DEXECUTEBUFFERDESC,lpDesc) \ |
| 596 | ICOM_METHOD (HRESULT,Unlock) \ |
| 597 | ICOM_METHOD1(HRESULT,SetExecuteData, LPD3DEXECUTEDATA,lpData) \ |
| 598 | ICOM_METHOD1(HRESULT,GetExecuteData, LPD3DEXECUTEDATA,lpData) \ |
| 599 | ICOM_METHOD4(HRESULT,Validate, LPDWORD,lpdwOffset, LPD3DVALIDATECALLBACK,lpFunc, LPVOID,lpUserArg, DWORD,dwReserved) \ |
| 600 | ICOM_METHOD1(HRESULT,Optimize, DWORD,) |
| 601 | #define IDirect3DExecuteBuffer_IMETHODS \ |
| 602 | IUnknown_IMETHODS \ |
| 603 | IDirect3DExecuteBuffer_METHODS |
| 604 | ICOM_DEFINE(IDirect3DExecuteBuffer,IUnknown) |
| 605 | #undef ICOM_INTERFACE |
| 606 | |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 607 | /*** IUnknown methods ***/ |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 608 | #define IDirect3DExecuteBuffer_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 609 | #define IDirect3DExecuteBuffer_AddRef(p) ICOM_CALL (AddRef,p) |
| 610 | #define IDirect3DExecuteBuffer_Release(p) ICOM_CALL (Release,p) |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 611 | /*** IDirect3DExecuteBuffer methods ***/ |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 612 | #define IDirect3DExecuteBuffer_Initialize(p,a,b) ICOM_CALL2(Initialize,p,a,b) |
| 613 | #define IDirect3DExecuteBuffer_Lock(p,a) ICOM_CALL1(Lock,p,a) |
| 614 | #define IDirect3DExecuteBuffer_Unlock(p) ICOM_CALL (Unlock,p) |
| 615 | #define IDirect3DExecuteBuffer_SetExecuteData(p,a) ICOM_CALL1(SetExecuteData,p,a) |
| 616 | #define IDirect3DExecuteBuffer_GetExecuteData(p,a) ICOM_CALL1(GetExecuteData,p,a) |
| 617 | #define IDirect3DExecuteBuffer_Validate(p,a,b,c,d) ICOM_CALL4(Validate,p,a,b,c,d) |
| 618 | #define IDirect3DExecuteBuffer_Optimize(p,a) ICOM_CALL1(Optimize,p,a) |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 619 | |
| 620 | |
| 621 | /***************************************************************************** |
| 622 | * IDirect3DDevice interface |
| 623 | */ |
| 624 | #define ICOM_INTERFACE IDirect3DDevice |
| 625 | #define IDirect3DDevice_METHODS \ |
| 626 | ICOM_METHOD3(HRESULT,Initialize, LPDIRECT3D,lpDirect3D, LPGUID,lpGUID, LPD3DDEVICEDESC,lpD3DDVDesc) \ |
| 627 | ICOM_METHOD2(HRESULT,GetCaps, LPD3DDEVICEDESC,lpD3DHWDevDesc, LPD3DDEVICEDESC,lpD3DHELDevDesc) \ |
| 628 | ICOM_METHOD2(HRESULT,SwapTextureHandles, LPDIRECT3DTEXTURE,lpD3Dtex1, LPDIRECT3DTEXTURE,lpD3DTex2) \ |
| 629 | ICOM_METHOD3(HRESULT,CreateExecuteBuffer, LPD3DEXECUTEBUFFERDESC,lpDesc, LPDIRECT3DEXECUTEBUFFER*,lplpDirect3DExecuteBuffer, IUnknown*,pUnkOuter) \ |
| 630 | ICOM_METHOD1(HRESULT,GetStats, LPD3DSTATS,lpD3DStats) \ |
| 631 | ICOM_METHOD3(HRESULT,Execute, LPDIRECT3DEXECUTEBUFFER,lpDirect3DExecuteBuffer, LPDIRECT3DVIEWPORT,lpDirect3DViewport, DWORD,dwFlags) \ |
| 632 | ICOM_METHOD1(HRESULT,AddViewport, LPDIRECT3DVIEWPORT,lpDirect3DViewport) \ |
| 633 | ICOM_METHOD1(HRESULT,DeleteViewport, LPDIRECT3DVIEWPORT,lpDirect3DViewport) \ |
| 634 | ICOM_METHOD3(HRESULT,NextViewport, LPDIRECT3DVIEWPORT,lpDirect3DViewport, LPDIRECT3DVIEWPORT*,lplpDirect3DViewport, DWORD,dwFlags) \ |
| 635 | ICOM_METHOD4(HRESULT,Pick, LPDIRECT3DEXECUTEBUFFER,lpDirect3DExecuteBuffer, LPDIRECT3DVIEWPORT,lpDirect3DViewport, DWORD,dwFlags, LPD3DRECT,lpRect) \ |
| 636 | ICOM_METHOD2(HRESULT,GetPickRecords, LPDWORD,lpCount, LPD3DPICKRECORD,lpD3DPickRec) \ |
| 637 | ICOM_METHOD2(HRESULT,EnumTextureFormats, LPD3DENUMTEXTUREFORMATSCALLBACK,lpD3DEnumTextureProc, LPVOID,lpArg) \ |
| 638 | ICOM_METHOD1(HRESULT,CreateMatrix, LPD3DMATRIXHANDLE,lpD3DMatHandle) \ |
| 639 | ICOM_METHOD2(HRESULT,SetMatrix, D3DMATRIXHANDLE,D3DMatHandle, LPD3DMATRIX,lpD3DMatrix) \ |
| 640 | ICOM_METHOD2(HRESULT,GetMatrix, D3DMATRIXHANDLE,D3DMatHandle, LPD3DMATRIX,lpD3DMatrix) \ |
| 641 | ICOM_METHOD1(HRESULT,DeleteMatrix, D3DMATRIXHANDLE,D3DMatHandle) \ |
| 642 | ICOM_METHOD (HRESULT,BeginScene) \ |
| 643 | ICOM_METHOD (HRESULT,EndScene) \ |
| 644 | ICOM_METHOD1(HRESULT,GetDirect3D, LPDIRECT3D*,lplpDirect3D) |
| 645 | #define IDirect3DDevice_IMETHODS \ |
| 646 | IUnknown_IMETHODS \ |
| 647 | IDirect3DDevice_METHODS |
| 648 | ICOM_DEFINE(IDirect3DDevice,IUnknown) |
| 649 | #undef ICOM_INTERFACE |
| 650 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 651 | /*** IUnknown methods ***/ |
| 652 | #define IDirect3DDevice_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 653 | #define IDirect3DDevice_AddRef(p) ICOM_CALL (AddRef,p) |
| 654 | #define IDirect3DDevice_Release(p) ICOM_CALL (Release,p) |
| 655 | /*** IDirect3DDevice methods ***/ |
| 656 | #define IDirect3DDevice_Initialize(p,a,b,c) ICOM_CALL3(Initialize,p,a,b,c) |
| 657 | #define IDirect3DDevice_GetCaps(p,a,b) ICOM_CALL2(GetCaps,p,a,b) |
| 658 | #define IDirect3DDevice_SwapTextureHandles(p,a,b) ICOM_CALL2(SwapTextureHandles,p,a,b) |
| 659 | #define IDirect3DDevice_CreateExecuteBuffer(p,a,b,c) ICOM_CALL3(CreateExecuteBuffer,p,a,b,c) |
| 660 | #define IDirect3DDevice_GetStats(p,a) ICOM_CALL1(GetStats,p,a) |
| 661 | #define IDirect3DDevice_Execute(p,a,b,c) ICOM_CALL3(Execute,p,a,b,c) |
| 662 | #define IDirect3DDevice_AddViewport(p,a) ICOM_CALL1(AddViewport,p,a) |
| 663 | #define IDirect3DDevice_DeleteViewport(p,a) ICOM_CALL1(DeleteViewport,p,a) |
| 664 | #define IDirect3DDevice_NextViewport(p,a,b,c) ICOM_CALL3(NextViewport,p,a,b,c) |
| 665 | #define IDirect3DDevice_Pick(p,a,b,c,d) ICOM_CALL4(Pick,p,a,b,c,d) |
| 666 | #define IDirect3DDevice_GetPickRecords(p,a,b) ICOM_CALL2(GetPickRecords,p,a,b) |
| 667 | #define IDirect3DDevice_EnumTextureFormats(p,a,b) ICOM_CALL2(EnumTextureFormats,p,a,b) |
| 668 | #define IDirect3DDevice_CreateMatrix(p,a) ICOM_CALL1(CreateMatrix,p,a) |
| 669 | #define IDirect3DDevice_SetMatrix(p,a,b) ICOM_CALL2(SetMatrix,p,a,b) |
| 670 | #define IDirect3DDevice_GetMatrix(p,a,b) ICOM_CALL2(GetMatrix,p,a,b) |
| 671 | #define IDirect3DDevice_DeleteMatrix(p,a) ICOM_CALL1(DeleteMatrix,p,a) |
| 672 | #define IDirect3DDevice_BeginScene(p) ICOM_CALL (BeginScene,p) |
| 673 | #define IDirect3DDevice_EndScene(p) ICOM_CALL (EndScene,p) |
| 674 | #define IDirect3DDevice_GetDirect3D(p,a) ICOM_CALL1(GetDirect3D,p,a) |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 675 | |
| 676 | |
| 677 | /***************************************************************************** |
| 678 | * IDirect3DDevice2 interface |
| 679 | */ |
| 680 | #define ICOM_INTERFACE IDirect3DDevice2 |
| 681 | #define IDirect3DDevice2_METHODS \ |
| 682 | ICOM_METHOD2(HRESULT,GetCaps, LPD3DDEVICEDESC,lpD3DHWDevDesc, LPD3DDEVICEDESC,lpD3DHELDevDesc) \ |
| 683 | ICOM_METHOD2(HRESULT,SwapTextureHandles, LPDIRECT3DTEXTURE2,lpD3DTex1, LPDIRECT3DTEXTURE2,lpD3DTex2) \ |
| 684 | ICOM_METHOD1(HRESULT,GetStats, LPD3DSTATS,lpD3DStats) \ |
| 685 | ICOM_METHOD1(HRESULT,AddViewport, LPDIRECT3DVIEWPORT2,lpDirect3DViewport2) \ |
| 686 | ICOM_METHOD1(HRESULT,DeleteViewport, LPDIRECT3DVIEWPORT2,lpDirect3DViewport2) \ |
| 687 | ICOM_METHOD3(HRESULT,NextViewport, LPDIRECT3DVIEWPORT2,lpDirect3DViewport2, LPDIRECT3DVIEWPORT2*,lplpDirect3DViewport2, DWORD,dwFlags) \ |
| 688 | ICOM_METHOD2(HRESULT,EnumTextureFormats, LPD3DENUMTEXTUREFORMATSCALLBACK,lpD3DEnumTextureProc, LPVOID,lpArg) \ |
| 689 | ICOM_METHOD (HRESULT,BeginScene) \ |
| 690 | ICOM_METHOD (HRESULT,EndScene) \ |
| 691 | ICOM_METHOD1(HRESULT,GetDirect3D, LPDIRECT3D2*,lplpDirect3D2) \ |
| 692 | /*** DrawPrimitive API ***/ \ |
| 693 | ICOM_METHOD1(HRESULT,SetCurrentViewport, LPDIRECT3DVIEWPORT2,lpDirect3DViewport2) \ |
| 694 | ICOM_METHOD1(HRESULT,GetCurrentViewport, LPDIRECT3DVIEWPORT2*,lplpDirect3DViewport2) \ |
| 695 | ICOM_METHOD2(HRESULT,SetRenderTarget, LPDIRECTDRAWSURFACE,lpNewRenderTarget, DWORD,dwFlags) \ |
| 696 | ICOM_METHOD1(HRESULT,GetRenderTarget, LPDIRECTDRAWSURFACE*,lplpRenderTarget) \ |
| 697 | ICOM_METHOD3(HRESULT,Begin, D3DPRIMITIVETYPE,, D3DVERTEXTYPE,, DWORD,) \ |
| 698 | ICOM_METHOD5(HRESULT,BeginIndexed, D3DPRIMITIVETYPE,d3dptPrimitiveType, D3DVERTEXTYPE,d3dvtVertexType, LPVOID,lpvVertices, DWORD,dwNumVertices, DWORD,dwFlags) \ |
| 699 | ICOM_METHOD1(HRESULT,Vertex, LPVOID,lpVertexType) \ |
| 700 | ICOM_METHOD1(HRESULT,Index, WORD,wVertexIndex) \ |
| 701 | ICOM_METHOD1(HRESULT,End, DWORD,dwFlags) \ |
| 702 | ICOM_METHOD2(HRESULT,GetRenderState, D3DRENDERSTATETYPE,dwRenderStateType, LPDWORD,lpdwRenderState) \ |
| 703 | ICOM_METHOD2(HRESULT,SetRenderState, D3DRENDERSTATETYPE,dwRenderStateType, DWORD,dwRenderState) \ |
| 704 | ICOM_METHOD2(HRESULT,GetLightState, D3DLIGHTSTATETYPE,dwLightStateType, LPDWORD,lpdwLightState) \ |
| 705 | ICOM_METHOD2(HRESULT,SetLightState, D3DLIGHTSTATETYPE,dwLightStateType, DWORD,dwLightState) \ |
| 706 | ICOM_METHOD2(HRESULT,SetTransform, D3DTRANSFORMSTATETYPE,dtstTransformStateType, LPD3DMATRIX,lpD3DMatrix) \ |
| 707 | ICOM_METHOD2(HRESULT,GetTransform, D3DTRANSFORMSTATETYPE,dtstTransformStateType, LPD3DMATRIX,lpD3DMatrix) \ |
| 708 | ICOM_METHOD2(HRESULT,MultiplyTransform, D3DTRANSFORMSTATETYPE,dtstTransformStateType, LPD3DMATRIX,lpD3DMatrix) \ |
| 709 | ICOM_METHOD5(HRESULT,DrawPrimitive, D3DPRIMITIVETYPE,d3dptPrimitiveType, D3DVERTEXTYPE,d3dvtVertexType, LPVOID,lpvVertices, DWORD,dwVertexCount, DWORD,dwFlags) \ |
| 710 | ICOM_METHOD7(HRESULT,DrawIndexedPrimitive, D3DPRIMITIVETYPE,d3dptPrimitiveType, D3DVERTEXTYPE,d3dvtVertexType, LPVOID,lpvVertices, DWORD,dwVertexCount, LPWORD,dwIndices, DWORD,dwIndexCount, DWORD,dwFlags) \ |
| 711 | ICOM_METHOD1(HRESULT,SetClipStatus, LPD3DCLIPSTATUS,lpD3DClipStatus) \ |
| 712 | ICOM_METHOD1(HRESULT,GetClipStatus, LPD3DCLIPSTATUS,lpD3DClipStatus) |
| 713 | #define IDirect3DDevice2_IMETHODS \ |
| 714 | IUnknown_IMETHODS \ |
| 715 | IDirect3DDevice2_METHODS |
| 716 | ICOM_DEFINE(IDirect3DDevice2,IUnknown) |
| 717 | #undef ICOM_INTERFACE |
| 718 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 719 | /*** IUnknown methods ***/ |
| 720 | #define IDirect3DDevice2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 721 | #define IDirect3DDevice2_AddRef(p) ICOM_CALL (AddRef,p) |
| 722 | #define IDirect3DDevice2_Release(p) ICOM_CALL (Release,p) |
| 723 | /*** IDirect3DDevice2 methods ***/ |
| 724 | #define IDirect3DDevice2_GetCaps(p,a,b) ICOM_CALL2(GetCaps,p,a,b) |
| 725 | #define IDirect3DDevice2_SwapTextureHandles(p,a,b) ICOM_CALL2(SwapTextureHandles,p,a,b) |
| 726 | #define IDirect3DDevice2_GetStats(p,a) ICOM_CALL1(GetStats,p,a) |
| 727 | #define IDirect3DDevice2_AddViewport(p,a) ICOM_CALL1(AddViewport,p,a) |
| 728 | #define IDirect3DDevice2_DeleteViewport(p,a) ICOM_CALL1(DeleteViewport,p,a) |
| 729 | #define IDirect3DDevice2_NextViewport(p,a,b,c) ICOM_CALL3(NextViewport,p,a,b,c) |
| 730 | #define IDirect3DDevice2_EnumTextureFormats(p,a,b) ICOM_CALL2(EnumTextureFormats,p,a,b) |
| 731 | #define IDirect3DDevice2_BeginScene(p) ICOM_CALL (BeginScene,p) |
| 732 | #define IDirect3DDevice2_EndScene(p) ICOM_CALL (EndScene,p) |
| 733 | #define IDirect3DDevice2_GetDirect3D(p,a) ICOM_CALL1(GetDirect3D,p,a) |
| 734 | #define IDirect3DDevice2_SetCurrentViewport(p,a) ICOM_CALL1(SetCurrentViewport,p,a) |
| 735 | #define IDirect3DDevice2_GetCurrentViewport(p,a) ICOM_CALL1(GetCurrentViewport,p,a) |
| 736 | #define IDirect3DDevice2_SetRenderTarget(p,a,b) ICOM_CALL2(SetRenderTarget,p,a,b) |
| 737 | #define IDirect3DDevice2_GetRenderTarget(p,a) ICOM_CALL1(GetRenderTarget,p,a) |
| 738 | #define IDirect3DDevice2_Begin(p,a,b,c) ICOM_CALL3(Begin,p,a,b,c) |
| 739 | #define IDirect3DDevice2_BeginIndexed(p,a,b,c,d,e) ICOM_CALL5(BeginIndexed,p,a,b,c,d,e) |
| 740 | #define IDirect3DDevice2_Vertex(p,a) ICOM_CALL1(Vertex,p,a) |
| 741 | #define IDirect3DDevice2_Index(p,a) ICOM_CALL1(Index,p,a) |
| 742 | #define IDirect3DDevice2_End(p,a) ICOM_CALL1(End,p,a) |
| 743 | #define IDirect3DDevice2_GetRenderState(p,a,b) ICOM_CALL2(GetRenderState,p,a,b) |
| 744 | #define IDirect3DDevice2_SetRenderState(p,a,b) ICOM_CALL2(SetRenderState,p,a,b) |
| 745 | #define IDirect3DDevice2_GetLightState(p,a,b) ICOM_CALL2(GetLightState,p,a,b) |
| 746 | #define IDirect3DDevice2_SetLightState(p,a,b) ICOM_CALL2(SetLightState,p,a,b) |
| 747 | #define IDirect3DDevice2_SetTransform(p,a,b) ICOM_CALL2(SetTransform,p,a,b) |
| 748 | #define IDirect3DDevice2_GetTransform(p,a,b) ICOM_CALL2(GetTransform,p,a,b) |
| 749 | #define IDirect3DDevice2_MultiplyTransform(p,a,b) ICOM_CALL2(MultiplyTransform,p,a,b) |
| 750 | #define IDirect3DDevice2_DrawPrimitive(p,a,b,c,d,e) ICOM_CALL5(DrawPrimitive,p,a,b,c,d,e) |
| 751 | #define IDirect3DDevice2_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) ICOM_CALL7(DrawIndexedPrimitive,p,a,b,c,d,e,f,g) |
| 752 | #define IDirect3DDevice2_SetClipStatus(p,a) ICOM_CALL1(SetClipStatus,p,a) |
| 753 | #define IDirect3DDevice2_GetClipStatus(p,a) ICOM_CALL1(GetClipStatus,p,a) |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 754 | |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 755 | /***************************************************************************** |
| 756 | * IDirect3DDevice3 interface |
| 757 | */ |
| 758 | #define ICOM_INTERFACE IDirect3DDevice3 |
| 759 | #define IDirect3DDevice3_METHODS \ |
| 760 | ICOM_METHOD2(HRESULT,GetCaps, LPD3DDEVICEDESC,lpD3DHWDevDesc, LPD3DDEVICEDESC,lpD3DHELDevDesc) \ |
| 761 | ICOM_METHOD1(HRESULT,GetStats, LPD3DSTATS,lpD3DStats) \ |
| 762 | ICOM_METHOD1(HRESULT,AddViewport, LPDIRECT3DVIEWPORT3,lpDirect3DViewport3) \ |
| 763 | ICOM_METHOD1(HRESULT,DeleteViewport, LPDIRECT3DVIEWPORT3,lpDirect3DViewport3) \ |
| 764 | ICOM_METHOD3(HRESULT,NextViewport, LPDIRECT3DVIEWPORT3,lpDirect3DViewport3, LPDIRECT3DVIEWPORT3*,lplpDirect3DViewport3, DWORD,dwFlags) \ |
| 765 | ICOM_METHOD2(HRESULT,EnumTextureFormats, LPD3DENUMPIXELFORMATSCALLBACK,lpD3DEnumPixelProc, LPVOID,lpArg) \ |
| 766 | ICOM_METHOD (HRESULT,BeginScene) \ |
| 767 | ICOM_METHOD (HRESULT,EndScene) \ |
| 768 | ICOM_METHOD1(HRESULT,GetDirect3D, LPDIRECT3D3*,lplpDirect3D3) \ |
| 769 | /*** DrawPrimitive API ***/ \ |
| 770 | ICOM_METHOD1(HRESULT,SetCurrentViewport, LPDIRECT3DVIEWPORT3,lpDirect3DViewport3) \ |
| 771 | ICOM_METHOD1(HRESULT,GetCurrentViewport, LPDIRECT3DVIEWPORT3*,lplpDirect3DViewport3) \ |
| 772 | ICOM_METHOD2(HRESULT,SetRenderTarget, LPDIRECTDRAWSURFACE,lpNewRenderTarget, DWORD,dwFlags) \ |
| 773 | ICOM_METHOD1(HRESULT,GetRenderTarget, LPDIRECTDRAWSURFACE*,lplpRenderTarget) \ |
| 774 | ICOM_METHOD3(HRESULT,Begin, D3DPRIMITIVETYPE,d3dptPrimitiveType,DWORD,dwVertexTypeDesc, DWORD,dwFlags) \ |
| 775 | ICOM_METHOD5(HRESULT,BeginIndexed, D3DPRIMITIVETYPE,d3dptPrimitiveType,DWORD,d3dvtVertexType, LPVOID,lpvVertices, DWORD,dwNumVertices, DWORD,dwFlags) \ |
| 776 | ICOM_METHOD1(HRESULT,Vertex, LPVOID,lpVertexType) \ |
| 777 | ICOM_METHOD1(HRESULT,Index, WORD,wVertexIndex) \ |
| 778 | ICOM_METHOD1(HRESULT,End, DWORD,dwFlags) \ |
| 779 | ICOM_METHOD2(HRESULT,GetRenderState, D3DRENDERSTATETYPE,dwRenderStateType, LPDWORD,lpdwRenderState) \ |
| 780 | ICOM_METHOD2(HRESULT,SetRenderState, D3DRENDERSTATETYPE,dwRenderStateType, DWORD,dwRenderState) \ |
| 781 | ICOM_METHOD2(HRESULT,GetLightState, D3DLIGHTSTATETYPE,dwLightStateType, LPDWORD,lpdwLightState) \ |
| 782 | ICOM_METHOD2(HRESULT,SetLightState, D3DLIGHTSTATETYPE,dwLightStateType, DWORD,dwLightState) \ |
| 783 | ICOM_METHOD2(HRESULT,SetTransform, D3DTRANSFORMSTATETYPE,dtstTransformStateType, LPD3DMATRIX,lpD3DMatrix) \ |
| 784 | ICOM_METHOD2(HRESULT,GetTransform, D3DTRANSFORMSTATETYPE,dtstTransformStateType, LPD3DMATRIX,lpD3DMatrix) \ |
| 785 | ICOM_METHOD2(HRESULT,MultiplyTransform, D3DTRANSFORMSTATETYPE,dtstTransformStateType, LPD3DMATRIX,lpD3DMatrix) \ |
| 786 | ICOM_METHOD5(HRESULT,DrawPrimitive, D3DPRIMITIVETYPE,d3dptPrimitiveType, DWORD,d3dvtVertexType, LPVOID,lpvVertices, DWORD,dwVertexCount, DWORD,dwFlags) \ |
| 787 | ICOM_METHOD7(HRESULT,DrawIndexedPrimitive, D3DPRIMITIVETYPE,d3dptPrimitiveType, DWORD,d3dvtVertexType, LPVOID,lpvVertices, DWORD,dwVertexCount, LPWORD,dwIndices, DWORD,dwIndexCount, DWORD,dwFlags) \ |
| 788 | ICOM_METHOD1(HRESULT,SetClipStatus, LPD3DCLIPSTATUS,lpD3DClipStatus) \ |
| 789 | ICOM_METHOD1(HRESULT,GetClipStatus, LPD3DCLIPSTATUS,lpD3DClipStatus) \ |
| 790 | ICOM_METHOD5(HRESULT,DrawPrimitiveStrided, D3DPRIMITIVETYPE,d3dptPrimitiveType,DWORD,dwVertexType,LPD3DDRAWPRIMITIVESTRIDEDDATA,lpD3DDrawPrimStrideData,DWORD,dwVertexCount,DWORD,dwFlags) \ |
| 791 | ICOM_METHOD7(HRESULT,DrawIndexedPrimitiveStrided, D3DPRIMITIVETYPE,d3dptPrimitiveType,DWORD,dwVertexType,LPD3DDRAWPRIMITIVESTRIDEDDATA,lpD3DDrawPrimStrideData,DWORD,dwVertexCount,LPWORD,lpIndex,DWORD,dwIndexCount,DWORD,dwFlags) \ |
| 792 | ICOM_METHOD5(HRESULT,DrawPrimitiveVB, D3DPRIMITIVETYPE,d3dptPrimitiveType,LPDIRECT3DVERTEXBUFFER,lpD3DVertexBuf,DWORD,dwStartVertex,DWORD,dwNumVertices,DWORD,dwFlags) \ |
| 793 | ICOM_METHOD5(HRESULT,DrawIndexedPrimitiveVB, D3DPRIMITIVETYPE,d3dptPrimitiveType,LPDIRECT3DVERTEXBUFFER,lpD3DVertexBuf,LPWORD,lpwIndices,DWORD,dwIndexCount,DWORD,dwFlags) \ |
| 794 | ICOM_METHOD5(HRESULT,ComputeSphereVisibility, LPD3DVECTOR,lpCenters,LPD3DVALUE,lpRadii,DWORD,dwNumSpheres,DWORD,dwFlags,LPDWORD,lpdwReturnValues) \ |
| 795 | ICOM_METHOD2(HRESULT,GetTexture, DWORD,dwStage,LPDIRECT3DTEXTURE2*,lplpTexture2) \ |
| 796 | ICOM_METHOD2(HRESULT,SetTexture, DWORD,dwStage,LPDIRECT3DTEXTURE2,lpTexture2) \ |
| 797 | ICOM_METHOD3(HRESULT,GetTextureStageState, DWORD,dwStage,D3DTEXTURESTAGESTATETYPE,d3dTexStageStateType,LPDWORD,lpdwState) \ |
| 798 | ICOM_METHOD3(HRESULT,SetTextureStageState, DWORD,dwStage,D3DTEXTURESTAGESTATETYPE,d3dTexStageStateType,DWORD,dwState) \ |
| 799 | ICOM_METHOD1(HRESULT,ValidateDevice, LPDWORD,lpdwPasses) |
| 800 | #define IDirect3DDevice3_IMETHODS \ |
| 801 | IUnknown_IMETHODS \ |
| 802 | IDirect3DDevice3_METHODS |
| 803 | ICOM_DEFINE(IDirect3DDevice3,IUnknown) |
| 804 | #undef ICOM_INTERFACE |
| 805 | |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 806 | /*** IUnknown methods ***/ |
| 807 | #define IDirect3DDevice3_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 808 | #define IDirect3DDevice3_AddRef(p) ICOM_CALL (AddRef,p) |
| 809 | #define IDirect3DDevice3_Release(p) ICOM_CALL (Release,p) |
| 810 | /*** IDirect3DDevice3 methods ***/ |
| 811 | #define IDirect3DDevice3_GetCaps(p,a,b) ICOM_CALL2(GetCaps,p,a,b) |
| 812 | #define IDirect3DDevice3_GetStats(p,a) ICOM_CALL1(GetStats,p,a) |
| 813 | #define IDirect3DDevice3_AddViewport(p,a) ICOM_CALL1(AddViewport,p,a) |
| 814 | #define IDirect3DDevice3_DeleteViewport(p,a) ICOM_CALL1(DeleteViewport,p,a) |
| 815 | #define IDirect3DDevice3_NextViewport(p,a,b,c) ICOM_CALL3(NextViewport,p,a,b,c) |
| 816 | #define IDirect3DDevice3_EnumTextureFormats(p,a,b) ICOM_CALL2(EnumTextureFormats,p,a,b) |
| 817 | #define IDirect3DDevice3_BeginScene(p) ICOM_CALL (BeginScene,p) |
| 818 | #define IDirect3DDevice3_EndScene(p) ICOM_CALL (EndScene,p) |
| 819 | #define IDirect3DDevice3_GetDirect3D(p,a) ICOM_CALL1(GetDirect3D,p,a) |
| 820 | #define IDirect3DDevice3_SetCurrentViewport(p,a) ICOM_CALL1(SetCurrentViewport,p,a) |
| 821 | #define IDirect3DDevice3_GetCurrentViewport(p,a) ICOM_CALL1(GetCurrentViewport,p,a) |
| 822 | #define IDirect3DDevice3_SetRenderTarget(p,a,b) ICOM_CALL2(SetRenderTarget,p,a,b) |
| 823 | #define IDirect3DDevice3_GetRenderTarget(p,a) ICOM_CALL1(GetRenderTarget,p,a) |
| 824 | #define IDirect3DDevice3_Begin(p,a,b,c) ICOM_CALL3(Begin,p,a,b,c) |
| 825 | #define IDirect3DDevice3_BeginIndexed(p,a,b,c,d,e) ICOM_CALL5(BeginIndexed,p,a,b,c,d,e) |
| 826 | #define IDirect3DDevice3_Vertex(p,a) ICOM_CALL1(Vertex,p,a) |
| 827 | #define IDirect3DDevice3_Index(p,a) ICOM_CALL1(Index,p,a) |
| 828 | #define IDirect3DDevice3_End(p,a) ICOM_CALL1(End,p,a) |
| 829 | #define IDirect3DDevice3_GetRenderState(p,a,b) ICOM_CALL2(GetRenderState,p,a,b) |
| 830 | #define IDirect3DDevice3_SetRenderState(p,a,b) ICOM_CALL2(SetRenderState,p,a,b) |
| 831 | #define IDirect3DDevice3_GetLightState(p,a,b) ICOM_CALL2(GetLightState,p,a,b) |
| 832 | #define IDirect3DDevice3_SetLightState(p,a,b) ICOM_CALL2(SetLightState,p,a,b) |
| 833 | #define IDirect3DDevice3_SetTransform(p,a,b) ICOM_CALL2(SetTransform,p,a,b) |
| 834 | #define IDirect3DDevice3_GetTransform(p,a,b) ICOM_CALL2(GetTransform,p,a,b) |
| 835 | #define IDirect3DDevice3_MultiplyTransform(p,a,b) ICOM_CALL2(MultiplyTransform,p,a,b) |
| 836 | #define IDirect3DDevice3_DrawPrimitive(p,a,b,c,d,e) ICOM_CALL5(DrawPrimitive,p,a,b,c,d,e) |
| 837 | #define IDirect3DDevice3_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) ICOM_CALL7(DrawIndexedPrimitive,p,a,b,c,d,e,f,g) |
| 838 | #define IDirect3DDevice3_SetClipStatus(p,a) ICOM_CALL1(SetClipStatus,p,a) |
| 839 | #define IDirect3DDevice3_GetClipStatus(p,a) ICOM_CALL1(GetClipStatus,p,a) |
| 840 | #define IDirect3DDevice3_DrawPrimitiveStrided(p,a,b,c,d,e) ICOM_CALL5(DrawPrimitiveStrided,p,a,b,c,d,e) |
| 841 | #define IDirect3DDevice3_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) ICOM_CALL7(DrawIndexedPrimitiveStrided,p,a,b,c,d,e,f,g) |
| 842 | #define IDirect3DDevice3_DrawPrimitiveVB(p,a,b,c,d,e) ICOM_CALL5(DrawPrimitiveVB,p,a,b,c,d,e) |
| 843 | #define IDirect3DDevice3_DrawIndexedPrimitiveVB(p,a,b,c,d,e) ICOM_CALL5(DrawIndexedPrimitiveVB,p,a,b,c,d,e) |
| 844 | #define IDirect3DDevice3_ComputeSphereVisibility(p,a,b,c,d,e) ICOM_CALL5(ComputeSphereVisibility,p,a,b,c,d,e) |
| 845 | #define IDirect3DDevice3_GetTexture(p,a,b) ICOM_CALL2(GetTexture,p,a,b) |
| 846 | #define IDirect3DDevice3_SetTexture(p,a,b) ICOM_CALL2(SetTexture,p,a,b) |
| 847 | #define IDirect3DDevice3_GetTextureStageState(p,a,b,c) ICOM_CALL3(GetTextureStageState,p,a,b,c) |
| 848 | #define IDirect3DDevice3_SetTextureStageState(p,a,b,c) ICOM_CALL3(SetTextureStageState,p,a,b,c) |
| 849 | #define IDirect3DDevice3_ValidateDevice(p,a) ICOM_CALL1(ValidateDevice,p,a) |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 850 | |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 851 | /***************************************************************************** |
| 852 | * IDirect3DDevice7 interface |
| 853 | */ |
| 854 | #define ICOM_INTERFACE IDirect3DDevice7 |
| 855 | #define IDirect3DDevice7_METHODS \ |
| 856 | ICOM_METHOD1(HRESULT,GetCaps, LPD3DDEVICEDESC7,lpD3DHELDevDesc) \ |
| 857 | ICOM_METHOD2(HRESULT,EnumTextureFormats, LPD3DENUMPIXELFORMATSCALLBACK,lpD3DEnumPixelProc, LPVOID,lpArg) \ |
| 858 | ICOM_METHOD (HRESULT,BeginScene) \ |
| 859 | ICOM_METHOD (HRESULT,EndScene) \ |
| 860 | ICOM_METHOD1(HRESULT,GetDirect3D, LPDIRECT3D7*,lplpDirect3D3) \ |
Ove Kaaven | 3c1f362 | 2000-07-23 13:42:13 +0000 | [diff] [blame] | 861 | ICOM_METHOD2(HRESULT,SetRenderTarget, LPDIRECTDRAWSURFACE7,lpNewRenderTarget,DWORD,dwFlags) \ |
| 862 | ICOM_METHOD1(HRESULT,GetRenderTarget, LPDIRECTDRAWSURFACE7*,lplpRenderTarget) \ |
Ove Kaaven | a9ea857 | 2001-04-16 19:02:22 +0000 | [diff] [blame] | 863 | ICOM_METHOD6(HRESULT,Clear, DWORD,dwCount,LPD3DRECT,lpRects,DWORD,dwFlags,D3DCOLOR,dwColor,D3DVALUE,dvZ,DWORD,dwStencil) \ |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 864 | ICOM_METHOD2(HRESULT,SetTransform, D3DTRANSFORMSTATETYPE,dtstTransformStateType, LPD3DMATRIX,lpD3DMatrix) \ |
| 865 | ICOM_METHOD2(HRESULT,GetTransform, D3DTRANSFORMSTATETYPE,dtstTransformStateType, LPD3DMATRIX,lpD3DMatrix) \ |
Ove Kaaven | a9ea857 | 2001-04-16 19:02:22 +0000 | [diff] [blame] | 866 | ICOM_METHOD1(HRESULT,SetViewport, LPD3DVIEWPORT7,lpData) \ |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 867 | ICOM_METHOD2(HRESULT,MultiplyTransform, D3DTRANSFORMSTATETYPE,,LPD3DMATRIX,) \ |
| 868 | ICOM_METHOD1(HRESULT,GetViewport, LPD3DVIEWPORT7,lpData) \ |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 869 | ICOM_METHOD1(HRESULT,SetMaterial, LPD3DMATERIAL7,lpMat) \ |
| 870 | ICOM_METHOD1(HRESULT,GetMaterial, LPD3DMATERIAL7,lpMat) \ |
Ove Kaaven | a9ea857 | 2001-04-16 19:02:22 +0000 | [diff] [blame] | 871 | ICOM_METHOD2(HRESULT,SetLight, DWORD,dwLightIndex,LPD3DLIGHT7,lpLight) \ |
| 872 | ICOM_METHOD2(HRESULT,GetLight, DWORD,dwLightIndex,LPD3DLIGHT7,lpLight) \ |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 873 | ICOM_METHOD2(HRESULT,SetRenderState, D3DRENDERSTATETYPE,dwRenderStateType, DWORD,dwRenderState) \ |
| 874 | ICOM_METHOD2(HRESULT,GetRenderState, D3DRENDERSTATETYPE,dwRenderStateType, LPDWORD,lpdwRenderState) \ |
| 875 | ICOM_METHOD (HRESULT,BeginStateBlock) \ |
| 876 | ICOM_METHOD1(HRESULT,EndStateBlock, LPDWORD,) \ |
| 877 | ICOM_METHOD1(HRESULT,PreLoad, LPDIRECTDRAWSURFACE7,) \ |
| 878 | ICOM_METHOD5(HRESULT,DrawPrimitive, D3DPRIMITIVETYPE,d3dptPrimitiveType, DWORD,d3dvtVertexType, LPVOID,lpvVertices, DWORD,dwVertexCount, DWORD,dwFlags) \ |
| 879 | ICOM_METHOD7(HRESULT,DrawIndexedPrimitive, D3DPRIMITIVETYPE,d3dptPrimitiveType, DWORD,d3dvtVertexType, LPVOID,lpvVertices, DWORD,dwVertexCount, LPWORD,dwIndices, DWORD,dwIndexCount, DWORD,dwFlags) \ |
| 880 | ICOM_METHOD1(HRESULT,SetClipStatus, LPD3DCLIPSTATUS,lpD3DClipStatus) \ |
| 881 | ICOM_METHOD1(HRESULT,GetClipStatus, LPD3DCLIPSTATUS,lpD3DClipStatus) \ |
| 882 | ICOM_METHOD5(HRESULT,DrawPrimitiveStrided, D3DPRIMITIVETYPE,d3dptPrimitiveType,DWORD,dwVertexType,LPD3DDRAWPRIMITIVESTRIDEDDATA,lpD3DDrawPrimStrideData,DWORD,dwVertexCount,DWORD,dwFlags) \ |
| 883 | ICOM_METHOD7(HRESULT,DrawIndexedPrimitiveStrided, D3DPRIMITIVETYPE,d3dptPrimitiveType,DWORD,dwVertexType,LPD3DDRAWPRIMITIVESTRIDEDDATA,lpD3DDrawPrimStrideData,DWORD,dwVertexCount,LPWORD,lpIndex,DWORD,dwIndexCount,DWORD,dwFlags) \ |
| 884 | ICOM_METHOD5(HRESULT,DrawPrimitiveVB, D3DPRIMITIVETYPE,d3dptPrimitiveType,LPDIRECT3DVERTEXBUFFER7,lpD3DVertexBuf,DWORD,dwStartVertex,DWORD,dwNumVertices,DWORD,dwFlags) \ |
| 885 | ICOM_METHOD7(HRESULT,DrawIndexedPrimitiveVB, D3DPRIMITIVETYPE,d3dptPrimitiveType,LPDIRECT3DVERTEXBUFFER7,lpD3DVertexBuf,DWORD,,DWORD,,LPWORD,lpwIndices,DWORD,dwIndexCount,DWORD,dwFlags) \ |
| 886 | ICOM_METHOD5(HRESULT,ComputeSphereVisibility, LPD3DVECTOR,lpCenters,LPD3DVALUE,lpRadii,DWORD,dwNumSpheres,DWORD,dwFlags,LPDWORD,lpdwReturnValues) \ |
Ove Kaaven | a9ea857 | 2001-04-16 19:02:22 +0000 | [diff] [blame] | 887 | ICOM_METHOD2(HRESULT,GetTexture, DWORD,dwStage,LPDIRECTDRAWSURFACE7*,lpTexture) \ |
| 888 | ICOM_METHOD2(HRESULT,SetTexture, DWORD,dwStage,LPDIRECTDRAWSURFACE7,lpTexture) \ |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 889 | ICOM_METHOD3(HRESULT,GetTextureStageState, DWORD,dwStage,D3DTEXTURESTAGESTATETYPE,d3dTexStageStateType,LPDWORD,lpdwState) \ |
| 890 | ICOM_METHOD3(HRESULT,SetTextureStageState, DWORD,dwStage,D3DTEXTURESTAGESTATETYPE,d3dTexStageStateType,DWORD,dwState) \ |
| 891 | ICOM_METHOD1(HRESULT,ValidateDevice, LPDWORD,lpdwPasses) \ |
| 892 | ICOM_METHOD1(HRESULT,ApplyStateBlock, DWORD,) \ |
| 893 | ICOM_METHOD1(HRESULT,CaptureStateBlock, DWORD,) \ |
| 894 | ICOM_METHOD1(HRESULT,DeleteStateBlock, DWORD,) \ |
| 895 | ICOM_METHOD2(HRESULT,CreateStateBlock, D3DSTATEBLOCKTYPE,,LPDWORD,) \ |
| 896 | ICOM_METHOD5(HRESULT,Load, LPDIRECTDRAWSURFACE7,,LPPOINT,,LPDIRECTDRAWSURFACE7,,LPRECT,,DWORD,) \ |
Ove Kaaven | a9ea857 | 2001-04-16 19:02:22 +0000 | [diff] [blame] | 897 | ICOM_METHOD2(HRESULT,LightEnable, DWORD,dwLightIndex,BOOL,bEnable) \ |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 898 | ICOM_METHOD2(HRESULT,GetLightEnable, DWORD,,BOOL*,) \ |
| 899 | ICOM_METHOD2(HRESULT,SetClipPlane, DWORD,,D3DVALUE*,) \ |
| 900 | ICOM_METHOD2(HRESULT,GetClipPlane, DWORD,,D3DVALUE*,) \ |
| 901 | ICOM_METHOD3(HRESULT,GetInfo, DWORD,,LPVOID,,DWORD, ) |
| 902 | #define IDirect3DDevice7_IMETHODS \ |
| 903 | IUnknown_IMETHODS \ |
| 904 | IDirect3DDevice7_METHODS |
| 905 | ICOM_DEFINE(IDirect3DDevice7,IUnknown) |
| 906 | #undef ICOM_INTERFACE |
| 907 | |
| 908 | #define IDirect3DDevice7_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 909 | #define IDirect3DDevice7_AddRef(p) ICOM_CALL (AddRef,p) |
| 910 | #define IDirect3DDevice7_Release(p) ICOM_CALL (Release,p) |
| 911 | #define IDirect3DDevice7_GetCaps(p,a) ICOM_CALL1(GetCaps,p,a) |
| 912 | #define IDirect3DDevice7_EnumTextureFormats(p,a,b) ICOM_CALL2(EnumTextureFormats,p,a,b) |
| 913 | #define IDirect3DDevice7_BeginScene(p) ICOM_CALL (BeginScene,p) |
| 914 | #define IDirect3DDevice7_EndScene(p) ICOM_CALL (EndScene,p) |
| 915 | #define IDirect3DDevice7_GetDirect3D(p,a) ICOM_CALL1(GetDirect3D,p,a) |
| 916 | #define IDirect3DDevice7_SetRenderTarget(p,a,b) ICOM_CALL2(SetRenderTarget,p,a,b) |
| 917 | #define IDirect3DDevice7_GetRenderTarget(p,a) ICOM_CALL1(GetRenderTarget,p,a) |
| 918 | #define IDirect3DDevice7_Clear(p,a,b,c,d,e,f) ICOM_CALL6(Clear,p,a,b,c,d,e,f) |
| 919 | #define IDirect3DDevice7_SetTransform(p,a,b) ICOM_CALL2(SetTransform,p,a,b) |
| 920 | #define IDirect3DDevice7_GetTransform(p,a,b) ICOM_CALL2(GetTransform,p,a,b) |
| 921 | #define IDirect3DDevice7_SetViewport(p,a) ICOM_CALL1(SetViewport,p,a) |
| 922 | #define IDirect3DDevice7_MultiplyTransform(p,a,b) ICOM_CALL2(MultiplyTransform,p,a,b) |
| 923 | #define IDirect3DDevice7_GetViewport(p,a) ICOM_CALL1(GetViewport,p,a) |
| 924 | #define IDirect3DDevice7_SetMaterial(p,a) ICOM_CALL1(SetMaterial,p,a) |
| 925 | #define IDirect3DDevice7_GetMaterial(p,a) ICOM_CALL1(GetMaterial,p,a) |
| 926 | #define IDirect3DDevice7_SetLight(p,a,b) ICOM_CALL2(SetLight,p,a,b) |
| 927 | #define IDirect3DDevice7_GetLight(p,a,b) ICOM_CALL2(GetLight,p,a,b) |
| 928 | #define IDirect3DDevice7_SetRenderState(p,a,b) ICOM_CALL2(SetRenderState,p,a,b) |
| 929 | #define IDirect3DDevice7_GetRenderState(p,a,b) ICOM_CALL2(GetRenderState,p,a,b) |
| 930 | #define IDirect3DDevice7_BeginStateBlock(p) ICOM_CALL (BeginStateBlock,p) |
| 931 | #define IDirect3DDevice7_EndStateBlock(p,a) ICOM_CALL1(EndStateBlock,p,a) |
| 932 | #define IDirect3DDevice7_PreLoad(p,a) ICOM_CALL1(PreLoad,p,a) |
| 933 | #define IDirect3DDevice7_DrawPrimitive(p,a,b,c,d,e) ICOM_CALL5(DrawPrimitive,p,a,b,c,d,e) |
| 934 | #define IDirect3DDevice7_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) ICOM_CALL7(DrawIndexedPrimitive,p,a,b,c,d,e,f,g) |
| 935 | #define IDirect3DDevice7_SetClipStatus(p,a) ICOM_CALL1(SetClipStatus,p,a) |
| 936 | #define IDirect3DDevice7_GetClipStatus(p,a) ICOM_CALL1(GetClipStatus,p,a) |
| 937 | #define IDirect3DDevice7_DrawPrimitiveStrided(p,a,b,c,d,e) ICOM_CALL5(DrawPrimitiveStrided,p,a,b,c,d,e) |
| 938 | #define IDirect3DDevice7_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) ICOM_CALL7(DrawIndexedPrimitiveStrided,p,a,b,c,d,e,f,g) |
| 939 | #define IDirect3DDevice7_DrawPrimitiveVB(p,a,b,c,d,e) ICOM_CALL5(DrawPrimitiveVB,p,a,b,c,d,e) |
| 940 | #define IDirect3DDevice7_DrawIndexedPrimitiveVB(p,a,b,c,d,e,f,g) ICOM_CALL7(DrawIndexedPrimitiveVB,p,a,b,c,d,e,f,g) |
| 941 | #define IDirect3DDevice7_ComputeSphereVisibility(p,a,b,c,d,e) ICOM_CALL5(ComputeSphereVisibility,p,a,b,c,d,e) |
| 942 | #define IDirect3DDevice7_GetTexture(p,a,b) ICOM_CALL2(GetTexture,p,a,b) |
| 943 | #define IDirect3DDevice7_SetTexture(p,a,b) ICOM_CALL2(SetTexture,p,a,b) |
| 944 | #define IDirect3DDevice7_GetTextureStageState(p,a,b,c) ICOM_CALL3(GetTextureStageState,p,a,b,c) |
| 945 | #define IDirect3DDevice7_SetTextureStageState(p,a,b,c) ICOM_CALL3(SetTextureStageState,p,a,b,c) |
| 946 | #define IDirect3DDevice7_ValidateDevice(p,a) ICOM_CALL1(ValidateDevice,p,a) |
| 947 | #define IDirect3DDevice7_ApplyStateBlock(p,a) ICOM_CALL1(ApplyStateBlock,p,a) |
| 948 | #define IDirect3DDevice7_CaptureStateBlock(p,a) ICOM_CALL1(CaptureStateBlock,p,a) |
| 949 | #define IDirect3DDevice7_DeleteStateBlock(p,a) ICOM_CALL1(DeleteStateBlock,p,a) |
| 950 | #define IDirect3DDevice7_CreateStateBlock(p,a,b) ICOM_CALL2(CreateStateBlock,p,a,b) |
| 951 | #define IDirect3DDevice7_Load(p,a,b,c,d,e) ICOM_CALL5(Load,p,a,b,c,d,e) |
| 952 | #define IDirect3DDevice7_LightEnable(p,a,b) ICOM_CALL2(LightEnable,p,a,b) |
| 953 | #define IDirect3DDevice7_GetLightEnable(p,a,b) ICOM_CALL2(GetLightEnable,p,a,b) |
| 954 | #define IDirect3DDevice7_SetClipPlane(p,a,b) ICOM_CALL2(SetClipPlane,p,a,b) |
| 955 | #define IDirect3DDevice7_GetClipPlane(p,a,b) ICOM_CALL2(GetClipPlane,p,a,b) |
| 956 | #define IDirect3DDevice7_GetInfo(p,a,b,c) ICOM_CALL3(GetInfo,p,a,b,c) |
| 957 | |
| 958 | |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 959 | |
| 960 | /***************************************************************************** |
| 961 | * IDirect3DVertexBuffer interface |
| 962 | */ |
| 963 | #define ICOM_INTERFACE IDirect3DVertexBuffer |
| 964 | #define IDirect3DVertexBuffer_METHODS \ |
| 965 | ICOM_METHOD3(HRESULT,Lock, DWORD,dwFlags,LPVOID*,lplpData,LPDWORD,lpdwSize) \ |
| 966 | ICOM_METHOD (HRESULT,Unlock) \ |
| 967 | ICOM_METHOD7(HRESULT,ProcessVertices, DWORD,dwVertexOp,DWORD,dwDestIndex,DWORD,dwCount,LPDIRECT3DVERTEXBUFFER,lpSrcBuffer,DWORD,dwSrcIndex,LPDIRECT3DDEVICE3,lpD3DDevice,DWORD,dwFlags) \ |
| 968 | ICOM_METHOD1(HRESULT,GetVertexBufferDesc, LPD3DVERTEXBUFFERDESC,lpD3DVertexBufferDesc) \ |
| 969 | ICOM_METHOD2(HRESULT,Optimize, LPDIRECT3DDEVICE3, lpD3DDevice,DWORD,dwFlags) |
| 970 | #define IDirect3DVertexBuffer_IMETHODS \ |
| 971 | IUnknown_IMETHODS \ |
| 972 | IDirect3DVertexBuffer_METHODS |
| 973 | ICOM_DEFINE(IDirect3DVertexBuffer,IUnknown) |
| 974 | #undef ICOM_INTERFACE |
| 975 | |
Lionel Ulmer | 4e40760 | 1999-09-10 14:21:27 +0000 | [diff] [blame] | 976 | /*** IUnknown methods ***/ |
| 977 | #define IDirect3DVertexBuffer_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 978 | #define IDirect3DVertexBuffer_AddRef(p) ICOM_CALL (AddRef,p) |
| 979 | #define IDirect3DVertexBuffer_Release(p) ICOM_CALL (Release,p) |
| 980 | /*** IDirect3DVertexBuffer methods ***/ |
| 981 | #define IDirect3DVertexBuffer_Lock(p,a,b,c) ICOM_CALL3(Lock,p,a,b,c) |
| 982 | #define IDirect3DVertexBuffer_Unlock(p) ICOM_CALL (Unlock,p) |
| 983 | #define IDirect3DVertexBuffer_ProcessVertices(p,a,b,c,d,e,f,g) ICOM_CALL7(ProcessVertices,p,a,b,c,d,e,f,g) |
| 984 | #define IDirect3DVertexBuffer_GetVertexBufferDesc(p,a) ICOM_CALL1(GetVertexBufferDesc,p,a) |
| 985 | #define IDirect3DVertexBuffer_Optimize(p,a,b) ICOM_CALL2(Optimize,p,a,b) |
Vincent BĂ©ron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 986 | |
Peter Hunnisett | 0b56446 | 2000-05-18 01:26:42 +0000 | [diff] [blame] | 987 | /***************************************************************************** |
| 988 | * IDirect3DVertexBuffer7 interface |
| 989 | */ |
| 990 | #define ICOM_INTERFACE IDirect3DVertexBuffer7 |
| 991 | #define IDirect3DVertexBuffer7_METHODS \ |
| 992 | ICOM_METHOD3(HRESULT,Lock, DWORD,dwFlags,LPVOID*,lplpData,LPDWORD,lpdwSize) \ |
| 993 | ICOM_METHOD (HRESULT,Unlock) \ |
| 994 | ICOM_METHOD7(HRESULT,ProcessVertices, DWORD,dwVertexOp,DWORD,dwDestIndex,DWORD,dwCount,LPDIRECT3DVERTEXBUFFER7,lpSrcBuffer,DWORD,dwSrcIndex,LPDIRECT3DDEVICE7,lpD3DDevice,DWORD,dwFlags) \ |
| 995 | ICOM_METHOD1(HRESULT,GetVertexBufferDesc, LPD3DVERTEXBUFFERDESC,lpD3DVertexBufferDesc) \ |
| 996 | ICOM_METHOD2(HRESULT,Optimize, LPDIRECT3DDEVICE7, lpD3DDevice,DWORD,dwFlags) \ |
| 997 | ICOM_METHOD7(HRESULT,ProcessVerticesStrided, DWORD,,DWORD,,DWORD,,LPD3DDRAWPRIMITIVESTRIDEDDATA,,DWORD,,LPDIRECT3DDEVICE7,,DWORD,) |
| 998 | #define IDirect3DVertexBuffer7_IMETHODS \ |
| 999 | IUnknown_IMETHODS \ |
| 1000 | IDirect3DVertexBuffer7_METHODS |
| 1001 | ICOM_DEFINE(IDirect3DVertexBuffer7,IUnknown) |
| 1002 | #undef ICOM_INTERFACE |
| 1003 | |
| 1004 | /*** IUnknown methods ***/ |
| 1005 | #define IDirect3DVertexBuffer7_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) |
| 1006 | #define IDirect3DVertexBuffer7_AddRef(p) ICOM_CALL (AddRef,p) |
| 1007 | #define IDirect3DVertexBuffer7_Release(p) ICOM_CALL (Release,p) |
| 1008 | |
| 1009 | /*** IDirect3DVertexBuffer7 methods ***/ |
| 1010 | #define IDirect3DVertexBuffer7_Lock(p,a,b,c) ICOM_CALL3(Lock,p,a,b,c) |
| 1011 | #define IDirect3DVertexBuffer7_Unlock(p) ICOM_CALL (Unlock,p) |
| 1012 | #define IDirect3DVertexBuffer7_ProcessVertices(p,a,b,c,d,e,f,g) ICOM_CALL7(ProcessVertices,p,a,b,c,d,e,f,g) |
| 1013 | #define IDirect3DVertexBuffer7_GetVertexBufferDesc(p,a) ICOM_CALL1(GetVertexBufferDesc,p,a) |
| 1014 | #define IDirect3DVertexBuffer7_Optimize(p,a,b) ICOM_CALL2(Optimize,p,a,b) |
| 1015 | #define IDirect3DVertexBuffer7_ProcessVerticesStrided(p,a,b,c,d,e,f,g) ICOM_CALL7(ProcessVerticesStrided,p,a,b,c,d,e,f,g) |
| 1016 | |
Francois Gouget | 81de59a | 1999-03-27 16:48:25 +0000 | [diff] [blame] | 1017 | |
| 1018 | #endif /* __WINE_D3D_H */ |