annotate lib/legacy_dx/d3d.h @ 1776:0f273c459f78

Player::SetVariable PlaySound and SetPlayerBuffAnim labels restored to original state
author Grumpy7
date Wed, 02 Oct 2013 05:47:30 +0200
parents 9c0607679772
children
rev   line source
0
Ritor1
parents:
diff changeset
1 /*==========================================================================;
Ritor1
parents:
diff changeset
2 *
Ritor1
parents:
diff changeset
3 * Copyright (C) Microsoft Corporation. All Rights Reserved.
Ritor1
parents:
diff changeset
4 *
Ritor1
parents:
diff changeset
5 * File: d3d.h
Ritor1
parents:
diff changeset
6 * Content: Direct3D include file
Ritor1
parents:
diff changeset
7 *
Ritor1
parents:
diff changeset
8 ****************************************************************************/
Ritor1
parents:
diff changeset
9
Ritor1
parents:
diff changeset
10 #ifndef _D3D_H_
Ritor1
parents:
diff changeset
11 #define _D3D_H_
Ritor1
parents:
diff changeset
12
Ritor1
parents:
diff changeset
13 #ifndef DIRECT3D_VERSION
Ritor1
parents:
diff changeset
14 #define DIRECT3D_VERSION 0x0700
Ritor1
parents:
diff changeset
15 #endif
Ritor1
parents:
diff changeset
16
Ritor1
parents:
diff changeset
17 // include this file content only if compiling for <=DX7 interfaces
Ritor1
parents:
diff changeset
18 #if(DIRECT3D_VERSION < 0x0800)
Ritor1
parents:
diff changeset
19
Ritor1
parents:
diff changeset
20
Ritor1
parents:
diff changeset
21 #include <stdlib.h>
Ritor1
parents:
diff changeset
22
Ritor1
parents:
diff changeset
23 #define COM_NO_WINDOWS_H
Ritor1
parents:
diff changeset
24 #include <objbase.h>
Ritor1
parents:
diff changeset
25
Ritor1
parents:
diff changeset
26 #define D3DAPI WINAPI
Ritor1
parents:
diff changeset
27
Ritor1
parents:
diff changeset
28 /*
Ritor1
parents:
diff changeset
29 * Interface IID's
Ritor1
parents:
diff changeset
30 */
Ritor1
parents:
diff changeset
31 #if defined( _WIN32 ) && !defined( _NO_COM)
Ritor1
parents:
diff changeset
32 DEFINE_GUID( IID_IDirect3D, 0x3BBA0080,0x2421,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 );
Ritor1
parents:
diff changeset
33 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
34 DEFINE_GUID( IID_IDirect3D2, 0x6aae1ec1,0x662a,0x11d0,0x88,0x9d,0x00,0xaa,0x00,0xbb,0xb7,0x6a);
Ritor1
parents:
diff changeset
35 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
36 #if(DIRECT3D_VERSION >= 0x0600)
Ritor1
parents:
diff changeset
37 DEFINE_GUID( IID_IDirect3D3, 0xbb223240,0xe72b,0x11d0,0xa9,0xb4,0x00,0xaa,0x00,0xc0,0x99,0x3e);
Ritor1
parents:
diff changeset
38 #endif /* DIRECT3D_VERSION >= 0x0600 */
Ritor1
parents:
diff changeset
39 #if(DIRECT3D_VERSION >= 0x0700)
Ritor1
parents:
diff changeset
40 DEFINE_GUID( IID_IDirect3D7, 0xf5049e77,0x4861,0x11d2,0xa4,0x7,0x0,0xa0,0xc9,0x6,0x29,0xa8);
Ritor1
parents:
diff changeset
41 #endif /* DIRECT3D_VERSION >= 0x0700 */
Ritor1
parents:
diff changeset
42
Ritor1
parents:
diff changeset
43 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
44 DEFINE_GUID( IID_IDirect3DRampDevice, 0xF2086B20,0x259F,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 );
Ritor1
parents:
diff changeset
45 DEFINE_GUID( IID_IDirect3DRGBDevice, 0xA4665C60,0x2673,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 );
Ritor1
parents:
diff changeset
46 DEFINE_GUID( IID_IDirect3DHALDevice, 0x84E63dE0,0x46AA,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E );
Ritor1
parents:
diff changeset
47 DEFINE_GUID( IID_IDirect3DMMXDevice, 0x881949a1,0xd6f3,0x11d0,0x89,0xab,0x00,0xa0,0xc9,0x05,0x41,0x29 );
Ritor1
parents:
diff changeset
48 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
49
Ritor1
parents:
diff changeset
50 #if(DIRECT3D_VERSION >= 0x0600)
Ritor1
parents:
diff changeset
51 DEFINE_GUID( IID_IDirect3DRefDevice, 0x50936643, 0x13e9, 0x11d1, 0x89, 0xaa, 0x0, 0xa0, 0xc9, 0x5, 0x41, 0x29);
Ritor1
parents:
diff changeset
52 DEFINE_GUID( IID_IDirect3DNullDevice, 0x8767df22, 0xbacc, 0x11d1, 0x89, 0x69, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8);
Ritor1
parents:
diff changeset
53 #endif /* DIRECT3D_VERSION >= 0x0600 */
Ritor1
parents:
diff changeset
54 #if(DIRECT3D_VERSION >= 0x0700)
Ritor1
parents:
diff changeset
55 DEFINE_GUID( IID_IDirect3DTnLHalDevice, 0xf5049e78, 0x4861, 0x11d2, 0xa4, 0x7, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8);
Ritor1
parents:
diff changeset
56 #endif /* DIRECT3D_VERSION >= 0x0700 */
Ritor1
parents:
diff changeset
57
Ritor1
parents:
diff changeset
58 /*
Ritor1
parents:
diff changeset
59 * Internal Guid to distinguish requested MMX from MMX being used as an RGB rasterizer
Ritor1
parents:
diff changeset
60 */
Ritor1
parents:
diff changeset
61
Ritor1
parents:
diff changeset
62 DEFINE_GUID( IID_IDirect3DDevice, 0x64108800,0x957d,0X11d0,0x89,0xab,0x00,0xa0,0xc9,0x05,0x41,0x29 );
Ritor1
parents:
diff changeset
63 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
64 DEFINE_GUID( IID_IDirect3DDevice2, 0x93281501, 0x8cf8, 0x11d0, 0x89, 0xab, 0x0, 0xa0, 0xc9, 0x5, 0x41, 0x29);
Ritor1
parents:
diff changeset
65 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
66 #if(DIRECT3D_VERSION >= 0x0600)
Ritor1
parents:
diff changeset
67 DEFINE_GUID( IID_IDirect3DDevice3, 0xb0ab3b60, 0x33d7, 0x11d1, 0xa9, 0x81, 0x0, 0xc0, 0x4f, 0xd7, 0xb1, 0x74);
Ritor1
parents:
diff changeset
68 #endif /* DIRECT3D_VERSION >= 0x0600 */
Ritor1
parents:
diff changeset
69 #if(DIRECT3D_VERSION >= 0x0700)
Ritor1
parents:
diff changeset
70 DEFINE_GUID( IID_IDirect3DDevice7, 0xf5049e79, 0x4861, 0x11d2, 0xa4, 0x7, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8);
Ritor1
parents:
diff changeset
71 #endif /* DIRECT3D_VERSION >= 0x0700 */
Ritor1
parents:
diff changeset
72
Ritor1
parents:
diff changeset
73 DEFINE_GUID( IID_IDirect3DTexture, 0x2CDCD9E0,0x25A0,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 );
Ritor1
parents:
diff changeset
74 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
75 DEFINE_GUID( IID_IDirect3DTexture2, 0x93281502, 0x8cf8, 0x11d0, 0x89, 0xab, 0x0, 0xa0, 0xc9, 0x5, 0x41, 0x29);
Ritor1
parents:
diff changeset
76 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
77
Ritor1
parents:
diff changeset
78 DEFINE_GUID( IID_IDirect3DLight, 0x4417C142,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E );
Ritor1
parents:
diff changeset
79
Ritor1
parents:
diff changeset
80 DEFINE_GUID( IID_IDirect3DMaterial, 0x4417C144,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E );
Ritor1
parents:
diff changeset
81 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
82 DEFINE_GUID( IID_IDirect3DMaterial2, 0x93281503, 0x8cf8, 0x11d0, 0x89, 0xab, 0x0, 0xa0, 0xc9, 0x5, 0x41, 0x29);
Ritor1
parents:
diff changeset
83 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
84 #if(DIRECT3D_VERSION >= 0x0600)
Ritor1
parents:
diff changeset
85 DEFINE_GUID( IID_IDirect3DMaterial3, 0xca9c46f4, 0xd3c5, 0x11d1, 0xb7, 0x5a, 0x0, 0x60, 0x8, 0x52, 0xb3, 0x12);
Ritor1
parents:
diff changeset
86 #endif /* DIRECT3D_VERSION >= 0x0600 */
Ritor1
parents:
diff changeset
87
Ritor1
parents:
diff changeset
88 DEFINE_GUID( IID_IDirect3DExecuteBuffer,0x4417C145,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E );
Ritor1
parents:
diff changeset
89 DEFINE_GUID( IID_IDirect3DViewport, 0x4417C146,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E );
Ritor1
parents:
diff changeset
90 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
91 DEFINE_GUID( IID_IDirect3DViewport2, 0x93281500, 0x8cf8, 0x11d0, 0x89, 0xab, 0x0, 0xa0, 0xc9, 0x5, 0x41, 0x29);
Ritor1
parents:
diff changeset
92 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
93 #if(DIRECT3D_VERSION >= 0x0600)
Ritor1
parents:
diff changeset
94 DEFINE_GUID( IID_IDirect3DViewport3, 0xb0ab3b61, 0x33d7, 0x11d1, 0xa9, 0x81, 0x0, 0xc0, 0x4f, 0xd7, 0xb1, 0x74);
Ritor1
parents:
diff changeset
95 #endif /* DIRECT3D_VERSION >= 0x0600 */
Ritor1
parents:
diff changeset
96 #if(DIRECT3D_VERSION >= 0x0600)
Ritor1
parents:
diff changeset
97 DEFINE_GUID( IID_IDirect3DVertexBuffer, 0x7a503555, 0x4a83, 0x11d1, 0xa5, 0xdb, 0x0, 0xa0, 0xc9, 0x3, 0x67, 0xf8);
Ritor1
parents:
diff changeset
98 #endif /* DIRECT3D_VERSION >= 0x0600 */
Ritor1
parents:
diff changeset
99 #if(DIRECT3D_VERSION >= 0x0700)
Ritor1
parents:
diff changeset
100 DEFINE_GUID( IID_IDirect3DVertexBuffer7, 0xf5049e7d, 0x4861, 0x11d2, 0xa4, 0x7, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8);
Ritor1
parents:
diff changeset
101 #endif /* DIRECT3D_VERSION >= 0x0700 */
Ritor1
parents:
diff changeset
102 #endif
Ritor1
parents:
diff changeset
103
Ritor1
parents:
diff changeset
104 #ifdef __cplusplus
Ritor1
parents:
diff changeset
105 struct IDirect3D;
Ritor1
parents:
diff changeset
106 struct IDirect3DDevice;
Ritor1
parents:
diff changeset
107 struct IDirect3DLight;
Ritor1
parents:
diff changeset
108 struct IDirect3DMaterial;
Ritor1
parents:
diff changeset
109 struct IDirect3DExecuteBuffer;
Ritor1
parents:
diff changeset
110 struct IDirect3DTexture;
Ritor1
parents:
diff changeset
111 struct IDirect3DViewport;
Ritor1
parents:
diff changeset
112 typedef struct IDirect3D *LPDIRECT3D;
Ritor1
parents:
diff changeset
113 typedef struct IDirect3DDevice *LPDIRECT3DDEVICE;
Ritor1
parents:
diff changeset
114 typedef struct IDirect3DExecuteBuffer *LPDIRECT3DEXECUTEBUFFER;
Ritor1
parents:
diff changeset
115 typedef struct IDirect3DLight *LPDIRECT3DLIGHT;
Ritor1
parents:
diff changeset
116 typedef struct IDirect3DMaterial *LPDIRECT3DMATERIAL;
Ritor1
parents:
diff changeset
117 typedef struct IDirect3DTexture *LPDIRECT3DTEXTURE;
Ritor1
parents:
diff changeset
118 typedef struct IDirect3DViewport *LPDIRECT3DVIEWPORT;
Ritor1
parents:
diff changeset
119
Ritor1
parents:
diff changeset
120 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
121 struct IDirect3D2;
Ritor1
parents:
diff changeset
122 struct IDirect3DDevice2;
Ritor1
parents:
diff changeset
123 struct IDirect3DMaterial2;
Ritor1
parents:
diff changeset
124 struct IDirect3DTexture2;
Ritor1
parents:
diff changeset
125 struct IDirect3DViewport2;
Ritor1
parents:
diff changeset
126 typedef struct IDirect3D2 *LPDIRECT3D2;
Ritor1
parents:
diff changeset
127 typedef struct IDirect3DDevice2 *LPDIRECT3DDEVICE2;
Ritor1
parents:
diff changeset
128 typedef struct IDirect3DMaterial2 *LPDIRECT3DMATERIAL2;
Ritor1
parents:
diff changeset
129 typedef struct IDirect3DTexture2 *LPDIRECT3DTEXTURE2;
Ritor1
parents:
diff changeset
130 typedef struct IDirect3DViewport2 *LPDIRECT3DVIEWPORT2;
Ritor1
parents:
diff changeset
131 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
132
Ritor1
parents:
diff changeset
133 #if(DIRECT3D_VERSION >= 0x0600)
Ritor1
parents:
diff changeset
134 struct IDirect3D3;
Ritor1
parents:
diff changeset
135 struct IDirect3DDevice3;
Ritor1
parents:
diff changeset
136 struct IDirect3DMaterial3;
Ritor1
parents:
diff changeset
137 struct IDirect3DViewport3;
Ritor1
parents:
diff changeset
138 struct IDirect3DVertexBuffer;
Ritor1
parents:
diff changeset
139 typedef struct IDirect3D3 *LPDIRECT3D3;
Ritor1
parents:
diff changeset
140 typedef struct IDirect3DDevice3 *LPDIRECT3DDEVICE3;
Ritor1
parents:
diff changeset
141 typedef struct IDirect3DMaterial3 *LPDIRECT3DMATERIAL3;
Ritor1
parents:
diff changeset
142 typedef struct IDirect3DViewport3 *LPDIRECT3DVIEWPORT3;
Ritor1
parents:
diff changeset
143 typedef struct IDirect3DVertexBuffer *LPDIRECT3DVERTEXBUFFER;
Ritor1
parents:
diff changeset
144 #endif /* DIRECT3D_VERSION >= 0x0600 */
Ritor1
parents:
diff changeset
145
Ritor1
parents:
diff changeset
146 #if(DIRECT3D_VERSION >= 0x0700)
Ritor1
parents:
diff changeset
147 struct IDirect3D7;
Ritor1
parents:
diff changeset
148 struct IDirect3DDevice7;
Ritor1
parents:
diff changeset
149 struct IDirect3DVertexBuffer7;
Ritor1
parents:
diff changeset
150 typedef struct IDirect3D7 *LPDIRECT3D7;
Ritor1
parents:
diff changeset
151 typedef struct IDirect3DDevice7 *LPDIRECT3DDEVICE7;
Ritor1
parents:
diff changeset
152 typedef struct IDirect3DVertexBuffer7 *LPDIRECT3DVERTEXBUFFER7;
Ritor1
parents:
diff changeset
153 #endif /* DIRECT3D_VERSION >= 0x0700 */
Ritor1
parents:
diff changeset
154
Ritor1
parents:
diff changeset
155 #else
Ritor1
parents:
diff changeset
156
Ritor1
parents:
diff changeset
157 typedef struct IDirect3D *LPDIRECT3D;
Ritor1
parents:
diff changeset
158 typedef struct IDirect3DDevice *LPDIRECT3DDEVICE;
Ritor1
parents:
diff changeset
159 typedef struct IDirect3DExecuteBuffer *LPDIRECT3DEXECUTEBUFFER;
Ritor1
parents:
diff changeset
160 typedef struct IDirect3DLight *LPDIRECT3DLIGHT;
Ritor1
parents:
diff changeset
161 typedef struct IDirect3DMaterial *LPDIRECT3DMATERIAL;
Ritor1
parents:
diff changeset
162 typedef struct IDirect3DTexture *LPDIRECT3DTEXTURE;
Ritor1
parents:
diff changeset
163 typedef struct IDirect3DViewport *LPDIRECT3DVIEWPORT;
Ritor1
parents:
diff changeset
164
Ritor1
parents:
diff changeset
165 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
166 typedef struct IDirect3D2 *LPDIRECT3D2;
Ritor1
parents:
diff changeset
167 typedef struct IDirect3DDevice2 *LPDIRECT3DDEVICE2;
Ritor1
parents:
diff changeset
168 typedef struct IDirect3DMaterial2 *LPDIRECT3DMATERIAL2;
Ritor1
parents:
diff changeset
169 typedef struct IDirect3DTexture2 *LPDIRECT3DTEXTURE2;
Ritor1
parents:
diff changeset
170 typedef struct IDirect3DViewport2 *LPDIRECT3DVIEWPORT2;
Ritor1
parents:
diff changeset
171 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
172
Ritor1
parents:
diff changeset
173 #if(DIRECT3D_VERSION >= 0x0600)
Ritor1
parents:
diff changeset
174 typedef struct IDirect3D3 *LPDIRECT3D3;
Ritor1
parents:
diff changeset
175 typedef struct IDirect3DDevice3 *LPDIRECT3DDEVICE3;
Ritor1
parents:
diff changeset
176 typedef struct IDirect3DMaterial3 *LPDIRECT3DMATERIAL3;
Ritor1
parents:
diff changeset
177 typedef struct IDirect3DViewport3 *LPDIRECT3DVIEWPORT3;
Ritor1
parents:
diff changeset
178 typedef struct IDirect3DVertexBuffer *LPDIRECT3DVERTEXBUFFER;
Ritor1
parents:
diff changeset
179 #endif /* DIRECT3D_VERSION >= 0x0600 */
Ritor1
parents:
diff changeset
180
Ritor1
parents:
diff changeset
181 #if(DIRECT3D_VERSION >= 0x0700)
Ritor1
parents:
diff changeset
182 typedef struct IDirect3D7 *LPDIRECT3D7;
Ritor1
parents:
diff changeset
183 typedef struct IDirect3DDevice7 *LPDIRECT3DDEVICE7;
Ritor1
parents:
diff changeset
184 typedef struct IDirect3DVertexBuffer7 *LPDIRECT3DVERTEXBUFFER7;
Ritor1
parents:
diff changeset
185 #endif /* DIRECT3D_VERSION >= 0x0700 */
Ritor1
parents:
diff changeset
186
Ritor1
parents:
diff changeset
187 #endif
Ritor1
parents:
diff changeset
188
Ritor1
parents:
diff changeset
189 #include "d3dtypes.h"
Ritor1
parents:
diff changeset
190 #include "d3dcaps.h"
Ritor1
parents:
diff changeset
191
Ritor1
parents:
diff changeset
192
Ritor1
parents:
diff changeset
193 #ifdef __cplusplus
Ritor1
parents:
diff changeset
194 extern "C" {
Ritor1
parents:
diff changeset
195 #endif
Ritor1
parents:
diff changeset
196
Ritor1
parents:
diff changeset
197 /*
Ritor1
parents:
diff changeset
198 * Direct3D interfaces
Ritor1
parents:
diff changeset
199 */
Ritor1
parents:
diff changeset
200 #undef INTERFACE
Ritor1
parents:
diff changeset
201 #define INTERFACE IDirect3D
Ritor1
parents:
diff changeset
202
Ritor1
parents:
diff changeset
203 DECLARE_INTERFACE_(IDirect3D, IUnknown)
Ritor1
parents:
diff changeset
204 {
Ritor1
parents:
diff changeset
205 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
206 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
207 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
208 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
209
Ritor1
parents:
diff changeset
210 /*** IDirect3D methods ***/
Ritor1
parents:
diff changeset
211 STDMETHOD(Initialize)(THIS_ REFCLSID) PURE;
Ritor1
parents:
diff changeset
212 STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK,LPVOID) PURE;
Ritor1
parents:
diff changeset
213 STDMETHOD(CreateLight)(THIS_ LPDIRECT3DLIGHT*,IUnknown*) PURE;
Ritor1
parents:
diff changeset
214 STDMETHOD(CreateMaterial)(THIS_ LPDIRECT3DMATERIAL*,IUnknown*) PURE;
Ritor1
parents:
diff changeset
215 STDMETHOD(CreateViewport)(THIS_ LPDIRECT3DVIEWPORT*,IUnknown*) PURE;
Ritor1
parents:
diff changeset
216 STDMETHOD(FindDevice)(THIS_ LPD3DFINDDEVICESEARCH,LPD3DFINDDEVICERESULT) PURE;
Ritor1
parents:
diff changeset
217 };
Ritor1
parents:
diff changeset
218
Ritor1
parents:
diff changeset
219 typedef struct IDirect3D *LPDIRECT3D;
Ritor1
parents:
diff changeset
220
Ritor1
parents:
diff changeset
221 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
222 #define IDirect3D_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
223 #define IDirect3D_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
224 #define IDirect3D_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
225 #define IDirect3D_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
Ritor1
parents:
diff changeset
226 #define IDirect3D_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b)
Ritor1
parents:
diff changeset
227 #define IDirect3D_CreateLight(p,a,b) (p)->lpVtbl->CreateLight(p,a,b)
Ritor1
parents:
diff changeset
228 #define IDirect3D_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b)
Ritor1
parents:
diff changeset
229 #define IDirect3D_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b)
Ritor1
parents:
diff changeset
230 #define IDirect3D_FindDevice(p,a,b) (p)->lpVtbl->FindDevice(p,a,b)
Ritor1
parents:
diff changeset
231 #else
Ritor1
parents:
diff changeset
232 #define IDirect3D_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
233 #define IDirect3D_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
234 #define IDirect3D_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
235 #define IDirect3D_Initialize(p,a) (p)->Initialize(a)
Ritor1
parents:
diff changeset
236 #define IDirect3D_EnumDevices(p,a,b) (p)->EnumDevices(a,b)
Ritor1
parents:
diff changeset
237 #define IDirect3D_CreateLight(p,a,b) (p)->CreateLight(a,b)
Ritor1
parents:
diff changeset
238 #define IDirect3D_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b)
Ritor1
parents:
diff changeset
239 #define IDirect3D_CreateViewport(p,a,b) (p)->CreateViewport(a,b)
Ritor1
parents:
diff changeset
240 #define IDirect3D_FindDevice(p,a,b) (p)->FindDevice(a,b)
Ritor1
parents:
diff changeset
241 #endif
Ritor1
parents:
diff changeset
242
Ritor1
parents:
diff changeset
243 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
244 #undef INTERFACE
Ritor1
parents:
diff changeset
245 #define INTERFACE IDirect3D2
Ritor1
parents:
diff changeset
246
Ritor1
parents:
diff changeset
247 DECLARE_INTERFACE_(IDirect3D2, IUnknown)
Ritor1
parents:
diff changeset
248 {
Ritor1
parents:
diff changeset
249 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
250 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
251 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
252 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
253
Ritor1
parents:
diff changeset
254 /*** IDirect3D2 methods ***/
Ritor1
parents:
diff changeset
255 STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK,LPVOID) PURE;
Ritor1
parents:
diff changeset
256 STDMETHOD(CreateLight)(THIS_ LPDIRECT3DLIGHT*,IUnknown*) PURE;
Ritor1
parents:
diff changeset
257 STDMETHOD(CreateMaterial)(THIS_ LPDIRECT3DMATERIAL2*,IUnknown*) PURE;
Ritor1
parents:
diff changeset
258 STDMETHOD(CreateViewport)(THIS_ LPDIRECT3DVIEWPORT2*,IUnknown*) PURE;
Ritor1
parents:
diff changeset
259 STDMETHOD(FindDevice)(THIS_ LPD3DFINDDEVICESEARCH,LPD3DFINDDEVICERESULT) PURE;
Ritor1
parents:
diff changeset
260 STDMETHOD(CreateDevice)(THIS_ REFCLSID,LPDIRECTDRAWSURFACE,LPDIRECT3DDEVICE2*) PURE;
Ritor1
parents:
diff changeset
261 };
Ritor1
parents:
diff changeset
262
Ritor1
parents:
diff changeset
263 typedef struct IDirect3D2 *LPDIRECT3D2;
Ritor1
parents:
diff changeset
264
Ritor1
parents:
diff changeset
265 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
266 #define IDirect3D2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
267 #define IDirect3D2_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
268 #define IDirect3D2_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
269 #define IDirect3D2_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b)
Ritor1
parents:
diff changeset
270 #define IDirect3D2_CreateLight(p,a,b) (p)->lpVtbl->CreateLight(p,a,b)
Ritor1
parents:
diff changeset
271 #define IDirect3D2_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b)
Ritor1
parents:
diff changeset
272 #define IDirect3D2_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b)
Ritor1
parents:
diff changeset
273 #define IDirect3D2_FindDevice(p,a,b) (p)->lpVtbl->FindDevice(p,a,b)
Ritor1
parents:
diff changeset
274 #define IDirect3D2_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
Ritor1
parents:
diff changeset
275 #else
Ritor1
parents:
diff changeset
276 #define IDirect3D2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
277 #define IDirect3D2_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
278 #define IDirect3D2_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
279 #define IDirect3D2_EnumDevices(p,a,b) (p)->EnumDevices(a,b)
Ritor1
parents:
diff changeset
280 #define IDirect3D2_CreateLight(p,a,b) (p)->CreateLight(a,b)
Ritor1
parents:
diff changeset
281 #define IDirect3D2_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b)
Ritor1
parents:
diff changeset
282 #define IDirect3D2_CreateViewport(p,a,b) (p)->CreateViewport(a,b)
Ritor1
parents:
diff changeset
283 #define IDirect3D2_FindDevice(p,a,b) (p)->FindDevice(a,b)
Ritor1
parents:
diff changeset
284 #define IDirect3D2_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
Ritor1
parents:
diff changeset
285 #endif
Ritor1
parents:
diff changeset
286 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
287
Ritor1
parents:
diff changeset
288 #if(DIRECT3D_VERSION >= 0x0600)
Ritor1
parents:
diff changeset
289 #undef INTERFACE
Ritor1
parents:
diff changeset
290 #define INTERFACE IDirect3D3
Ritor1
parents:
diff changeset
291
Ritor1
parents:
diff changeset
292 DECLARE_INTERFACE_(IDirect3D3, IUnknown)
Ritor1
parents:
diff changeset
293 {
Ritor1
parents:
diff changeset
294 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
295 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
296 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
297 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
298
Ritor1
parents:
diff changeset
299 /*** IDirect3D3 methods ***/
Ritor1
parents:
diff changeset
300 STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK,LPVOID) PURE;
Ritor1
parents:
diff changeset
301 STDMETHOD(CreateLight)(THIS_ LPDIRECT3DLIGHT*,LPUNKNOWN) PURE;
Ritor1
parents:
diff changeset
302 STDMETHOD(CreateMaterial)(THIS_ LPDIRECT3DMATERIAL3*,LPUNKNOWN) PURE;
Ritor1
parents:
diff changeset
303 STDMETHOD(CreateViewport)(THIS_ LPDIRECT3DVIEWPORT3*,LPUNKNOWN) PURE;
Ritor1
parents:
diff changeset
304 STDMETHOD(FindDevice)(THIS_ LPD3DFINDDEVICESEARCH,LPD3DFINDDEVICERESULT) PURE;
Ritor1
parents:
diff changeset
305 STDMETHOD(CreateDevice)(THIS_ REFCLSID,LPDIRECTDRAWSURFACE4,LPDIRECT3DDEVICE3*,LPUNKNOWN) PURE;
Ritor1
parents:
diff changeset
306 STDMETHOD(CreateVertexBuffer)(THIS_ LPD3DVERTEXBUFFERDESC,LPDIRECT3DVERTEXBUFFER*,DWORD,LPUNKNOWN) PURE;
Ritor1
parents:
diff changeset
307 STDMETHOD(EnumZBufferFormats)(THIS_ REFCLSID,LPD3DENUMPIXELFORMATSCALLBACK,LPVOID) PURE;
Ritor1
parents:
diff changeset
308 STDMETHOD(EvictManagedTextures)(THIS) PURE;
Ritor1
parents:
diff changeset
309 };
Ritor1
parents:
diff changeset
310
Ritor1
parents:
diff changeset
311 typedef struct IDirect3D3 *LPDIRECT3D3;
Ritor1
parents:
diff changeset
312
Ritor1
parents:
diff changeset
313 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
314 #define IDirect3D3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
315 #define IDirect3D3_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
316 #define IDirect3D3_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
317 #define IDirect3D3_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b)
Ritor1
parents:
diff changeset
318 #define IDirect3D3_CreateLight(p,a,b) (p)->lpVtbl->CreateLight(p,a,b)
Ritor1
parents:
diff changeset
319 #define IDirect3D3_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b)
Ritor1
parents:
diff changeset
320 #define IDirect3D3_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b)
Ritor1
parents:
diff changeset
321 #define IDirect3D3_FindDevice(p,a,b) (p)->lpVtbl->FindDevice(p,a,b)
Ritor1
parents:
diff changeset
322 #define IDirect3D3_CreateDevice(p,a,b,c,d) (p)->lpVtbl->CreateDevice(p,a,b,c,d)
Ritor1
parents:
diff changeset
323 #define IDirect3D3_CreateVertexBuffer(p,a,b,c,d) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d)
Ritor1
parents:
diff changeset
324 #define IDirect3D3_EnumZBufferFormats(p,a,b,c) (p)->lpVtbl->EnumZBufferFormats(p,a,b,c)
Ritor1
parents:
diff changeset
325 #define IDirect3D3_EvictManagedTextures(p) (p)->lpVtbl->EvictManagedTextures(p)
Ritor1
parents:
diff changeset
326 #else
Ritor1
parents:
diff changeset
327 #define IDirect3D3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
328 #define IDirect3D3_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
329 #define IDirect3D3_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
330 #define IDirect3D3_EnumDevices(p,a,b) (p)->EnumDevices(a,b)
Ritor1
parents:
diff changeset
331 #define IDirect3D3_CreateLight(p,a,b) (p)->CreateLight(a,b)
Ritor1
parents:
diff changeset
332 #define IDirect3D3_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b)
Ritor1
parents:
diff changeset
333 #define IDirect3D3_CreateViewport(p,a,b) (p)->CreateViewport(a,b)
Ritor1
parents:
diff changeset
334 #define IDirect3D3_FindDevice(p,a,b) (p)->FindDevice(a,b)
Ritor1
parents:
diff changeset
335 #define IDirect3D3_CreateDevice(p,a,b,c,d) (p)->CreateDevice(a,b,c,d)
Ritor1
parents:
diff changeset
336 #define IDirect3D3_CreateVertexBuffer(p,a,b,c,d) (p)->CreateVertexBuffer(a,b,c,d)
Ritor1
parents:
diff changeset
337 #define IDirect3D3_EnumZBufferFormats(p,a,b,c) (p)->EnumZBufferFormats(a,b,c)
Ritor1
parents:
diff changeset
338 #define IDirect3D3_EvictManagedTextures(p) (p)->EvictManagedTextures()
Ritor1
parents:
diff changeset
339 #endif
Ritor1
parents:
diff changeset
340 #endif /* DIRECT3D_VERSION >= 0x0600 */
Ritor1
parents:
diff changeset
341
Ritor1
parents:
diff changeset
342 #if(DIRECT3D_VERSION >= 0x0700)
Ritor1
parents:
diff changeset
343 #undef INTERFACE
Ritor1
parents:
diff changeset
344 #define INTERFACE IDirect3D7
Ritor1
parents:
diff changeset
345
Ritor1
parents:
diff changeset
346 DECLARE_INTERFACE_(IDirect3D7, IUnknown)
Ritor1
parents:
diff changeset
347 {
Ritor1
parents:
diff changeset
348 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
349 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
350 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
351 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
352
Ritor1
parents:
diff changeset
353 /*** IDirect3D7 methods ***/
Ritor1
parents:
diff changeset
354 STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK7,LPVOID) PURE;
Ritor1
parents:
diff changeset
355 STDMETHOD(CreateDevice)(THIS_ REFCLSID,LPDIRECTDRAWSURFACE7,LPDIRECT3DDEVICE7*) PURE;
Ritor1
parents:
diff changeset
356 STDMETHOD(CreateVertexBuffer)(THIS_ LPD3DVERTEXBUFFERDESC,LPDIRECT3DVERTEXBUFFER7*,DWORD) PURE;
Ritor1
parents:
diff changeset
357 STDMETHOD(EnumZBufferFormats)(THIS_ REFCLSID,LPD3DENUMPIXELFORMATSCALLBACK,LPVOID) PURE;
Ritor1
parents:
diff changeset
358 STDMETHOD(EvictManagedTextures)(THIS) PURE;
Ritor1
parents:
diff changeset
359 };
Ritor1
parents:
diff changeset
360
Ritor1
parents:
diff changeset
361 typedef struct IDirect3D7 *LPDIRECT3D7;
Ritor1
parents:
diff changeset
362
Ritor1
parents:
diff changeset
363 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
364 #define IDirect3D7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
365 #define IDirect3D7_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
366 #define IDirect3D7_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
367 #define IDirect3D7_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b)
Ritor1
parents:
diff changeset
368 #define IDirect3D7_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
Ritor1
parents:
diff changeset
369 #define IDirect3D7_CreateVertexBuffer(p,a,b,c) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c)
Ritor1
parents:
diff changeset
370 #define IDirect3D7_EnumZBufferFormats(p,a,b,c) (p)->lpVtbl->EnumZBufferFormats(p,a,b,c)
Ritor1
parents:
diff changeset
371 #define IDirect3D7_EvictManagedTextures(p) (p)->lpVtbl->EvictManagedTextures(p)
Ritor1
parents:
diff changeset
372 #else
Ritor1
parents:
diff changeset
373 #define IDirect3D7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
374 #define IDirect3D7_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
375 #define IDirect3D7_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
376 #define IDirect3D7_EnumDevices(p,a,b) (p)->EnumDevices(a,b)
Ritor1
parents:
diff changeset
377 #define IDirect3D7_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
Ritor1
parents:
diff changeset
378 #define IDirect3D7_CreateVertexBuffer(p,a,b,c) (p)->CreateVertexBuffer(a,b,c)
Ritor1
parents:
diff changeset
379 #define IDirect3D7_EnumZBufferFormats(p,a,b,c) (p)->EnumZBufferFormats(a,b,c)
Ritor1
parents:
diff changeset
380 #define IDirect3D7_EvictManagedTextures(p) (p)->EvictManagedTextures()
Ritor1
parents:
diff changeset
381 #endif
Ritor1
parents:
diff changeset
382 #endif /* DIRECT3D_VERSION >= 0x0700 */
Ritor1
parents:
diff changeset
383 /*
Ritor1
parents:
diff changeset
384 * Direct3D Device interfaces
Ritor1
parents:
diff changeset
385 */
Ritor1
parents:
diff changeset
386 #undef INTERFACE
Ritor1
parents:
diff changeset
387 #define INTERFACE IDirect3DDevice
Ritor1
parents:
diff changeset
388
Ritor1
parents:
diff changeset
389 DECLARE_INTERFACE_(IDirect3DDevice, IUnknown)
Ritor1
parents:
diff changeset
390 {
Ritor1
parents:
diff changeset
391 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
392 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
393 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
394 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
395
Ritor1
parents:
diff changeset
396 /*** IDirect3DDevice methods ***/
Ritor1
parents:
diff changeset
397 STDMETHOD(Initialize)(THIS_ LPDIRECT3D,LPGUID,LPD3DDEVICEDESC) PURE;
Ritor1
parents:
diff changeset
398 STDMETHOD(GetCaps)(THIS_ LPD3DDEVICEDESC,LPD3DDEVICEDESC) PURE;
Ritor1
parents:
diff changeset
399 STDMETHOD(SwapTextureHandles)(THIS_ LPDIRECT3DTEXTURE,LPDIRECT3DTEXTURE) PURE;
Ritor1
parents:
diff changeset
400 STDMETHOD(CreateExecuteBuffer)(THIS_ LPD3DEXECUTEBUFFERDESC,LPDIRECT3DEXECUTEBUFFER*,IUnknown*) PURE;
Ritor1
parents:
diff changeset
401 STDMETHOD(GetStats)(THIS_ LPD3DSTATS) PURE;
Ritor1
parents:
diff changeset
402 STDMETHOD(Execute)(THIS_ LPDIRECT3DEXECUTEBUFFER,LPDIRECT3DVIEWPORT,DWORD) PURE;
Ritor1
parents:
diff changeset
403 STDMETHOD(AddViewport)(THIS_ LPDIRECT3DVIEWPORT) PURE;
Ritor1
parents:
diff changeset
404 STDMETHOD(DeleteViewport)(THIS_ LPDIRECT3DVIEWPORT) PURE;
Ritor1
parents:
diff changeset
405 STDMETHOD(NextViewport)(THIS_ LPDIRECT3DVIEWPORT,LPDIRECT3DVIEWPORT*,DWORD) PURE;
Ritor1
parents:
diff changeset
406 STDMETHOD(Pick)(THIS_ LPDIRECT3DEXECUTEBUFFER,LPDIRECT3DVIEWPORT,DWORD,LPD3DRECT) PURE;
Ritor1
parents:
diff changeset
407 STDMETHOD(GetPickRecords)(THIS_ LPDWORD,LPD3DPICKRECORD) PURE;
Ritor1
parents:
diff changeset
408 STDMETHOD(EnumTextureFormats)(THIS_ LPD3DENUMTEXTUREFORMATSCALLBACK,LPVOID) PURE;
Ritor1
parents:
diff changeset
409 STDMETHOD(CreateMatrix)(THIS_ LPD3DMATRIXHANDLE) PURE;
Ritor1
parents:
diff changeset
410 STDMETHOD(SetMatrix)(THIS_ D3DMATRIXHANDLE,const LPD3DMATRIX) PURE;
Ritor1
parents:
diff changeset
411 STDMETHOD(GetMatrix)(THIS_ D3DMATRIXHANDLE,LPD3DMATRIX) PURE;
Ritor1
parents:
diff changeset
412 STDMETHOD(DeleteMatrix)(THIS_ D3DMATRIXHANDLE) PURE;
Ritor1
parents:
diff changeset
413 STDMETHOD(BeginScene)(THIS) PURE;
Ritor1
parents:
diff changeset
414 STDMETHOD(EndScene)(THIS) PURE;
Ritor1
parents:
diff changeset
415 STDMETHOD(GetDirect3D)(THIS_ LPDIRECT3D*) PURE;
Ritor1
parents:
diff changeset
416 };
Ritor1
parents:
diff changeset
417
Ritor1
parents:
diff changeset
418 typedef struct IDirect3DDevice *LPDIRECT3DDEVICE;
Ritor1
parents:
diff changeset
419
Ritor1
parents:
diff changeset
420 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
421 #define IDirect3DDevice_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
422 #define IDirect3DDevice_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
423 #define IDirect3DDevice_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
424 #define IDirect3DDevice_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
Ritor1
parents:
diff changeset
425 #define IDirect3DDevice_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
Ritor1
parents:
diff changeset
426 #define IDirect3DDevice_SwapTextureHandles(p,a,b) (p)->lpVtbl->SwapTextureHandles(p,a,b)
Ritor1
parents:
diff changeset
427 #define IDirect3DDevice_CreateExecuteBuffer(p,a,b,c) (p)->lpVtbl->CreateExecuteBuffer(p,a,b,c)
Ritor1
parents:
diff changeset
428 #define IDirect3DDevice_GetStats(p,a) (p)->lpVtbl->GetStats(p,a)
Ritor1
parents:
diff changeset
429 #define IDirect3DDevice_Execute(p,a,b,c) (p)->lpVtbl->Execute(p,a,b,c)
Ritor1
parents:
diff changeset
430 #define IDirect3DDevice_AddViewport(p,a) (p)->lpVtbl->AddViewport(p,a)
Ritor1
parents:
diff changeset
431 #define IDirect3DDevice_DeleteViewport(p,a) (p)->lpVtbl->DeleteViewport(p,a)
Ritor1
parents:
diff changeset
432 #define IDirect3DDevice_NextViewport(p,a,b,c) (p)->lpVtbl->NextViewport(p,a,b,c)
Ritor1
parents:
diff changeset
433 #define IDirect3DDevice_Pick(p,a,b,c,d) (p)->lpVtbl->Pick(p,a,b,c,d)
Ritor1
parents:
diff changeset
434 #define IDirect3DDevice_GetPickRecords(p,a,b) (p)->lpVtbl->GetPickRecords(p,a,b)
Ritor1
parents:
diff changeset
435 #define IDirect3DDevice_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b)
Ritor1
parents:
diff changeset
436 #define IDirect3DDevice_CreateMatrix(p,a) (p)->lpVtbl->CreateMatrix(p,a)
Ritor1
parents:
diff changeset
437 #define IDirect3DDevice_SetMatrix(p,a,b) (p)->lpVtbl->SetMatrix(p,a,b)
Ritor1
parents:
diff changeset
438 #define IDirect3DDevice_GetMatrix(p,a,b) (p)->lpVtbl->GetMatrix(p,a,b)
Ritor1
parents:
diff changeset
439 #define IDirect3DDevice_DeleteMatrix(p,a) (p)->lpVtbl->DeleteMatrix(p,a)
Ritor1
parents:
diff changeset
440 #define IDirect3DDevice_BeginScene(p) (p)->lpVtbl->BeginScene(p)
Ritor1
parents:
diff changeset
441 #define IDirect3DDevice_EndScene(p) (p)->lpVtbl->EndScene(p)
Ritor1
parents:
diff changeset
442 #define IDirect3DDevice_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
Ritor1
parents:
diff changeset
443 #else
Ritor1
parents:
diff changeset
444 #define IDirect3DDevice_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
445 #define IDirect3DDevice_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
446 #define IDirect3DDevice_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
447 #define IDirect3DDevice_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
Ritor1
parents:
diff changeset
448 #define IDirect3DDevice_GetCaps(p,a,b) (p)->GetCaps(a,b)
Ritor1
parents:
diff changeset
449 #define IDirect3DDevice_SwapTextureHandles(p,a,b) (p)->SwapTextureHandles(a,b)
Ritor1
parents:
diff changeset
450 #define IDirect3DDevice_CreateExecuteBuffer(p,a,b,c) (p)->CreateExecuteBuffer(a,b,c)
Ritor1
parents:
diff changeset
451 #define IDirect3DDevice_GetStats(p,a) (p)->GetStats(a)
Ritor1
parents:
diff changeset
452 #define IDirect3DDevice_Execute(p,a,b,c) (p)->Execute(a,b,c)
Ritor1
parents:
diff changeset
453 #define IDirect3DDevice_AddViewport(p,a) (p)->AddViewport(a)
Ritor1
parents:
diff changeset
454 #define IDirect3DDevice_DeleteViewport(p,a) (p)->DeleteViewport(a)
Ritor1
parents:
diff changeset
455 #define IDirect3DDevice_NextViewport(p,a,b,c) (p)->NextViewport(a,b,c)
Ritor1
parents:
diff changeset
456 #define IDirect3DDevice_Pick(p,a,b,c,d) (p)->Pick(a,b,c,d)
Ritor1
parents:
diff changeset
457 #define IDirect3DDevice_GetPickRecords(p,a,b) (p)->GetPickRecords(a,b)
Ritor1
parents:
diff changeset
458 #define IDirect3DDevice_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b)
Ritor1
parents:
diff changeset
459 #define IDirect3DDevice_CreateMatrix(p,a) (p)->CreateMatrix(a)
Ritor1
parents:
diff changeset
460 #define IDirect3DDevice_SetMatrix(p,a,b) (p)->SetMatrix(a,b)
Ritor1
parents:
diff changeset
461 #define IDirect3DDevice_GetMatrix(p,a,b) (p)->GetMatrix(a,b)
Ritor1
parents:
diff changeset
462 #define IDirect3DDevice_DeleteMatrix(p,a) (p)->DeleteMatrix(a)
Ritor1
parents:
diff changeset
463 #define IDirect3DDevice_BeginScene(p) (p)->BeginScene()
Ritor1
parents:
diff changeset
464 #define IDirect3DDevice_EndScene(p) (p)->EndScene()
Ritor1
parents:
diff changeset
465 #define IDirect3DDevice_GetDirect3D(p,a) (p)->GetDirect3D(a)
Ritor1
parents:
diff changeset
466 #endif
Ritor1
parents:
diff changeset
467
Ritor1
parents:
diff changeset
468 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
469 #undef INTERFACE
Ritor1
parents:
diff changeset
470 #define INTERFACE IDirect3DDevice2
Ritor1
parents:
diff changeset
471
Ritor1
parents:
diff changeset
472 DECLARE_INTERFACE_(IDirect3DDevice2, IUnknown)
Ritor1
parents:
diff changeset
473 {
Ritor1
parents:
diff changeset
474 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
475 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
476 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
477 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
478
Ritor1
parents:
diff changeset
479 /*** IDirect3DDevice2 methods ***/
Ritor1
parents:
diff changeset
480 STDMETHOD(GetCaps)(THIS_ LPD3DDEVICEDESC,LPD3DDEVICEDESC) PURE;
Ritor1
parents:
diff changeset
481 STDMETHOD(SwapTextureHandles)(THIS_ LPDIRECT3DTEXTURE2,LPDIRECT3DTEXTURE2) PURE;
Ritor1
parents:
diff changeset
482 STDMETHOD(GetStats)(THIS_ LPD3DSTATS) PURE;
Ritor1
parents:
diff changeset
483 STDMETHOD(AddViewport)(THIS_ LPDIRECT3DVIEWPORT2) PURE;
Ritor1
parents:
diff changeset
484 STDMETHOD(DeleteViewport)(THIS_ LPDIRECT3DVIEWPORT2) PURE;
Ritor1
parents:
diff changeset
485 STDMETHOD(NextViewport)(THIS_ LPDIRECT3DVIEWPORT2,LPDIRECT3DVIEWPORT2*,DWORD) PURE;
Ritor1
parents:
diff changeset
486 STDMETHOD(EnumTextureFormats)(THIS_ LPD3DENUMTEXTUREFORMATSCALLBACK,LPVOID) PURE;
Ritor1
parents:
diff changeset
487 STDMETHOD(BeginScene)(THIS) PURE;
Ritor1
parents:
diff changeset
488 STDMETHOD(EndScene)(THIS) PURE;
Ritor1
parents:
diff changeset
489 STDMETHOD(GetDirect3D)(THIS_ LPDIRECT3D2*) PURE;
Ritor1
parents:
diff changeset
490 STDMETHOD(SetCurrentViewport)(THIS_ LPDIRECT3DVIEWPORT2) PURE;
Ritor1
parents:
diff changeset
491 STDMETHOD(GetCurrentViewport)(THIS_ LPDIRECT3DVIEWPORT2 *) PURE;
Ritor1
parents:
diff changeset
492 STDMETHOD(SetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE,DWORD) PURE;
Ritor1
parents:
diff changeset
493 STDMETHOD(GetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE *) PURE;
Ritor1
parents:
diff changeset
494 STDMETHOD(Begin)(THIS_ D3DPRIMITIVETYPE,D3DVERTEXTYPE,DWORD) PURE;
Ritor1
parents:
diff changeset
495 STDMETHOD(BeginIndexed)(THIS_ D3DPRIMITIVETYPE,D3DVERTEXTYPE,LPVOID,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
496 STDMETHOD(Vertex)(THIS_ LPVOID) PURE;
Ritor1
parents:
diff changeset
497 STDMETHOD(Index)(THIS_ WORD) PURE;
Ritor1
parents:
diff changeset
498 STDMETHOD(End)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
499 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE,LPDWORD) PURE;
Ritor1
parents:
diff changeset
500 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE,DWORD) PURE;
Ritor1
parents:
diff changeset
501 STDMETHOD(GetLightState)(THIS_ D3DLIGHTSTATETYPE,LPDWORD) PURE;
Ritor1
parents:
diff changeset
502 STDMETHOD(SetLightState)(THIS_ D3DLIGHTSTATETYPE,DWORD) PURE;
Ritor1
parents:
diff changeset
503 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE;
Ritor1
parents:
diff changeset
504 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE;
Ritor1
parents:
diff changeset
505 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE;
Ritor1
parents:
diff changeset
506 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE,D3DVERTEXTYPE,LPVOID,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
507 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE,D3DVERTEXTYPE,LPVOID,DWORD,LPWORD,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
508 STDMETHOD(SetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE;
Ritor1
parents:
diff changeset
509 STDMETHOD(GetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE;
Ritor1
parents:
diff changeset
510 };
Ritor1
parents:
diff changeset
511
Ritor1
parents:
diff changeset
512 typedef struct IDirect3DDevice2 *LPDIRECT3DDEVICE2;
Ritor1
parents:
diff changeset
513
Ritor1
parents:
diff changeset
514 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
515 #define IDirect3DDevice2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
516 #define IDirect3DDevice2_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
517 #define IDirect3DDevice2_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
518 #define IDirect3DDevice2_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
Ritor1
parents:
diff changeset
519 #define IDirect3DDevice2_SwapTextureHandles(p,a,b) (p)->lpVtbl->SwapTextureHandles(p,a,b)
Ritor1
parents:
diff changeset
520 #define IDirect3DDevice2_GetStats(p,a) (p)->lpVtbl->GetStats(p,a)
Ritor1
parents:
diff changeset
521 #define IDirect3DDevice2_AddViewport(p,a) (p)->lpVtbl->AddViewport(p,a)
Ritor1
parents:
diff changeset
522 #define IDirect3DDevice2_DeleteViewport(p,a) (p)->lpVtbl->DeleteViewport(p,a)
Ritor1
parents:
diff changeset
523 #define IDirect3DDevice2_NextViewport(p,a,b,c) (p)->lpVtbl->NextViewport(p,a,b,c)
Ritor1
parents:
diff changeset
524 #define IDirect3DDevice2_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b)
Ritor1
parents:
diff changeset
525 #define IDirect3DDevice2_BeginScene(p) (p)->lpVtbl->BeginScene(p)
Ritor1
parents:
diff changeset
526 #define IDirect3DDevice2_EndScene(p) (p)->lpVtbl->EndScene(p)
Ritor1
parents:
diff changeset
527 #define IDirect3DDevice2_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
Ritor1
parents:
diff changeset
528 #define IDirect3DDevice2_SetCurrentViewport(p,a) (p)->lpVtbl->SetCurrentViewport(p,a)
Ritor1
parents:
diff changeset
529 #define IDirect3DDevice2_GetCurrentViewport(p,a) (p)->lpVtbl->GetCurrentViewport(p,a)
Ritor1
parents:
diff changeset
530 #define IDirect3DDevice2_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
Ritor1
parents:
diff changeset
531 #define IDirect3DDevice2_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a)
Ritor1
parents:
diff changeset
532 #define IDirect3DDevice2_Begin(p,a,b,c) (p)->lpVtbl->Begin(p,a,b,c)
Ritor1
parents:
diff changeset
533 #define IDirect3DDevice2_BeginIndexed(p,a,b,c,d,e) (p)->lpVtbl->BeginIndexed(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
534 #define IDirect3DDevice2_Vertex(p,a) (p)->lpVtbl->Vertex(p,a)
Ritor1
parents:
diff changeset
535 #define IDirect3DDevice2_Index(p,a) (p)->lpVtbl->Index(p,a)
Ritor1
parents:
diff changeset
536 #define IDirect3DDevice2_End(p,a) (p)->lpVtbl->End(p,a)
Ritor1
parents:
diff changeset
537 #define IDirect3DDevice2_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
Ritor1
parents:
diff changeset
538 #define IDirect3DDevice2_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
Ritor1
parents:
diff changeset
539 #define IDirect3DDevice2_GetLightState(p,a,b) (p)->lpVtbl->GetLightState(p,a,b)
Ritor1
parents:
diff changeset
540 #define IDirect3DDevice2_SetLightState(p,a,b) (p)->lpVtbl->SetLightState(p,a,b)
Ritor1
parents:
diff changeset
541 #define IDirect3DDevice2_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
Ritor1
parents:
diff changeset
542 #define IDirect3DDevice2_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
Ritor1
parents:
diff changeset
543 #define IDirect3DDevice2_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
Ritor1
parents:
diff changeset
544 #define IDirect3DDevice2_DrawPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitive(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
545 #define IDirect3DDevice2_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
546 #define IDirect3DDevice2_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
Ritor1
parents:
diff changeset
547 #define IDirect3DDevice2_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
Ritor1
parents:
diff changeset
548 #else
Ritor1
parents:
diff changeset
549 #define IDirect3DDevice2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
550 #define IDirect3DDevice2_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
551 #define IDirect3DDevice2_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
552 #define IDirect3DDevice2_GetCaps(p,a,b) (p)->GetCaps(a,b)
Ritor1
parents:
diff changeset
553 #define IDirect3DDevice2_SwapTextureHandles(p,a,b) (p)->SwapTextureHandles(a,b)
Ritor1
parents:
diff changeset
554 #define IDirect3DDevice2_GetStats(p,a) (p)->GetStats(a)
Ritor1
parents:
diff changeset
555 #define IDirect3DDevice2_AddViewport(p,a) (p)->AddViewport(a)
Ritor1
parents:
diff changeset
556 #define IDirect3DDevice2_DeleteViewport(p,a) (p)->DeleteViewport(a)
Ritor1
parents:
diff changeset
557 #define IDirect3DDevice2_NextViewport(p,a,b,c) (p)->NextViewport(a,b,c)
Ritor1
parents:
diff changeset
558 #define IDirect3DDevice2_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b)
Ritor1
parents:
diff changeset
559 #define IDirect3DDevice2_BeginScene(p) (p)->BeginScene()
Ritor1
parents:
diff changeset
560 #define IDirect3DDevice2_EndScene(p) (p)->EndScene()
Ritor1
parents:
diff changeset
561 #define IDirect3DDevice2_GetDirect3D(p,a) (p)->GetDirect3D(a)
Ritor1
parents:
diff changeset
562 #define IDirect3DDevice2_SetCurrentViewport(p,a) (p)->SetCurrentViewport(a)
Ritor1
parents:
diff changeset
563 #define IDirect3DDevice2_GetCurrentViewport(p,a) (p)->GetCurrentViewport(a)
Ritor1
parents:
diff changeset
564 #define IDirect3DDevice2_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
Ritor1
parents:
diff changeset
565 #define IDirect3DDevice2_GetRenderTarget(p,a) (p)->GetRenderTarget(a)
Ritor1
parents:
diff changeset
566 #define IDirect3DDevice2_Begin(p,a,b,c) (p)->Begin(a,b,c)
Ritor1
parents:
diff changeset
567 #define IDirect3DDevice2_BeginIndexed(p,a,b,c,d,e) (p)->BeginIndexed(a,b,c,d,e)
Ritor1
parents:
diff changeset
568 #define IDirect3DDevice2_Vertex(p,a) (p)->Vertex(a)
Ritor1
parents:
diff changeset
569 #define IDirect3DDevice2_Index(p,a) (p)->Index(a)
Ritor1
parents:
diff changeset
570 #define IDirect3DDevice2_End(p,a) (p)->End(a)
Ritor1
parents:
diff changeset
571 #define IDirect3DDevice2_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
Ritor1
parents:
diff changeset
572 #define IDirect3DDevice2_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
Ritor1
parents:
diff changeset
573 #define IDirect3DDevice2_GetLightState(p,a,b) (p)->GetLightState(a,b)
Ritor1
parents:
diff changeset
574 #define IDirect3DDevice2_SetLightState(p,a,b) (p)->SetLightState(a,b)
Ritor1
parents:
diff changeset
575 #define IDirect3DDevice2_SetTransform(p,a,b) (p)->SetTransform(a,b)
Ritor1
parents:
diff changeset
576 #define IDirect3DDevice2_GetTransform(p,a,b) (p)->GetTransform(a,b)
Ritor1
parents:
diff changeset
577 #define IDirect3DDevice2_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
Ritor1
parents:
diff changeset
578 #define IDirect3DDevice2_DrawPrimitive(p,a,b,c,d,e) (p)->DrawPrimitive(a,b,c,d,e)
Ritor1
parents:
diff changeset
579 #define IDirect3DDevice2_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitive(a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
580 #define IDirect3DDevice2_SetClipStatus(p,a) (p)->SetClipStatus(a)
Ritor1
parents:
diff changeset
581 #define IDirect3DDevice2_GetClipStatus(p,a) (p)->GetClipStatus(a)
Ritor1
parents:
diff changeset
582 #endif
Ritor1
parents:
diff changeset
583 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
584
Ritor1
parents:
diff changeset
585 #if(DIRECT3D_VERSION >= 0x0600)
Ritor1
parents:
diff changeset
586 #undef INTERFACE
Ritor1
parents:
diff changeset
587 #define INTERFACE IDirect3DDevice3
Ritor1
parents:
diff changeset
588
Ritor1
parents:
diff changeset
589 DECLARE_INTERFACE_(IDirect3DDevice3, IUnknown)
Ritor1
parents:
diff changeset
590 {
Ritor1
parents:
diff changeset
591 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
592 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
593 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
594 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
595
Ritor1
parents:
diff changeset
596 /*** IDirect3DDevice3 methods ***/
Ritor1
parents:
diff changeset
597 STDMETHOD(GetCaps)(THIS_ LPD3DDEVICEDESC,LPD3DDEVICEDESC) PURE;
Ritor1
parents:
diff changeset
598 STDMETHOD(GetStats)(THIS_ LPD3DSTATS) PURE;
Ritor1
parents:
diff changeset
599 STDMETHOD(AddViewport)(THIS_ LPDIRECT3DVIEWPORT3) PURE;
Ritor1
parents:
diff changeset
600 STDMETHOD(DeleteViewport)(THIS_ LPDIRECT3DVIEWPORT3) PURE;
Ritor1
parents:
diff changeset
601 STDMETHOD(NextViewport)(THIS_ LPDIRECT3DVIEWPORT3,LPDIRECT3DVIEWPORT3*,DWORD) PURE;
Ritor1
parents:
diff changeset
602 STDMETHOD(EnumTextureFormats)(THIS_ LPD3DENUMPIXELFORMATSCALLBACK,LPVOID) PURE;
Ritor1
parents:
diff changeset
603 STDMETHOD(BeginScene)(THIS) PURE;
Ritor1
parents:
diff changeset
604 STDMETHOD(EndScene)(THIS) PURE;
Ritor1
parents:
diff changeset
605 STDMETHOD(GetDirect3D)(THIS_ LPDIRECT3D3*) PURE;
Ritor1
parents:
diff changeset
606 STDMETHOD(SetCurrentViewport)(THIS_ LPDIRECT3DVIEWPORT3) PURE;
Ritor1
parents:
diff changeset
607 STDMETHOD(GetCurrentViewport)(THIS_ LPDIRECT3DVIEWPORT3 *) PURE;
Ritor1
parents:
diff changeset
608 STDMETHOD(SetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE4,DWORD) PURE;
Ritor1
parents:
diff changeset
609 STDMETHOD(GetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE4 *) PURE;
Ritor1
parents:
diff changeset
610 STDMETHOD(Begin)(THIS_ D3DPRIMITIVETYPE,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
611 STDMETHOD(BeginIndexed)(THIS_ D3DPRIMITIVETYPE,DWORD,LPVOID,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
612 STDMETHOD(Vertex)(THIS_ LPVOID) PURE;
Ritor1
parents:
diff changeset
613 STDMETHOD(Index)(THIS_ WORD) PURE;
Ritor1
parents:
diff changeset
614 STDMETHOD(End)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
615 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE,LPDWORD) PURE;
Ritor1
parents:
diff changeset
616 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE,DWORD) PURE;
Ritor1
parents:
diff changeset
617 STDMETHOD(GetLightState)(THIS_ D3DLIGHTSTATETYPE,LPDWORD) PURE;
Ritor1
parents:
diff changeset
618 STDMETHOD(SetLightState)(THIS_ D3DLIGHTSTATETYPE,DWORD) PURE;
Ritor1
parents:
diff changeset
619 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE;
Ritor1
parents:
diff changeset
620 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE;
Ritor1
parents:
diff changeset
621 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE;
Ritor1
parents:
diff changeset
622 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE,DWORD,LPVOID,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
623 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE,DWORD,LPVOID,DWORD,LPWORD,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
624 STDMETHOD(SetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE;
Ritor1
parents:
diff changeset
625 STDMETHOD(GetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE;
Ritor1
parents:
diff changeset
626 STDMETHOD(DrawPrimitiveStrided)(THIS_ D3DPRIMITIVETYPE,DWORD,LPD3DDRAWPRIMITIVESTRIDEDDATA,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
627 STDMETHOD(DrawIndexedPrimitiveStrided)(THIS_ D3DPRIMITIVETYPE,DWORD,LPD3DDRAWPRIMITIVESTRIDEDDATA,DWORD,LPWORD,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
628 STDMETHOD(DrawPrimitiveVB)(THIS_ D3DPRIMITIVETYPE,LPDIRECT3DVERTEXBUFFER,DWORD,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
629 STDMETHOD(DrawIndexedPrimitiveVB)(THIS_ D3DPRIMITIVETYPE,LPDIRECT3DVERTEXBUFFER,LPWORD,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
630 STDMETHOD(ComputeSphereVisibility)(THIS_ LPD3DVECTOR,LPD3DVALUE,DWORD,DWORD,LPDWORD) PURE;
Ritor1
parents:
diff changeset
631 STDMETHOD(GetTexture)(THIS_ DWORD,LPDIRECT3DTEXTURE2 *) PURE;
Ritor1
parents:
diff changeset
632 STDMETHOD(SetTexture)(THIS_ DWORD,LPDIRECT3DTEXTURE2) PURE;
Ritor1
parents:
diff changeset
633 STDMETHOD(GetTextureStageState)(THIS_ DWORD,D3DTEXTURESTAGESTATETYPE,LPDWORD) PURE;
Ritor1
parents:
diff changeset
634 STDMETHOD(SetTextureStageState)(THIS_ DWORD,D3DTEXTURESTAGESTATETYPE,DWORD) PURE;
Ritor1
parents:
diff changeset
635 STDMETHOD(ValidateDevice)(THIS_ LPDWORD) PURE;
Ritor1
parents:
diff changeset
636 };
Ritor1
parents:
diff changeset
637
Ritor1
parents:
diff changeset
638 typedef struct IDirect3DDevice3 *LPDIRECT3DDEVICE3;
Ritor1
parents:
diff changeset
639
Ritor1
parents:
diff changeset
640 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
641 #define IDirect3DDevice3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
642 #define IDirect3DDevice3_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
643 #define IDirect3DDevice3_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
644 #define IDirect3DDevice3_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
Ritor1
parents:
diff changeset
645 #define IDirect3DDevice3_GetStats(p,a) (p)->lpVtbl->GetStats(p,a)
Ritor1
parents:
diff changeset
646 #define IDirect3DDevice3_AddViewport(p,a) (p)->lpVtbl->AddViewport(p,a)
Ritor1
parents:
diff changeset
647 #define IDirect3DDevice3_DeleteViewport(p,a) (p)->lpVtbl->DeleteViewport(p,a)
Ritor1
parents:
diff changeset
648 #define IDirect3DDevice3_NextViewport(p,a,b,c) (p)->lpVtbl->NextViewport(p,a,b,c)
Ritor1
parents:
diff changeset
649 #define IDirect3DDevice3_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b)
Ritor1
parents:
diff changeset
650 #define IDirect3DDevice3_BeginScene(p) (p)->lpVtbl->BeginScene(p)
Ritor1
parents:
diff changeset
651 #define IDirect3DDevice3_EndScene(p) (p)->lpVtbl->EndScene(p)
Ritor1
parents:
diff changeset
652 #define IDirect3DDevice3_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
Ritor1
parents:
diff changeset
653 #define IDirect3DDevice3_SetCurrentViewport(p,a) (p)->lpVtbl->SetCurrentViewport(p,a)
Ritor1
parents:
diff changeset
654 #define IDirect3DDevice3_GetCurrentViewport(p,a) (p)->lpVtbl->GetCurrentViewport(p,a)
Ritor1
parents:
diff changeset
655 #define IDirect3DDevice3_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
Ritor1
parents:
diff changeset
656 #define IDirect3DDevice3_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a)
Ritor1
parents:
diff changeset
657 #define IDirect3DDevice3_Begin(p,a,b,c) (p)->lpVtbl->Begin(p,a,b,c)
Ritor1
parents:
diff changeset
658 #define IDirect3DDevice3_BeginIndexed(p,a,b,c,d,e) (p)->lpVtbl->BeginIndexed(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
659 #define IDirect3DDevice3_Vertex(p,a) (p)->lpVtbl->Vertex(p,a)
Ritor1
parents:
diff changeset
660 #define IDirect3DDevice3_Index(p,a) (p)->lpVtbl->Index(p,a)
Ritor1
parents:
diff changeset
661 #define IDirect3DDevice3_End(p,a) (p)->lpVtbl->End(p,a)
Ritor1
parents:
diff changeset
662 #define IDirect3DDevice3_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
Ritor1
parents:
diff changeset
663 #define IDirect3DDevice3_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
Ritor1
parents:
diff changeset
664 #define IDirect3DDevice3_GetLightState(p,a,b) (p)->lpVtbl->GetLightState(p,a,b)
Ritor1
parents:
diff changeset
665 #define IDirect3DDevice3_SetLightState(p,a,b) (p)->lpVtbl->SetLightState(p,a,b)
Ritor1
parents:
diff changeset
666 #define IDirect3DDevice3_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
Ritor1
parents:
diff changeset
667 #define IDirect3DDevice3_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
Ritor1
parents:
diff changeset
668 #define IDirect3DDevice3_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
Ritor1
parents:
diff changeset
669 #define IDirect3DDevice3_DrawPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitive(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
670 #define IDirect3DDevice3_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
671 #define IDirect3DDevice3_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
Ritor1
parents:
diff changeset
672 #define IDirect3DDevice3_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
Ritor1
parents:
diff changeset
673 #define IDirect3DDevice3_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveStrided(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
674 #define IDirect3DDevice3_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
675 #define IDirect3DDevice3_DrawPrimitiveVB(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveVB(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
676 #define IDirect3DDevice3_DrawIndexedPrimitiveVB(p,a,b,c,d,e) (p)->lpVtbl->DrawIndexedPrimitiveVB(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
677 #define IDirect3DDevice3_ComputeSphereVisibility(p,a,b,c,d,e) (p)->lpVtbl->ComputeSphereVisibility(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
678 #define IDirect3DDevice3_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
Ritor1
parents:
diff changeset
679 #define IDirect3DDevice3_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
Ritor1
parents:
diff changeset
680 #define IDirect3DDevice3_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
Ritor1
parents:
diff changeset
681 #define IDirect3DDevice3_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
Ritor1
parents:
diff changeset
682 #define IDirect3DDevice3_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
Ritor1
parents:
diff changeset
683 #else
Ritor1
parents:
diff changeset
684 #define IDirect3DDevice3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
685 #define IDirect3DDevice3_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
686 #define IDirect3DDevice3_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
687 #define IDirect3DDevice3_GetCaps(p,a,b) (p)->GetCaps(a,b)
Ritor1
parents:
diff changeset
688 #define IDirect3DDevice3_GetStats(p,a) (p)->GetStats(a)
Ritor1
parents:
diff changeset
689 #define IDirect3DDevice3_AddViewport(p,a) (p)->AddViewport(a)
Ritor1
parents:
diff changeset
690 #define IDirect3DDevice3_DeleteViewport(p,a) (p)->DeleteViewport(a)
Ritor1
parents:
diff changeset
691 #define IDirect3DDevice3_NextViewport(p,a,b,c) (p)->NextViewport(a,b,c)
Ritor1
parents:
diff changeset
692 #define IDirect3DDevice3_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b)
Ritor1
parents:
diff changeset
693 #define IDirect3DDevice3_BeginScene(p) (p)->BeginScene()
Ritor1
parents:
diff changeset
694 #define IDirect3DDevice3_EndScene(p) (p)->EndScene()
Ritor1
parents:
diff changeset
695 #define IDirect3DDevice3_GetDirect3D(p,a) (p)->GetDirect3D(a)
Ritor1
parents:
diff changeset
696 #define IDirect3DDevice3_SetCurrentViewport(p,a) (p)->SetCurrentViewport(a)
Ritor1
parents:
diff changeset
697 #define IDirect3DDevice3_GetCurrentViewport(p,a) (p)->GetCurrentViewport(a)
Ritor1
parents:
diff changeset
698 #define IDirect3DDevice3_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
Ritor1
parents:
diff changeset
699 #define IDirect3DDevice3_GetRenderTarget(p,a) (p)->GetRenderTarget(a)
Ritor1
parents:
diff changeset
700 #define IDirect3DDevice3_Begin(p,a,b,c) (p)->Begin(a,b,c)
Ritor1
parents:
diff changeset
701 #define IDirect3DDevice3_BeginIndexed(p,a,b,c,d,e) (p)->BeginIndexed(a,b,c,d,e)
Ritor1
parents:
diff changeset
702 #define IDirect3DDevice3_Vertex(p,a) (p)->Vertex(a)
Ritor1
parents:
diff changeset
703 #define IDirect3DDevice3_Index(p,a) (p)->Index(a)
Ritor1
parents:
diff changeset
704 #define IDirect3DDevice3_End(p,a) (p)->End(a)
Ritor1
parents:
diff changeset
705 #define IDirect3DDevice3_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
Ritor1
parents:
diff changeset
706 #define IDirect3DDevice3_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
Ritor1
parents:
diff changeset
707 #define IDirect3DDevice3_GetLightState(p,a,b) (p)->GetLightState(a,b)
Ritor1
parents:
diff changeset
708 #define IDirect3DDevice3_SetLightState(p,a,b) (p)->SetLightState(a,b)
Ritor1
parents:
diff changeset
709 #define IDirect3DDevice3_SetTransform(p,a,b) (p)->SetTransform(a,b)
Ritor1
parents:
diff changeset
710 #define IDirect3DDevice3_GetTransform(p,a,b) (p)->GetTransform(a,b)
Ritor1
parents:
diff changeset
711 #define IDirect3DDevice3_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
Ritor1
parents:
diff changeset
712 #define IDirect3DDevice3_DrawPrimitive(p,a,b,c,d,e) (p)->DrawPrimitive(a,b,c,d,e)
Ritor1
parents:
diff changeset
713 #define IDirect3DDevice3_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitive(a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
714 #define IDirect3DDevice3_SetClipStatus(p,a) (p)->SetClipStatus(a)
Ritor1
parents:
diff changeset
715 #define IDirect3DDevice3_GetClipStatus(p,a) (p)->GetClipStatus(a)
Ritor1
parents:
diff changeset
716 #define IDirect3DDevice3_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->DrawPrimitiveStrided(a,b,c,d,e)
Ritor1
parents:
diff changeset
717 #define IDirect3DDevice3_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitiveStrided(a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
718 #define IDirect3DDevice3_DrawPrimitiveVB(p,a,b,c,d,e) (p)->DrawPrimitiveVB(a,b,c,d,e)
Ritor1
parents:
diff changeset
719 #define IDirect3DDevice3_DrawIndexedPrimitiveVB(p,a,b,c,d,e) (p)->DrawIndexedPrimitiveVB(a,b,c,d,e)
Ritor1
parents:
diff changeset
720 #define IDirect3DDevice3_ComputeSphereVisibility(p,a,b,c,d,e) (p)->ComputeSphereVisibility(a,b,c,d,e)
Ritor1
parents:
diff changeset
721 #define IDirect3DDevice3_GetTexture(p,a,b) (p)->GetTexture(a,b)
Ritor1
parents:
diff changeset
722 #define IDirect3DDevice3_SetTexture(p,a,b) (p)->SetTexture(a,b)
Ritor1
parents:
diff changeset
723 #define IDirect3DDevice3_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
Ritor1
parents:
diff changeset
724 #define IDirect3DDevice3_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
Ritor1
parents:
diff changeset
725 #define IDirect3DDevice3_ValidateDevice(p,a) (p)->ValidateDevice(a)
Ritor1
parents:
diff changeset
726 #endif
Ritor1
parents:
diff changeset
727 #endif /* DIRECT3D_VERSION >= 0x0600 */
Ritor1
parents:
diff changeset
728
Ritor1
parents:
diff changeset
729 #if(DIRECT3D_VERSION >= 0x0700)
Ritor1
parents:
diff changeset
730 #undef INTERFACE
Ritor1
parents:
diff changeset
731 #define INTERFACE IDirect3DDevice7
Ritor1
parents:
diff changeset
732
Ritor1
parents:
diff changeset
733 DECLARE_INTERFACE_(IDirect3DDevice7, IUnknown)
Ritor1
parents:
diff changeset
734 {
Ritor1
parents:
diff changeset
735 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
736 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
737 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
738 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
739
Ritor1
parents:
diff changeset
740 /*** IDirect3DDevice7 methods ***/
Ritor1
parents:
diff changeset
741 STDMETHOD(GetCaps)(THIS_ LPD3DDEVICEDESC7) PURE;
Ritor1
parents:
diff changeset
742 STDMETHOD(EnumTextureFormats)(THIS_ LPD3DENUMPIXELFORMATSCALLBACK,LPVOID) PURE;
Ritor1
parents:
diff changeset
743 STDMETHOD(BeginScene)(THIS) PURE;
Ritor1
parents:
diff changeset
744 STDMETHOD(EndScene)(THIS) PURE;
Ritor1
parents:
diff changeset
745 STDMETHOD(GetDirect3D)(THIS_ LPDIRECT3D7*) PURE;
Ritor1
parents:
diff changeset
746 STDMETHOD(SetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE7,DWORD) PURE;
Ritor1
parents:
diff changeset
747 STDMETHOD(GetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE7 *) PURE;
Ritor1
parents:
diff changeset
748 STDMETHOD(Clear)(THIS_ DWORD,LPD3DRECT,DWORD,D3DCOLOR,D3DVALUE,DWORD) PURE;
Ritor1
parents:
diff changeset
749 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE;
Ritor1
parents:
diff changeset
750 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE;
Ritor1
parents:
diff changeset
751 STDMETHOD(SetViewport)(THIS_ LPD3DVIEWPORT7) PURE;
Ritor1
parents:
diff changeset
752 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE;
Ritor1
parents:
diff changeset
753 STDMETHOD(GetViewport)(THIS_ LPD3DVIEWPORT7) PURE;
Ritor1
parents:
diff changeset
754 STDMETHOD(SetMaterial)(THIS_ LPD3DMATERIAL7) PURE;
Ritor1
parents:
diff changeset
755 STDMETHOD(GetMaterial)(THIS_ LPD3DMATERIAL7) PURE;
Ritor1
parents:
diff changeset
756 STDMETHOD(SetLight)(THIS_ DWORD,LPD3DLIGHT7) PURE;
Ritor1
parents:
diff changeset
757 STDMETHOD(GetLight)(THIS_ DWORD,LPD3DLIGHT7) PURE;
Ritor1
parents:
diff changeset
758 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE,DWORD) PURE;
Ritor1
parents:
diff changeset
759 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE,LPDWORD) PURE;
Ritor1
parents:
diff changeset
760 STDMETHOD(BeginStateBlock)(THIS) PURE;
Ritor1
parents:
diff changeset
761 STDMETHOD(EndStateBlock)(THIS_ LPDWORD) PURE;
Ritor1
parents:
diff changeset
762 STDMETHOD(PreLoad)(THIS_ LPDIRECTDRAWSURFACE7) PURE;
Ritor1
parents:
diff changeset
763 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE,DWORD,LPVOID,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
764 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE,DWORD,LPVOID,DWORD,LPWORD,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
765 STDMETHOD(SetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE;
Ritor1
parents:
diff changeset
766 STDMETHOD(GetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE;
Ritor1
parents:
diff changeset
767 STDMETHOD(DrawPrimitiveStrided)(THIS_ D3DPRIMITIVETYPE,DWORD,LPD3DDRAWPRIMITIVESTRIDEDDATA,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
768 STDMETHOD(DrawIndexedPrimitiveStrided)(THIS_ D3DPRIMITIVETYPE,DWORD,LPD3DDRAWPRIMITIVESTRIDEDDATA,DWORD,LPWORD,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
769 STDMETHOD(DrawPrimitiveVB)(THIS_ D3DPRIMITIVETYPE,LPDIRECT3DVERTEXBUFFER7,DWORD,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
770 STDMETHOD(DrawIndexedPrimitiveVB)(THIS_ D3DPRIMITIVETYPE,LPDIRECT3DVERTEXBUFFER7,DWORD,DWORD,LPWORD,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
771 STDMETHOD(ComputeSphereVisibility)(THIS_ LPD3DVECTOR,LPD3DVALUE,DWORD,DWORD,LPDWORD) PURE;
Ritor1
parents:
diff changeset
772 STDMETHOD(GetTexture)(THIS_ DWORD,LPDIRECTDRAWSURFACE7 *) PURE;
Ritor1
parents:
diff changeset
773 STDMETHOD(SetTexture)(THIS_ DWORD,LPDIRECTDRAWSURFACE7) PURE;
Ritor1
parents:
diff changeset
774 STDMETHOD(GetTextureStageState)(THIS_ DWORD,D3DTEXTURESTAGESTATETYPE,LPDWORD) PURE;
Ritor1
parents:
diff changeset
775 STDMETHOD(SetTextureStageState)(THIS_ DWORD,D3DTEXTURESTAGESTATETYPE,DWORD) PURE;
Ritor1
parents:
diff changeset
776 STDMETHOD(ValidateDevice)(THIS_ LPDWORD) PURE;
Ritor1
parents:
diff changeset
777 STDMETHOD(ApplyStateBlock)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
778 STDMETHOD(CaptureStateBlock)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
779 STDMETHOD(DeleteStateBlock)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
780 STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE,LPDWORD) PURE;
Ritor1
parents:
diff changeset
781 STDMETHOD(Load)(THIS_ LPDIRECTDRAWSURFACE7,LPPOINT,LPDIRECTDRAWSURFACE7,LPRECT,DWORD) PURE;
Ritor1
parents:
diff changeset
782 STDMETHOD(LightEnable)(THIS_ DWORD,BOOL) PURE;
Ritor1
parents:
diff changeset
783 STDMETHOD(GetLightEnable)(THIS_ DWORD,BOOL*) PURE;
Ritor1
parents:
diff changeset
784 STDMETHOD(SetClipPlane)(THIS_ DWORD,D3DVALUE*) PURE;
Ritor1
parents:
diff changeset
785 STDMETHOD(GetClipPlane)(THIS_ DWORD,D3DVALUE*) PURE;
Ritor1
parents:
diff changeset
786 STDMETHOD(GetInfo)(THIS_ DWORD,LPVOID,DWORD) PURE;
Ritor1
parents:
diff changeset
787 };
Ritor1
parents:
diff changeset
788
Ritor1
parents:
diff changeset
789 typedef struct IDirect3DDevice7 *LPDIRECT3DDEVICE7;
Ritor1
parents:
diff changeset
790
Ritor1
parents:
diff changeset
791 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
792 #define IDirect3DDevice7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
793 #define IDirect3DDevice7_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
794 #define IDirect3DDevice7_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
795 #define IDirect3DDevice7_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
Ritor1
parents:
diff changeset
796 #define IDirect3DDevice7_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b)
Ritor1
parents:
diff changeset
797 #define IDirect3DDevice7_BeginScene(p) (p)->lpVtbl->BeginScene(p)
Ritor1
parents:
diff changeset
798 #define IDirect3DDevice7_EndScene(p) (p)->lpVtbl->EndScene(p)
Ritor1
parents:
diff changeset
799 #define IDirect3DDevice7_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
Ritor1
parents:
diff changeset
800 #define IDirect3DDevice7_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
Ritor1
parents:
diff changeset
801 #define IDirect3DDevice7_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a)
Ritor1
parents:
diff changeset
802 #define IDirect3DDevice7_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
Ritor1
parents:
diff changeset
803 #define IDirect3DDevice7_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
Ritor1
parents:
diff changeset
804 #define IDirect3DDevice7_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
Ritor1
parents:
diff changeset
805 #define IDirect3DDevice7_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
Ritor1
parents:
diff changeset
806 #define IDirect3DDevice7_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
Ritor1
parents:
diff changeset
807 #define IDirect3DDevice7_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
Ritor1
parents:
diff changeset
808 #define IDirect3DDevice7_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
Ritor1
parents:
diff changeset
809 #define IDirect3DDevice7_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
Ritor1
parents:
diff changeset
810 #define IDirect3DDevice7_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
Ritor1
parents:
diff changeset
811 #define IDirect3DDevice7_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
Ritor1
parents:
diff changeset
812 #define IDirect3DDevice7_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
Ritor1
parents:
diff changeset
813 #define IDirect3DDevice7_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
Ritor1
parents:
diff changeset
814 #define IDirect3DDevice7_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
Ritor1
parents:
diff changeset
815 #define IDirect3DDevice7_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
Ritor1
parents:
diff changeset
816 #define IDirect3DDevice7_PreLoad(p,a) (p)->lpVtbl->PreLoad(p,a)
Ritor1
parents:
diff changeset
817 #define IDirect3DDevice7_DrawPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitive(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
818 #define IDirect3DDevice7_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
819 #define IDirect3DDevice7_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
Ritor1
parents:
diff changeset
820 #define IDirect3DDevice7_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
Ritor1
parents:
diff changeset
821 #define IDirect3DDevice7_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveStrided(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
822 #define IDirect3DDevice7_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
823 #define IDirect3DDevice7_DrawPrimitiveVB(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveVB(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
824 #define IDirect3DDevice7_DrawIndexedPrimitiveVB(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitiveVB(p,a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
825 #define IDirect3DDevice7_ComputeSphereVisibility(p,a,b,c,d,e) (p)->lpVtbl->ComputeSphereVisibility(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
826 #define IDirect3DDevice7_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
Ritor1
parents:
diff changeset
827 #define IDirect3DDevice7_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
Ritor1
parents:
diff changeset
828 #define IDirect3DDevice7_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
Ritor1
parents:
diff changeset
829 #define IDirect3DDevice7_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
Ritor1
parents:
diff changeset
830 #define IDirect3DDevice7_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
Ritor1
parents:
diff changeset
831 #define IDirect3DDevice7_ApplyStateBlock(p,a) (p)->lpVtbl->ApplyStateBlock(p,a)
Ritor1
parents:
diff changeset
832 #define IDirect3DDevice7_CaptureStateBlock(p,a) (p)->lpVtbl->CaptureStateBlock(p,a)
Ritor1
parents:
diff changeset
833 #define IDirect3DDevice7_DeleteStateBlock(p,a) (p)->lpVtbl->DeleteStateBlock(p,a)
Ritor1
parents:
diff changeset
834 #define IDirect3DDevice7_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)
Ritor1
parents:
diff changeset
835 #define IDirect3DDevice7_Load(p,a,b,c,d,e) (p)->lpVtbl->Load(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
836 #define IDirect3DDevice7_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)
Ritor1
parents:
diff changeset
837 #define IDirect3DDevice7_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
Ritor1
parents:
diff changeset
838 #define IDirect3DDevice7_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
Ritor1
parents:
diff changeset
839 #define IDirect3DDevice7_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
Ritor1
parents:
diff changeset
840 #define IDirect3DDevice7_GetInfo(p,a,b,c) (p)->lpVtbl->GetInfo(p,a,b,c)
Ritor1
parents:
diff changeset
841 #else
Ritor1
parents:
diff changeset
842 #define IDirect3DDevice7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
843 #define IDirect3DDevice7_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
844 #define IDirect3DDevice7_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
845 #define IDirect3DDevice7_GetCaps(p,a) (p)->GetCaps(a)
Ritor1
parents:
diff changeset
846 #define IDirect3DDevice7_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b)
Ritor1
parents:
diff changeset
847 #define IDirect3DDevice7_BeginScene(p) (p)->BeginScene()
Ritor1
parents:
diff changeset
848 #define IDirect3DDevice7_EndScene(p) (p)->EndScene()
Ritor1
parents:
diff changeset
849 #define IDirect3DDevice7_GetDirect3D(p,a) (p)->GetDirect3D(a)
Ritor1
parents:
diff changeset
850 #define IDirect3DDevice7_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
Ritor1
parents:
diff changeset
851 #define IDirect3DDevice7_GetRenderTarget(p,a) (p)->GetRenderTarget(a)
Ritor1
parents:
diff changeset
852 #define IDirect3DDevice7_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f)
Ritor1
parents:
diff changeset
853 #define IDirect3DDevice7_SetTransform(p,a,b) (p)->SetTransform(a,b)
Ritor1
parents:
diff changeset
854 #define IDirect3DDevice7_GetTransform(p,a,b) (p)->GetTransform(a,b)
Ritor1
parents:
diff changeset
855 #define IDirect3DDevice7_SetViewport(p,a) (p)->SetViewport(a)
Ritor1
parents:
diff changeset
856 #define IDirect3DDevice7_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
Ritor1
parents:
diff changeset
857 #define IDirect3DDevice7_GetViewport(p,a) (p)->GetViewport(a)
Ritor1
parents:
diff changeset
858 #define IDirect3DDevice7_SetMaterial(p,a) (p)->SetMaterial(a)
Ritor1
parents:
diff changeset
859 #define IDirect3DDevice7_GetMaterial(p,a) (p)->GetMaterial(a)
Ritor1
parents:
diff changeset
860 #define IDirect3DDevice7_SetLight(p,a,b) (p)->SetLight(a,b)
Ritor1
parents:
diff changeset
861 #define IDirect3DDevice7_GetLight(p,a,b) (p)->GetLight(a,b)
Ritor1
parents:
diff changeset
862 #define IDirect3DDevice7_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
Ritor1
parents:
diff changeset
863 #define IDirect3DDevice7_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
Ritor1
parents:
diff changeset
864 #define IDirect3DDevice7_BeginStateBlock(p) (p)->BeginStateBlock()
Ritor1
parents:
diff changeset
865 #define IDirect3DDevice7_EndStateBlock(p,a) (p)->EndStateBlock(a)
Ritor1
parents:
diff changeset
866 #define IDirect3DDevice7_PreLoad(p,a) (p)->PreLoad(a)
Ritor1
parents:
diff changeset
867 #define IDirect3DDevice7_DrawPrimitive(p,a,b,c,d,e) (p)->DrawPrimitive(a,b,c,d,e)
Ritor1
parents:
diff changeset
868 #define IDirect3DDevice7_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitive(a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
869 #define IDirect3DDevice7_SetClipStatus(p,a) (p)->SetClipStatus(a)
Ritor1
parents:
diff changeset
870 #define IDirect3DDevice7_GetClipStatus(p,a) (p)->GetClipStatus(a)
Ritor1
parents:
diff changeset
871 #define IDirect3DDevice7_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->DrawPrimitiveStrided(a,b,c,d,e)
Ritor1
parents:
diff changeset
872 #define IDirect3DDevice7_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitiveStrided(a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
873 #define IDirect3DDevice7_DrawPrimitiveVB(p,a,b,c,d,e) (p)->DrawPrimitiveVB(a,b,c,d,e)
Ritor1
parents:
diff changeset
874 #define IDirect3DDevice7_DrawIndexedPrimitiveVB(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitiveVB(a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
875 #define IDirect3DDevice7_ComputeSphereVisibility(p,a,b,c,d,e) (p)->ComputeSphereVisibility(a,b,c,d,e)
Ritor1
parents:
diff changeset
876 #define IDirect3DDevice7_GetTexture(p,a,b) (p)->GetTexture(a,b)
Ritor1
parents:
diff changeset
877 #define IDirect3DDevice7_SetTexture(p,a,b) (p)->SetTexture(a,b)
Ritor1
parents:
diff changeset
878 #define IDirect3DDevice7_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
Ritor1
parents:
diff changeset
879 #define IDirect3DDevice7_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
Ritor1
parents:
diff changeset
880 #define IDirect3DDevice7_ValidateDevice(p,a) (p)->ValidateDevice(a)
Ritor1
parents:
diff changeset
881 #define IDirect3DDevice7_ApplyStateBlock(p,a) (p)->ApplyStateBlock(a)
Ritor1
parents:
diff changeset
882 #define IDirect3DDevice7_CaptureStateBlock(p,a) (p)->CaptureStateBlock(a)
Ritor1
parents:
diff changeset
883 #define IDirect3DDevice7_DeleteStateBlock(p,a) (p)->DeleteStateBlock(a)
Ritor1
parents:
diff changeset
884 #define IDirect3DDevice7_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b)
Ritor1
parents:
diff changeset
885 #define IDirect3DDevice7_Load(p,a,b,c,d,e) (p)->Load(a,b,c,d,e)
Ritor1
parents:
diff changeset
886 #define IDirect3DDevice7_LightEnable(p,a,b) (p)->LightEnable(a,b)
Ritor1
parents:
diff changeset
887 #define IDirect3DDevice7_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b)
Ritor1
parents:
diff changeset
888 #define IDirect3DDevice7_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b)
Ritor1
parents:
diff changeset
889 #define IDirect3DDevice7_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b)
Ritor1
parents:
diff changeset
890 #define IDirect3DDevice7_GetInfo(p,a,b,c) (p)->GetInfo(a,b,c)
Ritor1
parents:
diff changeset
891 #endif
Ritor1
parents:
diff changeset
892 #endif /* DIRECT3D_VERSION >= 0x0700 */
Ritor1
parents:
diff changeset
893
Ritor1
parents:
diff changeset
894 /*
Ritor1
parents:
diff changeset
895 * Execute Buffer interface
Ritor1
parents:
diff changeset
896 */
Ritor1
parents:
diff changeset
897 #undef INTERFACE
Ritor1
parents:
diff changeset
898 #define INTERFACE IDirect3DExecuteBuffer
Ritor1
parents:
diff changeset
899
Ritor1
parents:
diff changeset
900 DECLARE_INTERFACE_(IDirect3DExecuteBuffer, IUnknown)
Ritor1
parents:
diff changeset
901 {
Ritor1
parents:
diff changeset
902 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
903 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
904 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
905 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
906
Ritor1
parents:
diff changeset
907 /*** IDirect3DExecuteBuffer methods ***/
Ritor1
parents:
diff changeset
908 STDMETHOD(Initialize)(THIS_ LPDIRECT3DDEVICE,LPD3DEXECUTEBUFFERDESC) PURE;
Ritor1
parents:
diff changeset
909 STDMETHOD(Lock)(THIS_ LPD3DEXECUTEBUFFERDESC) PURE;
Ritor1
parents:
diff changeset
910 STDMETHOD(Unlock)(THIS) PURE;
Ritor1
parents:
diff changeset
911 STDMETHOD(SetExecuteData)(THIS_ LPD3DEXECUTEDATA) PURE;
Ritor1
parents:
diff changeset
912 STDMETHOD(GetExecuteData)(THIS_ LPD3DEXECUTEDATA) PURE;
Ritor1
parents:
diff changeset
913 STDMETHOD(Validate)(THIS_ LPDWORD,LPD3DVALIDATECALLBACK,LPVOID,DWORD) PURE;
Ritor1
parents:
diff changeset
914 STDMETHOD(Optimize)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
915 };
Ritor1
parents:
diff changeset
916
Ritor1
parents:
diff changeset
917 typedef struct IDirect3DExecuteBuffer *LPDIRECT3DEXECUTEBUFFER;
Ritor1
parents:
diff changeset
918
Ritor1
parents:
diff changeset
919 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
920 #define IDirect3DExecuteBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
921 #define IDirect3DExecuteBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
922 #define IDirect3DExecuteBuffer_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
923 #define IDirect3DExecuteBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
Ritor1
parents:
diff changeset
924 #define IDirect3DExecuteBuffer_Lock(p,a) (p)->lpVtbl->Lock(p,a)
Ritor1
parents:
diff changeset
925 #define IDirect3DExecuteBuffer_Unlock(p) (p)->lpVtbl->Unlock(p)
Ritor1
parents:
diff changeset
926 #define IDirect3DExecuteBuffer_SetExecuteData(p,a) (p)->lpVtbl->SetExecuteData(p,a)
Ritor1
parents:
diff changeset
927 #define IDirect3DExecuteBuffer_GetExecuteData(p,a) (p)->lpVtbl->GetExecuteData(p,a)
Ritor1
parents:
diff changeset
928 #define IDirect3DExecuteBuffer_Validate(p,a,b,c,d) (p)->lpVtbl->Validate(p,a,b,c,d)
Ritor1
parents:
diff changeset
929 #define IDirect3DExecuteBuffer_Optimize(p,a) (p)->lpVtbl->Optimize(p,a)
Ritor1
parents:
diff changeset
930 #else
Ritor1
parents:
diff changeset
931 #define IDirect3DExecuteBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
932 #define IDirect3DExecuteBuffer_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
933 #define IDirect3DExecuteBuffer_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
934 #define IDirect3DExecuteBuffer_Initialize(p,a,b) (p)->Initialize(a,b)
Ritor1
parents:
diff changeset
935 #define IDirect3DExecuteBuffer_Lock(p,a) (p)->Lock(a)
Ritor1
parents:
diff changeset
936 #define IDirect3DExecuteBuffer_Unlock(p) (p)->Unlock()
Ritor1
parents:
diff changeset
937 #define IDirect3DExecuteBuffer_SetExecuteData(p,a) (p)->SetExecuteData(a)
Ritor1
parents:
diff changeset
938 #define IDirect3DExecuteBuffer_GetExecuteData(p,a) (p)->GetExecuteData(a)
Ritor1
parents:
diff changeset
939 #define IDirect3DExecuteBuffer_Validate(p,a,b,c,d) (p)->Validate(a,b,c,d)
Ritor1
parents:
diff changeset
940 #define IDirect3DExecuteBuffer_Optimize(p,a) (p)->Optimize(a)
Ritor1
parents:
diff changeset
941 #endif
Ritor1
parents:
diff changeset
942
Ritor1
parents:
diff changeset
943 /*
Ritor1
parents:
diff changeset
944 * Light interfaces
Ritor1
parents:
diff changeset
945 */
Ritor1
parents:
diff changeset
946 #undef INTERFACE
Ritor1
parents:
diff changeset
947 #define INTERFACE IDirect3DLight
Ritor1
parents:
diff changeset
948
Ritor1
parents:
diff changeset
949 DECLARE_INTERFACE_(IDirect3DLight, IUnknown)
Ritor1
parents:
diff changeset
950 {
Ritor1
parents:
diff changeset
951 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
952 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
953 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
954 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
955
Ritor1
parents:
diff changeset
956 /*** IDirect3DLight methods ***/
Ritor1
parents:
diff changeset
957 STDMETHOD(Initialize)(THIS_ LPDIRECT3D) PURE;
Ritor1
parents:
diff changeset
958 STDMETHOD(SetLight)(THIS_ LPD3DLIGHT) PURE;
Ritor1
parents:
diff changeset
959 STDMETHOD(GetLight)(THIS_ LPD3DLIGHT) PURE;
Ritor1
parents:
diff changeset
960 };
Ritor1
parents:
diff changeset
961
Ritor1
parents:
diff changeset
962 typedef struct IDirect3DLight *LPDIRECT3DLIGHT;
Ritor1
parents:
diff changeset
963
Ritor1
parents:
diff changeset
964 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
965 #define IDirect3DLight_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
966 #define IDirect3DLight_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
967 #define IDirect3DLight_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
968 #define IDirect3DLight_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
Ritor1
parents:
diff changeset
969 #define IDirect3DLight_SetLight(p,a) (p)->lpVtbl->SetLight(p,a)
Ritor1
parents:
diff changeset
970 #define IDirect3DLight_GetLight(p,a) (p)->lpVtbl->GetLight(p,a)
Ritor1
parents:
diff changeset
971 #else
Ritor1
parents:
diff changeset
972 #define IDirect3DLight_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
973 #define IDirect3DLight_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
974 #define IDirect3DLight_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
975 #define IDirect3DLight_Initialize(p,a) (p)->Initialize(a)
Ritor1
parents:
diff changeset
976 #define IDirect3DLight_SetLight(p,a) (p)->SetLight(a)
Ritor1
parents:
diff changeset
977 #define IDirect3DLight_GetLight(p,a) (p)->GetLight(a)
Ritor1
parents:
diff changeset
978 #endif
Ritor1
parents:
diff changeset
979
Ritor1
parents:
diff changeset
980 /*
Ritor1
parents:
diff changeset
981 * Material interfaces
Ritor1
parents:
diff changeset
982 */
Ritor1
parents:
diff changeset
983 #undef INTERFACE
Ritor1
parents:
diff changeset
984 #define INTERFACE IDirect3DMaterial
Ritor1
parents:
diff changeset
985
Ritor1
parents:
diff changeset
986 DECLARE_INTERFACE_(IDirect3DMaterial, IUnknown)
Ritor1
parents:
diff changeset
987 {
Ritor1
parents:
diff changeset
988 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
989 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
990 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
991 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
992
Ritor1
parents:
diff changeset
993 /*** IDirect3DMaterial methods ***/
Ritor1
parents:
diff changeset
994 STDMETHOD(Initialize)(THIS_ LPDIRECT3D) PURE;
Ritor1
parents:
diff changeset
995 STDMETHOD(SetMaterial)(THIS_ LPD3DMATERIAL) PURE;
Ritor1
parents:
diff changeset
996 STDMETHOD(GetMaterial)(THIS_ LPD3DMATERIAL) PURE;
Ritor1
parents:
diff changeset
997 STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE,LPD3DMATERIALHANDLE) PURE;
Ritor1
parents:
diff changeset
998 STDMETHOD(Reserve)(THIS) PURE;
Ritor1
parents:
diff changeset
999 STDMETHOD(Unreserve)(THIS) PURE;
Ritor1
parents:
diff changeset
1000 };
Ritor1
parents:
diff changeset
1001
Ritor1
parents:
diff changeset
1002 typedef struct IDirect3DMaterial *LPDIRECT3DMATERIAL;
Ritor1
parents:
diff changeset
1003
Ritor1
parents:
diff changeset
1004 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
1005 #define IDirect3DMaterial_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
1006 #define IDirect3DMaterial_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
1007 #define IDirect3DMaterial_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
1008 #define IDirect3DMaterial_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
Ritor1
parents:
diff changeset
1009 #define IDirect3DMaterial_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
Ritor1
parents:
diff changeset
1010 #define IDirect3DMaterial_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
Ritor1
parents:
diff changeset
1011 #define IDirect3DMaterial_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
Ritor1
parents:
diff changeset
1012 #define IDirect3DMaterial_Reserve(p) (p)->lpVtbl->Reserve(p)
Ritor1
parents:
diff changeset
1013 #define IDirect3DMaterial_Unreserve(p) (p)->lpVtbl->Unreserve(p)
Ritor1
parents:
diff changeset
1014 #else
Ritor1
parents:
diff changeset
1015 #define IDirect3DMaterial_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
1016 #define IDirect3DMaterial_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
1017 #define IDirect3DMaterial_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
1018 #define IDirect3DMaterial_Initialize(p,a) (p)->Initialize(a)
Ritor1
parents:
diff changeset
1019 #define IDirect3DMaterial_SetMaterial(p,a) (p)->SetMaterial(a)
Ritor1
parents:
diff changeset
1020 #define IDirect3DMaterial_GetMaterial(p,a) (p)->GetMaterial(a)
Ritor1
parents:
diff changeset
1021 #define IDirect3DMaterial_GetHandle(p,a,b) (p)->GetHandle(a,b)
Ritor1
parents:
diff changeset
1022 #define IDirect3DMaterial_Reserve(p) (p)->Reserve()
Ritor1
parents:
diff changeset
1023 #define IDirect3DMaterial_Unreserve(p) (p)->Unreserve()
Ritor1
parents:
diff changeset
1024 #endif
Ritor1
parents:
diff changeset
1025
Ritor1
parents:
diff changeset
1026 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
1027 #undef INTERFACE
Ritor1
parents:
diff changeset
1028 #define INTERFACE IDirect3DMaterial2
Ritor1
parents:
diff changeset
1029
Ritor1
parents:
diff changeset
1030 DECLARE_INTERFACE_(IDirect3DMaterial2, IUnknown)
Ritor1
parents:
diff changeset
1031 {
Ritor1
parents:
diff changeset
1032 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
1033 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
1034 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
1035 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
1036
Ritor1
parents:
diff changeset
1037 /*** IDirect3DMaterial2 methods ***/
Ritor1
parents:
diff changeset
1038 STDMETHOD(SetMaterial)(THIS_ LPD3DMATERIAL) PURE;
Ritor1
parents:
diff changeset
1039 STDMETHOD(GetMaterial)(THIS_ LPD3DMATERIAL) PURE;
Ritor1
parents:
diff changeset
1040 STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE2,LPD3DMATERIALHANDLE) PURE;
Ritor1
parents:
diff changeset
1041 };
Ritor1
parents:
diff changeset
1042
Ritor1
parents:
diff changeset
1043 typedef struct IDirect3DMaterial2 *LPDIRECT3DMATERIAL2;
Ritor1
parents:
diff changeset
1044
Ritor1
parents:
diff changeset
1045 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
1046 #define IDirect3DMaterial2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
1047 #define IDirect3DMaterial2_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
1048 #define IDirect3DMaterial2_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
1049 #define IDirect3DMaterial2_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
Ritor1
parents:
diff changeset
1050 #define IDirect3DMaterial2_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
Ritor1
parents:
diff changeset
1051 #define IDirect3DMaterial2_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
Ritor1
parents:
diff changeset
1052 #else
Ritor1
parents:
diff changeset
1053 #define IDirect3DMaterial2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
1054 #define IDirect3DMaterial2_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
1055 #define IDirect3DMaterial2_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
1056 #define IDirect3DMaterial2_SetMaterial(p,a) (p)->SetMaterial(a)
Ritor1
parents:
diff changeset
1057 #define IDirect3DMaterial2_GetMaterial(p,a) (p)->GetMaterial(a)
Ritor1
parents:
diff changeset
1058 #define IDirect3DMaterial2_GetHandle(p,a,b) (p)->GetHandle(a,b)
Ritor1
parents:
diff changeset
1059 #endif
Ritor1
parents:
diff changeset
1060 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
1061
Ritor1
parents:
diff changeset
1062 #if(DIRECT3D_VERSION >= 0x0600)
Ritor1
parents:
diff changeset
1063 #undef INTERFACE
Ritor1
parents:
diff changeset
1064 #define INTERFACE IDirect3DMaterial3
Ritor1
parents:
diff changeset
1065
Ritor1
parents:
diff changeset
1066 DECLARE_INTERFACE_(IDirect3DMaterial3, IUnknown)
Ritor1
parents:
diff changeset
1067 {
Ritor1
parents:
diff changeset
1068 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
1069 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
1070 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
1071 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
1072
Ritor1
parents:
diff changeset
1073 /*** IDirect3DMaterial3 methods ***/
Ritor1
parents:
diff changeset
1074 STDMETHOD(SetMaterial)(THIS_ LPD3DMATERIAL) PURE;
Ritor1
parents:
diff changeset
1075 STDMETHOD(GetMaterial)(THIS_ LPD3DMATERIAL) PURE;
Ritor1
parents:
diff changeset
1076 STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE3,LPD3DMATERIALHANDLE) PURE;
Ritor1
parents:
diff changeset
1077 };
Ritor1
parents:
diff changeset
1078
Ritor1
parents:
diff changeset
1079 typedef struct IDirect3DMaterial3 *LPDIRECT3DMATERIAL3;
Ritor1
parents:
diff changeset
1080
Ritor1
parents:
diff changeset
1081 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
1082 #define IDirect3DMaterial3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
1083 #define IDirect3DMaterial3_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
1084 #define IDirect3DMaterial3_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
1085 #define IDirect3DMaterial3_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
Ritor1
parents:
diff changeset
1086 #define IDirect3DMaterial3_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
Ritor1
parents:
diff changeset
1087 #define IDirect3DMaterial3_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
Ritor1
parents:
diff changeset
1088 #else
Ritor1
parents:
diff changeset
1089 #define IDirect3DMaterial3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
1090 #define IDirect3DMaterial3_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
1091 #define IDirect3DMaterial3_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
1092 #define IDirect3DMaterial3_SetMaterial(p,a) (p)->SetMaterial(a)
Ritor1
parents:
diff changeset
1093 #define IDirect3DMaterial3_GetMaterial(p,a) (p)->GetMaterial(a)
Ritor1
parents:
diff changeset
1094 #define IDirect3DMaterial3_GetHandle(p,a,b) (p)->GetHandle(a,b)
Ritor1
parents:
diff changeset
1095 #endif
Ritor1
parents:
diff changeset
1096 #endif /* DIRECT3D_VERSION >= 0x0600 */
Ritor1
parents:
diff changeset
1097
Ritor1
parents:
diff changeset
1098 /*
Ritor1
parents:
diff changeset
1099 * Texture interfaces
Ritor1
parents:
diff changeset
1100 */
Ritor1
parents:
diff changeset
1101 #undef INTERFACE
Ritor1
parents:
diff changeset
1102 #define INTERFACE IDirect3DTexture
Ritor1
parents:
diff changeset
1103
Ritor1
parents:
diff changeset
1104 DECLARE_INTERFACE_(IDirect3DTexture, IUnknown)
Ritor1
parents:
diff changeset
1105 {
Ritor1
parents:
diff changeset
1106 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
1107 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
1108 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
1109 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
1110
Ritor1
parents:
diff changeset
1111 /*** IDirect3DTexture methods ***/
Ritor1
parents:
diff changeset
1112 STDMETHOD(Initialize)(THIS_ LPDIRECT3DDEVICE,LPDIRECTDRAWSURFACE) PURE;
Ritor1
parents:
diff changeset
1113 STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE,LPD3DTEXTUREHANDLE) PURE;
Ritor1
parents:
diff changeset
1114 STDMETHOD(PaletteChanged)(THIS_ DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
1115 STDMETHOD(Load)(THIS_ LPDIRECT3DTEXTURE) PURE;
Ritor1
parents:
diff changeset
1116 STDMETHOD(Unload)(THIS) PURE;
Ritor1
parents:
diff changeset
1117 };
Ritor1
parents:
diff changeset
1118
Ritor1
parents:
diff changeset
1119 typedef struct IDirect3DTexture *LPDIRECT3DTEXTURE;
Ritor1
parents:
diff changeset
1120
Ritor1
parents:
diff changeset
1121 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
1122 #define IDirect3DTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
1123 #define IDirect3DTexture_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
1124 #define IDirect3DTexture_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
1125 #define IDirect3DTexture_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
Ritor1
parents:
diff changeset
1126 #define IDirect3DTexture_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
Ritor1
parents:
diff changeset
1127 #define IDirect3DTexture_PaletteChanged(p,a,b) (p)->lpVtbl->PaletteChanged(p,a,b)
Ritor1
parents:
diff changeset
1128 #define IDirect3DTexture_Load(p,a) (p)->lpVtbl->Load(p,a)
Ritor1
parents:
diff changeset
1129 #define IDirect3DTexture_Unload(p) (p)->lpVtbl->Unload(p)
Ritor1
parents:
diff changeset
1130 #else
Ritor1
parents:
diff changeset
1131 #define IDirect3DTexture_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
1132 #define IDirect3DTexture_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
1133 #define IDirect3DTexture_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
1134 #define IDirect3DTexture_Initialize(p,a,b) (p)->Initialize(a,b)
Ritor1
parents:
diff changeset
1135 #define IDirect3DTexture_GetHandle(p,a,b) (p)->GetHandle(a,b)
Ritor1
parents:
diff changeset
1136 #define IDirect3DTexture_PaletteChanged(p,a,b) (p)->PaletteChanged(a,b)
Ritor1
parents:
diff changeset
1137 #define IDirect3DTexture_Load(p,a) (p)->Load(a)
Ritor1
parents:
diff changeset
1138 #define IDirect3DTexture_Unload(p) (p)->Unload()
Ritor1
parents:
diff changeset
1139 #endif
Ritor1
parents:
diff changeset
1140
Ritor1
parents:
diff changeset
1141 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
1142 #undef INTERFACE
Ritor1
parents:
diff changeset
1143 #define INTERFACE IDirect3DTexture2
Ritor1
parents:
diff changeset
1144
Ritor1
parents:
diff changeset
1145 DECLARE_INTERFACE_(IDirect3DTexture2, IUnknown)
Ritor1
parents:
diff changeset
1146 {
Ritor1
parents:
diff changeset
1147 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
1148 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
1149 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
1150 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
1151
Ritor1
parents:
diff changeset
1152 /*** IDirect3DTexture2 methods ***/
Ritor1
parents:
diff changeset
1153 STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE2,LPD3DTEXTUREHANDLE) PURE;
Ritor1
parents:
diff changeset
1154 STDMETHOD(PaletteChanged)(THIS_ DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
1155 STDMETHOD(Load)(THIS_ LPDIRECT3DTEXTURE2) PURE;
Ritor1
parents:
diff changeset
1156 };
Ritor1
parents:
diff changeset
1157
Ritor1
parents:
diff changeset
1158 typedef struct IDirect3DTexture2 *LPDIRECT3DTEXTURE2;
Ritor1
parents:
diff changeset
1159
Ritor1
parents:
diff changeset
1160 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
1161 #define IDirect3DTexture2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
1162 #define IDirect3DTexture2_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
1163 #define IDirect3DTexture2_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
1164 #define IDirect3DTexture2_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
Ritor1
parents:
diff changeset
1165 #define IDirect3DTexture2_PaletteChanged(p,a,b) (p)->lpVtbl->PaletteChanged(p,a,b)
Ritor1
parents:
diff changeset
1166 #define IDirect3DTexture2_Load(p,a) (p)->lpVtbl->Load(p,a)
Ritor1
parents:
diff changeset
1167 #else
Ritor1
parents:
diff changeset
1168 #define IDirect3DTexture2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
1169 #define IDirect3DTexture2_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
1170 #define IDirect3DTexture2_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
1171 #define IDirect3DTexture2_GetHandle(p,a,b) (p)->GetHandle(a,b)
Ritor1
parents:
diff changeset
1172 #define IDirect3DTexture2_PaletteChanged(p,a,b) (p)->PaletteChanged(a,b)
Ritor1
parents:
diff changeset
1173 #define IDirect3DTexture2_Load(p,a) (p)->Load(a)
Ritor1
parents:
diff changeset
1174 #endif
Ritor1
parents:
diff changeset
1175 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
1176
Ritor1
parents:
diff changeset
1177 /*
Ritor1
parents:
diff changeset
1178 * OldViewport interfaces
Ritor1
parents:
diff changeset
1179 */
Ritor1
parents:
diff changeset
1180 #undef INTERFACE
Ritor1
parents:
diff changeset
1181 #define INTERFACE IDirect3DViewport
Ritor1
parents:
diff changeset
1182
Ritor1
parents:
diff changeset
1183 DECLARE_INTERFACE_(IDirect3DViewport, IUnknown)
Ritor1
parents:
diff changeset
1184 {
Ritor1
parents:
diff changeset
1185 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
1186 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
1187 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
1188 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
1189
Ritor1
parents:
diff changeset
1190 /*** IDirect3DViewport methods ***/
Ritor1
parents:
diff changeset
1191 STDMETHOD(Initialize)(THIS_ LPDIRECT3D) PURE;
Ritor1
parents:
diff changeset
1192 STDMETHOD(GetViewport)(THIS_ LPD3DVIEWPORT) PURE;
Ritor1
parents:
diff changeset
1193 STDMETHOD(SetViewport)(THIS_ LPD3DVIEWPORT) PURE;
Ritor1
parents:
diff changeset
1194 STDMETHOD(TransformVertices)(THIS_ DWORD,LPD3DTRANSFORMDATA,DWORD,LPDWORD) PURE;
Ritor1
parents:
diff changeset
1195 STDMETHOD(LightElements)(THIS_ DWORD,LPD3DLIGHTDATA) PURE;
Ritor1
parents:
diff changeset
1196 STDMETHOD(SetBackground)(THIS_ D3DMATERIALHANDLE) PURE;
Ritor1
parents:
diff changeset
1197 STDMETHOD(GetBackground)(THIS_ LPD3DMATERIALHANDLE,LPBOOL) PURE;
Ritor1
parents:
diff changeset
1198 STDMETHOD(SetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE;
Ritor1
parents:
diff changeset
1199 STDMETHOD(GetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE*,LPBOOL) PURE;
Ritor1
parents:
diff changeset
1200 STDMETHOD(Clear)(THIS_ DWORD,LPD3DRECT,DWORD) PURE;
Ritor1
parents:
diff changeset
1201 STDMETHOD(AddLight)(THIS_ LPDIRECT3DLIGHT) PURE;
Ritor1
parents:
diff changeset
1202 STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DLIGHT) PURE;
Ritor1
parents:
diff changeset
1203 STDMETHOD(NextLight)(THIS_ LPDIRECT3DLIGHT,LPDIRECT3DLIGHT*,DWORD) PURE;
Ritor1
parents:
diff changeset
1204 };
Ritor1
parents:
diff changeset
1205
Ritor1
parents:
diff changeset
1206 typedef struct IDirect3DViewport *LPDIRECT3DVIEWPORT;
Ritor1
parents:
diff changeset
1207
Ritor1
parents:
diff changeset
1208 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
1209 #define IDirect3DViewport_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
1210 #define IDirect3DViewport_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
1211 #define IDirect3DViewport_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
1212 #define IDirect3DViewport_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
Ritor1
parents:
diff changeset
1213 #define IDirect3DViewport_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
Ritor1
parents:
diff changeset
1214 #define IDirect3DViewport_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
Ritor1
parents:
diff changeset
1215 #define IDirect3DViewport_TransformVertices(p,a,b,c,d) (p)->lpVtbl->TransformVertices(p,a,b,c,d)
Ritor1
parents:
diff changeset
1216 #define IDirect3DViewport_LightElements(p,a,b) (p)->lpVtbl->LightElements(p,a,b)
Ritor1
parents:
diff changeset
1217 #define IDirect3DViewport_SetBackground(p,a) (p)->lpVtbl->SetBackground(p,a)
Ritor1
parents:
diff changeset
1218 #define IDirect3DViewport_GetBackground(p,a,b) (p)->lpVtbl->GetBackground(p,a,b)
Ritor1
parents:
diff changeset
1219 #define IDirect3DViewport_SetBackgroundDepth(p,a) (p)->lpVtbl->SetBackgroundDepth(p,a)
Ritor1
parents:
diff changeset
1220 #define IDirect3DViewport_GetBackgroundDepth(p,a,b) (p)->lpVtbl->GetBackgroundDepth(p,a,b)
Ritor1
parents:
diff changeset
1221 #define IDirect3DViewport_Clear(p,a,b,c) (p)->lpVtbl->Clear(p,a,b,c)
Ritor1
parents:
diff changeset
1222 #define IDirect3DViewport_AddLight(p,a) (p)->lpVtbl->AddLight(p,a)
Ritor1
parents:
diff changeset
1223 #define IDirect3DViewport_DeleteLight(p,a) (p)->lpVtbl->DeleteLight(p,a)
Ritor1
parents:
diff changeset
1224 #define IDirect3DViewport_NextLight(p,a,b,c) (p)->lpVtbl->NextLight(p,a,b,c)
Ritor1
parents:
diff changeset
1225 #else
Ritor1
parents:
diff changeset
1226 #define IDirect3DViewport_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
1227 #define IDirect3DViewport_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
1228 #define IDirect3DViewport_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
1229 #define IDirect3DViewport_Initialize(p,a) (p)->Initialize(a)
Ritor1
parents:
diff changeset
1230 #define IDirect3DViewport_GetViewport(p,a) (p)->GetViewport(a)
Ritor1
parents:
diff changeset
1231 #define IDirect3DViewport_SetViewport(p,a) (p)->SetViewport(a)
Ritor1
parents:
diff changeset
1232 #define IDirect3DViewport_TransformVertices(p,a,b,c,d) (p)->TransformVertices(a,b,c,d)
Ritor1
parents:
diff changeset
1233 #define IDirect3DViewport_LightElements(p,a,b) (p)->LightElements(a,b)
Ritor1
parents:
diff changeset
1234 #define IDirect3DViewport_SetBackground(p,a) (p)->SetBackground(a)
Ritor1
parents:
diff changeset
1235 #define IDirect3DViewport_GetBackground(p,a,b) (p)->GetBackground(a,b)
Ritor1
parents:
diff changeset
1236 #define IDirect3DViewport_SetBackgroundDepth(p,a) (p)->SetBackgroundDepth(a)
Ritor1
parents:
diff changeset
1237 #define IDirect3DViewport_GetBackgroundDepth(p,a,b) (p)->GetBackgroundDepth(a,b)
Ritor1
parents:
diff changeset
1238 #define IDirect3DViewport_Clear(p,a,b,c) (p)->Clear(a,b,c)
Ritor1
parents:
diff changeset
1239 #define IDirect3DViewport_AddLight(p,a) (p)->AddLight(a)
Ritor1
parents:
diff changeset
1240 #define IDirect3DViewport_DeleteLight(p,a) (p)->DeleteLight(a)
Ritor1
parents:
diff changeset
1241 #define IDirect3DViewport_NextLight(p,a,b,c) (p)->NextLight(a,b,c)
Ritor1
parents:
diff changeset
1242 #endif
Ritor1
parents:
diff changeset
1243
Ritor1
parents:
diff changeset
1244 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
1245 #undef INTERFACE
Ritor1
parents:
diff changeset
1246 #define INTERFACE IDirect3DViewport2
Ritor1
parents:
diff changeset
1247
Ritor1
parents:
diff changeset
1248 DECLARE_INTERFACE_(IDirect3DViewport2, IDirect3DViewport)
Ritor1
parents:
diff changeset
1249 {
Ritor1
parents:
diff changeset
1250 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
1251 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
1252 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
1253 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
1254
Ritor1
parents:
diff changeset
1255 /*** IDirect3DViewport methods ***/
Ritor1
parents:
diff changeset
1256 STDMETHOD(Initialize)(THIS_ LPDIRECT3D) PURE;
Ritor1
parents:
diff changeset
1257 STDMETHOD(GetViewport)(THIS_ LPD3DVIEWPORT) PURE;
Ritor1
parents:
diff changeset
1258 STDMETHOD(SetViewport)(THIS_ LPD3DVIEWPORT) PURE;
Ritor1
parents:
diff changeset
1259 STDMETHOD(TransformVertices)(THIS_ DWORD,LPD3DTRANSFORMDATA,DWORD,LPDWORD) PURE;
Ritor1
parents:
diff changeset
1260 STDMETHOD(LightElements)(THIS_ DWORD,LPD3DLIGHTDATA) PURE;
Ritor1
parents:
diff changeset
1261 STDMETHOD(SetBackground)(THIS_ D3DMATERIALHANDLE) PURE;
Ritor1
parents:
diff changeset
1262 STDMETHOD(GetBackground)(THIS_ LPD3DMATERIALHANDLE,LPBOOL) PURE;
Ritor1
parents:
diff changeset
1263 STDMETHOD(SetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE;
Ritor1
parents:
diff changeset
1264 STDMETHOD(GetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE*,LPBOOL) PURE;
Ritor1
parents:
diff changeset
1265 STDMETHOD(Clear)(THIS_ DWORD,LPD3DRECT,DWORD) PURE;
Ritor1
parents:
diff changeset
1266 STDMETHOD(AddLight)(THIS_ LPDIRECT3DLIGHT) PURE;
Ritor1
parents:
diff changeset
1267 STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DLIGHT) PURE;
Ritor1
parents:
diff changeset
1268 STDMETHOD(NextLight)(THIS_ LPDIRECT3DLIGHT,LPDIRECT3DLIGHT*,DWORD) PURE;
Ritor1
parents:
diff changeset
1269 STDMETHOD(GetViewport2)(THIS_ LPD3DVIEWPORT2) PURE;
Ritor1
parents:
diff changeset
1270 STDMETHOD(SetViewport2)(THIS_ LPD3DVIEWPORT2) PURE;
Ritor1
parents:
diff changeset
1271 };
Ritor1
parents:
diff changeset
1272
Ritor1
parents:
diff changeset
1273 typedef struct IDirect3DViewport2 *LPDIRECT3DVIEWPORT2;
Ritor1
parents:
diff changeset
1274
Ritor1
parents:
diff changeset
1275 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
1276 #define IDirect3DViewport2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
1277 #define IDirect3DViewport2_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
1278 #define IDirect3DViewport2_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
1279 #define IDirect3DViewport2_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
Ritor1
parents:
diff changeset
1280 #define IDirect3DViewport2_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
Ritor1
parents:
diff changeset
1281 #define IDirect3DViewport2_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
Ritor1
parents:
diff changeset
1282 #define IDirect3DViewport2_TransformVertices(p,a,b,c,d) (p)->lpVtbl->TransformVertices(p,a,b,c,d)
Ritor1
parents:
diff changeset
1283 #define IDirect3DViewport2_LightElements(p,a,b) (p)->lpVtbl->LightElements(p,a,b)
Ritor1
parents:
diff changeset
1284 #define IDirect3DViewport2_SetBackground(p,a) (p)->lpVtbl->SetBackground(p,a)
Ritor1
parents:
diff changeset
1285 #define IDirect3DViewport2_GetBackground(p,a,b) (p)->lpVtbl->GetBackground(p,a,b)
Ritor1
parents:
diff changeset
1286 #define IDirect3DViewport2_SetBackgroundDepth(p,a) (p)->lpVtbl->SetBackgroundDepth(p,a)
Ritor1
parents:
diff changeset
1287 #define IDirect3DViewport2_GetBackgroundDepth(p,a,b) (p)->lpVtbl->GetBackgroundDepth(p,a,b)
Ritor1
parents:
diff changeset
1288 #define IDirect3DViewport2_Clear(p,a,b,c) (p)->lpVtbl->Clear(p,a,b,c)
Ritor1
parents:
diff changeset
1289 #define IDirect3DViewport2_AddLight(p,a) (p)->lpVtbl->AddLight(p,a)
Ritor1
parents:
diff changeset
1290 #define IDirect3DViewport2_DeleteLight(p,a) (p)->lpVtbl->DeleteLight(p,a)
Ritor1
parents:
diff changeset
1291 #define IDirect3DViewport2_NextLight(p,a,b,c) (p)->lpVtbl->NextLight(p,a,b,c)
Ritor1
parents:
diff changeset
1292 #define IDirect3DViewport2_GetViewport2(p,a) (p)->lpVtbl->GetViewport2(p,a)
Ritor1
parents:
diff changeset
1293 #define IDirect3DViewport2_SetViewport2(p,a) (p)->lpVtbl->SetViewport2(p,a)
Ritor1
parents:
diff changeset
1294 #else
Ritor1
parents:
diff changeset
1295 #define IDirect3DViewport2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
1296 #define IDirect3DViewport2_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
1297 #define IDirect3DViewport2_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
1298 #define IDirect3DViewport2_Initialize(p,a) (p)->Initialize(a)
Ritor1
parents:
diff changeset
1299 #define IDirect3DViewport2_GetViewport(p,a) (p)->GetViewport(a)
Ritor1
parents:
diff changeset
1300 #define IDirect3DViewport2_SetViewport(p,a) (p)->SetViewport(a)
Ritor1
parents:
diff changeset
1301 #define IDirect3DViewport2_TransformVertices(p,a,b,c,d) (p)->TransformVertices(a,b,c,d)
Ritor1
parents:
diff changeset
1302 #define IDirect3DViewport2_LightElements(p,a,b) (p)->LightElements(a,b)
Ritor1
parents:
diff changeset
1303 #define IDirect3DViewport2_SetBackground(p,a) (p)->SetBackground(a)
Ritor1
parents:
diff changeset
1304 #define IDirect3DViewport2_GetBackground(p,a,b) (p)->GetBackground(a,b)
Ritor1
parents:
diff changeset
1305 #define IDirect3DViewport2_SetBackgroundDepth(p,a) (p)->SetBackgroundDepth(a)
Ritor1
parents:
diff changeset
1306 #define IDirect3DViewport2_GetBackgroundDepth(p,a,b) (p)->GetBackgroundDepth(a,b)
Ritor1
parents:
diff changeset
1307 #define IDirect3DViewport2_Clear(p,a,b,c) (p)->Clear(a,b,c)
Ritor1
parents:
diff changeset
1308 #define IDirect3DViewport2_AddLight(p,a) (p)->AddLight(a)
Ritor1
parents:
diff changeset
1309 #define IDirect3DViewport2_DeleteLight(p,a) (p)->DeleteLight(a)
Ritor1
parents:
diff changeset
1310 #define IDirect3DViewport2_NextLight(p,a,b,c) (p)->NextLight(a,b,c)
Ritor1
parents:
diff changeset
1311 #define IDirect3DViewport2_GetViewport2(p,a) (p)->GetViewport2(a)
Ritor1
parents:
diff changeset
1312 #define IDirect3DViewport2_SetViewport2(p,a) (p)->SetViewport2(a)
Ritor1
parents:
diff changeset
1313 #endif
Ritor1
parents:
diff changeset
1314 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
1315
Ritor1
parents:
diff changeset
1316 #if(DIRECT3D_VERSION >= 0x0600)
Ritor1
parents:
diff changeset
1317
Ritor1
parents:
diff changeset
1318 #undef INTERFACE
Ritor1
parents:
diff changeset
1319 #define INTERFACE IDirect3DViewport3
Ritor1
parents:
diff changeset
1320
Ritor1
parents:
diff changeset
1321 DECLARE_INTERFACE_(IDirect3DViewport3, IDirect3DViewport2)
Ritor1
parents:
diff changeset
1322 {
Ritor1
parents:
diff changeset
1323 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
1324 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
1325 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
1326 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
1327
Ritor1
parents:
diff changeset
1328 /*** IDirect3DViewport2 methods ***/
Ritor1
parents:
diff changeset
1329 STDMETHOD(Initialize)(THIS_ LPDIRECT3D) PURE;
Ritor1
parents:
diff changeset
1330 STDMETHOD(GetViewport)(THIS_ LPD3DVIEWPORT) PURE;
Ritor1
parents:
diff changeset
1331 STDMETHOD(SetViewport)(THIS_ LPD3DVIEWPORT) PURE;
Ritor1
parents:
diff changeset
1332 STDMETHOD(TransformVertices)(THIS_ DWORD,LPD3DTRANSFORMDATA,DWORD,LPDWORD) PURE;
Ritor1
parents:
diff changeset
1333 STDMETHOD(LightElements)(THIS_ DWORD,LPD3DLIGHTDATA) PURE;
Ritor1
parents:
diff changeset
1334 STDMETHOD(SetBackground)(THIS_ D3DMATERIALHANDLE) PURE;
Ritor1
parents:
diff changeset
1335 STDMETHOD(GetBackground)(THIS_ LPD3DMATERIALHANDLE,LPBOOL) PURE;
Ritor1
parents:
diff changeset
1336 STDMETHOD(SetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE;
Ritor1
parents:
diff changeset
1337 STDMETHOD(GetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE*,LPBOOL) PURE;
Ritor1
parents:
diff changeset
1338 STDMETHOD(Clear)(THIS_ DWORD,LPD3DRECT,DWORD) PURE;
Ritor1
parents:
diff changeset
1339 STDMETHOD(AddLight)(THIS_ LPDIRECT3DLIGHT) PURE;
Ritor1
parents:
diff changeset
1340 STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DLIGHT) PURE;
Ritor1
parents:
diff changeset
1341 STDMETHOD(NextLight)(THIS_ LPDIRECT3DLIGHT,LPDIRECT3DLIGHT*,DWORD) PURE;
Ritor1
parents:
diff changeset
1342 STDMETHOD(GetViewport2)(THIS_ LPD3DVIEWPORT2) PURE;
Ritor1
parents:
diff changeset
1343 STDMETHOD(SetViewport2)(THIS_ LPD3DVIEWPORT2) PURE;
Ritor1
parents:
diff changeset
1344 STDMETHOD(SetBackgroundDepth2)(THIS_ LPDIRECTDRAWSURFACE4) PURE;
Ritor1
parents:
diff changeset
1345 STDMETHOD(GetBackgroundDepth2)(THIS_ LPDIRECTDRAWSURFACE4*,LPBOOL) PURE;
Ritor1
parents:
diff changeset
1346 STDMETHOD(Clear2)(THIS_ DWORD,LPD3DRECT,DWORD,D3DCOLOR,D3DVALUE,DWORD) PURE;
Ritor1
parents:
diff changeset
1347 };
Ritor1
parents:
diff changeset
1348
Ritor1
parents:
diff changeset
1349 typedef struct IDirect3DViewport3 *LPDIRECT3DVIEWPORT3;
Ritor1
parents:
diff changeset
1350
Ritor1
parents:
diff changeset
1351 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
1352 #define IDirect3DViewport3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
1353 #define IDirect3DViewport3_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
1354 #define IDirect3DViewport3_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
1355 #define IDirect3DViewport3_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
Ritor1
parents:
diff changeset
1356 #define IDirect3DViewport3_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
Ritor1
parents:
diff changeset
1357 #define IDirect3DViewport3_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
Ritor1
parents:
diff changeset
1358 #define IDirect3DViewport3_TransformVertices(p,a,b,c,d) (p)->lpVtbl->TransformVertices(p,a,b,c,d)
Ritor1
parents:
diff changeset
1359 #define IDirect3DViewport3_LightElements(p,a,b) (p)->lpVtbl->LightElements(p,a,b)
Ritor1
parents:
diff changeset
1360 #define IDirect3DViewport3_SetBackground(p,a) (p)->lpVtbl->SetBackground(p,a)
Ritor1
parents:
diff changeset
1361 #define IDirect3DViewport3_GetBackground(p,a,b) (p)->lpVtbl->GetBackground(p,a,b)
Ritor1
parents:
diff changeset
1362 #define IDirect3DViewport3_SetBackgroundDepth(p,a) (p)->lpVtbl->SetBackgroundDepth(p,a)
Ritor1
parents:
diff changeset
1363 #define IDirect3DViewport3_GetBackgroundDepth(p,a,b) (p)->lpVtbl->GetBackgroundDepth(p,a,b)
Ritor1
parents:
diff changeset
1364 #define IDirect3DViewport3_Clear(p,a,b,c) (p)->lpVtbl->Clear(p,a,b,c)
Ritor1
parents:
diff changeset
1365 #define IDirect3DViewport3_AddLight(p,a) (p)->lpVtbl->AddLight(p,a)
Ritor1
parents:
diff changeset
1366 #define IDirect3DViewport3_DeleteLight(p,a) (p)->lpVtbl->DeleteLight(p,a)
Ritor1
parents:
diff changeset
1367 #define IDirect3DViewport3_NextLight(p,a,b,c) (p)->lpVtbl->NextLight(p,a,b,c)
Ritor1
parents:
diff changeset
1368 #define IDirect3DViewport3_GetViewport2(p,a) (p)->lpVtbl->GetViewport2(p,a)
Ritor1
parents:
diff changeset
1369 #define IDirect3DViewport3_SetViewport2(p,a) (p)->lpVtbl->SetViewport2(p,a)
Ritor1
parents:
diff changeset
1370 #define IDirect3DViewport3_SetBackgroundDepth2(p,a) (p)->lpVtbl->SetBackgroundDepth2(p,a)
Ritor1
parents:
diff changeset
1371 #define IDirect3DViewport3_GetBackgroundDepth2(p,a,b) (p)->lpVtbl->GetBackgroundDepth2(p,a,b)
Ritor1
parents:
diff changeset
1372 #define IDirect3DViewport3_Clear2(p,a,b,c,d,e,f) (p)->lpVtbl->Clear2(p,a,b,c,d,e,f)
Ritor1
parents:
diff changeset
1373 #else
Ritor1
parents:
diff changeset
1374 #define IDirect3DViewport3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
1375 #define IDirect3DViewport3_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
1376 #define IDirect3DViewport3_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
1377 #define IDirect3DViewport3_Initialize(p,a) (p)->Initialize(a)
Ritor1
parents:
diff changeset
1378 #define IDirect3DViewport3_GetViewport(p,a) (p)->GetViewport(a)
Ritor1
parents:
diff changeset
1379 #define IDirect3DViewport3_SetViewport(p,a) (p)->SetViewport(a)
Ritor1
parents:
diff changeset
1380 #define IDirect3DViewport3_TransformVertices(p,a,b,c,d) (p)->TransformVertices(a,b,c,d)
Ritor1
parents:
diff changeset
1381 #define IDirect3DViewport3_LightElements(p,a,b) (p)->LightElements(a,b)
Ritor1
parents:
diff changeset
1382 #define IDirect3DViewport3_SetBackground(p,a) (p)->SetBackground(a)
Ritor1
parents:
diff changeset
1383 #define IDirect3DViewport3_GetBackground(p,a,b) (p)->GetBackground(a,b)
Ritor1
parents:
diff changeset
1384 #define IDirect3DViewport3_SetBackgroundDepth(p,a) (p)->SetBackgroundDepth(a)
Ritor1
parents:
diff changeset
1385 #define IDirect3DViewport3_GetBackgroundDepth(p,a,b) (p)->GetBackgroundDepth(a,b)
Ritor1
parents:
diff changeset
1386 #define IDirect3DViewport3_Clear(p,a,b,c) (p)->Clear(a,b,c)
Ritor1
parents:
diff changeset
1387 #define IDirect3DViewport3_AddLight(p,a) (p)->AddLight(a)
Ritor1
parents:
diff changeset
1388 #define IDirect3DViewport3_DeleteLight(p,a) (p)->DeleteLight(a)
Ritor1
parents:
diff changeset
1389 #define IDirect3DViewport3_NextLight(p,a,b,c) (p)->NextLight(a,b,c)
Ritor1
parents:
diff changeset
1390 #define IDirect3DViewport3_GetViewport2(p,a) (p)->GetViewport2(a)
Ritor1
parents:
diff changeset
1391 #define IDirect3DViewport3_SetViewport2(p,a) (p)->SetViewport2(a)
Ritor1
parents:
diff changeset
1392 #define IDirect3DViewport3_SetBackgroundDepth2(p,a) (p)->SetBackgroundDepth2(a)
Ritor1
parents:
diff changeset
1393 #define IDirect3DViewport3_GetBackgroundDepth2(p,a,b) (p)->GetBackgroundDepth2(a,b)
Ritor1
parents:
diff changeset
1394 #define IDirect3DViewport3_Clear2(p,a,b,c,d,e,f) (p)->Clear2(a,b,c,d,e,f)
Ritor1
parents:
diff changeset
1395 #endif
Ritor1
parents:
diff changeset
1396 #endif /* DIRECT3D_VERSION >= 0x0600 */
Ritor1
parents:
diff changeset
1397
Ritor1
parents:
diff changeset
1398 #if(DIRECT3D_VERSION >= 0x0600)
Ritor1
parents:
diff changeset
1399 #undef INTERFACE
Ritor1
parents:
diff changeset
1400 #define INTERFACE IDirect3DVertexBuffer
Ritor1
parents:
diff changeset
1401
Ritor1
parents:
diff changeset
1402 DECLARE_INTERFACE_(IDirect3DVertexBuffer, IUnknown)
Ritor1
parents:
diff changeset
1403 {
Ritor1
parents:
diff changeset
1404 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
1405 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
1406 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
1407 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
1408
Ritor1
parents:
diff changeset
1409 /*** IDirect3DVertexBuffer methods ***/
Ritor1
parents:
diff changeset
1410 STDMETHOD(Lock)(THIS_ DWORD,LPVOID*,LPDWORD) PURE;
Ritor1
parents:
diff changeset
1411 STDMETHOD(Unlock)(THIS) PURE;
Ritor1
parents:
diff changeset
1412 STDMETHOD(ProcessVertices)(THIS_ DWORD,DWORD,DWORD,LPDIRECT3DVERTEXBUFFER,DWORD,LPDIRECT3DDEVICE3,DWORD) PURE;
Ritor1
parents:
diff changeset
1413 STDMETHOD(GetVertexBufferDesc)(THIS_ LPD3DVERTEXBUFFERDESC) PURE;
Ritor1
parents:
diff changeset
1414 STDMETHOD(Optimize)(THIS_ LPDIRECT3DDEVICE3,DWORD) PURE;
Ritor1
parents:
diff changeset
1415 };
Ritor1
parents:
diff changeset
1416
Ritor1
parents:
diff changeset
1417 typedef struct IDirect3DVertexBuffer *LPDIRECT3DVERTEXBUFFER;
Ritor1
parents:
diff changeset
1418
Ritor1
parents:
diff changeset
1419 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
1420 #define IDirect3DVertexBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
1421 #define IDirect3DVertexBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
1422 #define IDirect3DVertexBuffer_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
1423 #define IDirect3DVertexBuffer_Lock(p,a,b,c) (p)->lpVtbl->Lock(p,a,b,c)
Ritor1
parents:
diff changeset
1424 #define IDirect3DVertexBuffer_Unlock(p) (p)->lpVtbl->Unlock(p)
Ritor1
parents:
diff changeset
1425 #define IDirect3DVertexBuffer_ProcessVertices(p,a,b,c,d,e,f,g) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
1426 #define IDirect3DVertexBuffer_GetVertexBufferDesc(p,a) (p)->lpVtbl->GetVertexBufferDesc(p,a)
Ritor1
parents:
diff changeset
1427 #define IDirect3DVertexBuffer_Optimize(p,a,b) (p)->lpVtbl->Optimize(p,a,b)
Ritor1
parents:
diff changeset
1428 #else
Ritor1
parents:
diff changeset
1429 #define IDirect3DVertexBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
1430 #define IDirect3DVertexBuffer_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
1431 #define IDirect3DVertexBuffer_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
1432 #define IDirect3DVertexBuffer_Lock(p,a,b,c) (p)->Lock(a,b,c)
Ritor1
parents:
diff changeset
1433 #define IDirect3DVertexBuffer_Unlock(p) (p)->Unlock()
Ritor1
parents:
diff changeset
1434 #define IDirect3DVertexBuffer_ProcessVertices(p,a,b,c,d,e,f,g) (p)->ProcessVertices(a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
1435 #define IDirect3DVertexBuffer_GetVertexBufferDesc(p,a) (p)->GetVertexBufferDesc(a)
Ritor1
parents:
diff changeset
1436 #define IDirect3DVertexBuffer_Optimize(p,a,b) (p)->Optimize(a,b)
Ritor1
parents:
diff changeset
1437 #endif
Ritor1
parents:
diff changeset
1438 #endif /* DIRECT3D_VERSION >= 0x0600 */
Ritor1
parents:
diff changeset
1439
Ritor1
parents:
diff changeset
1440 #if(DIRECT3D_VERSION >= 0x0700)
Ritor1
parents:
diff changeset
1441 #undef INTERFACE
Ritor1
parents:
diff changeset
1442 #define INTERFACE IDirect3DVertexBuffer7
Ritor1
parents:
diff changeset
1443
Ritor1
parents:
diff changeset
1444 DECLARE_INTERFACE_(IDirect3DVertexBuffer7, IUnknown)
Ritor1
parents:
diff changeset
1445 {
Ritor1
parents:
diff changeset
1446 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
1447 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
1448 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
1449 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
1450
Ritor1
parents:
diff changeset
1451 /*** IDirect3DVertexBuffer7 methods ***/
Ritor1
parents:
diff changeset
1452 STDMETHOD(Lock)(THIS_ DWORD,LPVOID*,LPDWORD) PURE;
Ritor1
parents:
diff changeset
1453 STDMETHOD(Unlock)(THIS) PURE;
Ritor1
parents:
diff changeset
1454 STDMETHOD(ProcessVertices)(THIS_ DWORD,DWORD,DWORD,LPDIRECT3DVERTEXBUFFER7,DWORD,LPDIRECT3DDEVICE7,DWORD) PURE;
Ritor1
parents:
diff changeset
1455 STDMETHOD(GetVertexBufferDesc)(THIS_ LPD3DVERTEXBUFFERDESC) PURE;
Ritor1
parents:
diff changeset
1456 STDMETHOD(Optimize)(THIS_ LPDIRECT3DDEVICE7,DWORD) PURE;
Ritor1
parents:
diff changeset
1457 STDMETHOD(ProcessVerticesStrided)(THIS_ DWORD,DWORD,DWORD,LPD3DDRAWPRIMITIVESTRIDEDDATA,DWORD,LPDIRECT3DDEVICE7,DWORD) PURE;
Ritor1
parents:
diff changeset
1458 };
Ritor1
parents:
diff changeset
1459
Ritor1
parents:
diff changeset
1460 typedef struct IDirect3DVertexBuffer7 *LPDIRECT3DVERTEXBUFFER7;
Ritor1
parents:
diff changeset
1461
Ritor1
parents:
diff changeset
1462 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
1463 #define IDirect3DVertexBuffer7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
1464 #define IDirect3DVertexBuffer7_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
1465 #define IDirect3DVertexBuffer7_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
1466 #define IDirect3DVertexBuffer7_Lock(p,a,b,c) (p)->lpVtbl->Lock(p,a,b,c)
Ritor1
parents:
diff changeset
1467 #define IDirect3DVertexBuffer7_Unlock(p) (p)->lpVtbl->Unlock(p)
Ritor1
parents:
diff changeset
1468 #define IDirect3DVertexBuffer7_ProcessVertices(p,a,b,c,d,e,f,g) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
1469 #define IDirect3DVertexBuffer7_GetVertexBufferDesc(p,a) (p)->lpVtbl->GetVertexBufferDesc(p,a)
Ritor1
parents:
diff changeset
1470 #define IDirect3DVertexBuffer7_Optimize(p,a,b) (p)->lpVtbl->Optimize(p,a,b)
Ritor1
parents:
diff changeset
1471 #define IDirect3DVertexBuffer7_ProcessVerticesStrided(p,a,b,c,d,e,f,g) (p)->lpVtbl->ProcessVerticesStrided(p,a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
1472 #else
Ritor1
parents:
diff changeset
1473 #define IDirect3DVertexBuffer7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
1474 #define IDirect3DVertexBuffer7_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
1475 #define IDirect3DVertexBuffer7_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
1476 #define IDirect3DVertexBuffer7_Lock(p,a,b,c) (p)->Lock(a,b,c)
Ritor1
parents:
diff changeset
1477 #define IDirect3DVertexBuffer7_Unlock(p) (p)->Unlock()
Ritor1
parents:
diff changeset
1478 #define IDirect3DVertexBuffer7_ProcessVertices(p,a,b,c,d,e,f,g) (p)->ProcessVertices(a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
1479 #define IDirect3DVertexBuffer7_GetVertexBufferDesc(p,a) (p)->GetVertexBufferDesc(a)
Ritor1
parents:
diff changeset
1480 #define IDirect3DVertexBuffer7_Optimize(p,a,b) (p)->Optimize(a,b)
Ritor1
parents:
diff changeset
1481 #define IDirect3DVertexBuffer7_ProcessVerticesStrided(p,a,b,c,d,e,f,g) (p)->ProcessVerticesStrided(a,b,c,d,e,f,g)
Ritor1
parents:
diff changeset
1482 #endif
Ritor1
parents:
diff changeset
1483 #endif /* DIRECT3D_VERSION >= 0x0700 */
Ritor1
parents:
diff changeset
1484
Ritor1
parents:
diff changeset
1485 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
1486 /****************************************************************************
Ritor1
parents:
diff changeset
1487 *
Ritor1
parents:
diff changeset
1488 * Flags for IDirect3DDevice::NextViewport
Ritor1
parents:
diff changeset
1489 *
Ritor1
parents:
diff changeset
1490 ****************************************************************************/
Ritor1
parents:
diff changeset
1491
Ritor1
parents:
diff changeset
1492 /*
Ritor1
parents:
diff changeset
1493 * Return the next OldViewport
Ritor1
parents:
diff changeset
1494 */
Ritor1
parents:
diff changeset
1495 #define D3DNEXT_NEXT 0x00000001l
Ritor1
parents:
diff changeset
1496
Ritor1
parents:
diff changeset
1497 /*
Ritor1
parents:
diff changeset
1498 * Return the first OldViewport
Ritor1
parents:
diff changeset
1499 */
Ritor1
parents:
diff changeset
1500 #define D3DNEXT_HEAD 0x00000002l
Ritor1
parents:
diff changeset
1501
Ritor1
parents:
diff changeset
1502 /*
Ritor1
parents:
diff changeset
1503 * Return the last OldViewport
Ritor1
parents:
diff changeset
1504 */
Ritor1
parents:
diff changeset
1505 #define D3DNEXT_TAIL 0x00000004l
Ritor1
parents:
diff changeset
1506
Ritor1
parents:
diff changeset
1507
Ritor1
parents:
diff changeset
1508 /****************************************************************************
Ritor1
parents:
diff changeset
1509 *
Ritor1
parents:
diff changeset
1510 * Flags for DrawPrimitive/DrawIndexedPrimitive
Ritor1
parents:
diff changeset
1511 * Also valid for Begin/BeginIndexed
Ritor1
parents:
diff changeset
1512 * Also valid for VertexBuffer::CreateVertexBuffer
Ritor1
parents:
diff changeset
1513 ****************************************************************************/
Ritor1
parents:
diff changeset
1514
Ritor1
parents:
diff changeset
1515 /*
Ritor1
parents:
diff changeset
1516 * Wait until the device is ready to draw the primitive
Ritor1
parents:
diff changeset
1517 * This will cause DP to not return DDERR_WASSTILLDRAWING
Ritor1
parents:
diff changeset
1518 */
Ritor1
parents:
diff changeset
1519 #define D3DDP_WAIT 0x00000001l
Ritor1
parents:
diff changeset
1520 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
1521
Ritor1
parents:
diff changeset
1522 #if (DIRECT3D_VERSION == 0x0500)
Ritor1
parents:
diff changeset
1523 /*
Ritor1
parents:
diff changeset
1524 * Hint that it is acceptable to render the primitive out of order.
Ritor1
parents:
diff changeset
1525 */
Ritor1
parents:
diff changeset
1526 #define D3DDP_OUTOFORDER 0x00000002l
Ritor1
parents:
diff changeset
1527 #endif
Ritor1
parents:
diff changeset
1528
Ritor1
parents:
diff changeset
1529
Ritor1
parents:
diff changeset
1530 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
1531 /*
Ritor1
parents:
diff changeset
1532 * Hint that the primitives have been clipped by the application.
Ritor1
parents:
diff changeset
1533 */
Ritor1
parents:
diff changeset
1534 #define D3DDP_DONOTCLIP 0x00000004l
Ritor1
parents:
diff changeset
1535
Ritor1
parents:
diff changeset
1536 /*
Ritor1
parents:
diff changeset
1537 * Hint that the extents need not be updated.
Ritor1
parents:
diff changeset
1538 */
Ritor1
parents:
diff changeset
1539 #define D3DDP_DONOTUPDATEEXTENTS 0x00000008l
Ritor1
parents:
diff changeset
1540 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
1541
Ritor1
parents:
diff changeset
1542 #if(DIRECT3D_VERSION >= 0x0600)
Ritor1
parents:
diff changeset
1543
Ritor1
parents:
diff changeset
1544 /*
Ritor1
parents:
diff changeset
1545 * Hint that the lighting should not be applied on vertices.
Ritor1
parents:
diff changeset
1546 */
Ritor1
parents:
diff changeset
1547
Ritor1
parents:
diff changeset
1548 #define D3DDP_DONOTLIGHT 0x00000010l
Ritor1
parents:
diff changeset
1549
Ritor1
parents:
diff changeset
1550 #endif /* DIRECT3D_VERSION >= 0x0600 */
Ritor1
parents:
diff changeset
1551
Ritor1
parents:
diff changeset
1552 /*
Ritor1
parents:
diff changeset
1553 * Direct3D Errors
Ritor1
parents:
diff changeset
1554 * DirectDraw error codes are used when errors not specified here.
Ritor1
parents:
diff changeset
1555 */
Ritor1
parents:
diff changeset
1556 #define D3D_OK DD_OK
Ritor1
parents:
diff changeset
1557 #define D3DERR_BADMAJORVERSION MAKE_DDHRESULT(700)
Ritor1
parents:
diff changeset
1558 #define D3DERR_BADMINORVERSION MAKE_DDHRESULT(701)
Ritor1
parents:
diff changeset
1559
Ritor1
parents:
diff changeset
1560 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
1561 /*
Ritor1
parents:
diff changeset
1562 * An invalid device was requested by the application.
Ritor1
parents:
diff changeset
1563 */
Ritor1
parents:
diff changeset
1564 #define D3DERR_INVALID_DEVICE MAKE_DDHRESULT(705)
Ritor1
parents:
diff changeset
1565 #define D3DERR_INITFAILED MAKE_DDHRESULT(706)
Ritor1
parents:
diff changeset
1566
Ritor1
parents:
diff changeset
1567 /*
Ritor1
parents:
diff changeset
1568 * SetRenderTarget attempted on a device that was
Ritor1
parents:
diff changeset
1569 * QI'd off the render target.
Ritor1
parents:
diff changeset
1570 */
Ritor1
parents:
diff changeset
1571 #define D3DERR_DEVICEAGGREGATED MAKE_DDHRESULT(707)
Ritor1
parents:
diff changeset
1572 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
1573
Ritor1
parents:
diff changeset
1574 #define D3DERR_EXECUTE_CREATE_FAILED MAKE_DDHRESULT(710)
Ritor1
parents:
diff changeset
1575 #define D3DERR_EXECUTE_DESTROY_FAILED MAKE_DDHRESULT(711)
Ritor1
parents:
diff changeset
1576 #define D3DERR_EXECUTE_LOCK_FAILED MAKE_DDHRESULT(712)
Ritor1
parents:
diff changeset
1577 #define D3DERR_EXECUTE_UNLOCK_FAILED MAKE_DDHRESULT(713)
Ritor1
parents:
diff changeset
1578 #define D3DERR_EXECUTE_LOCKED MAKE_DDHRESULT(714)
Ritor1
parents:
diff changeset
1579 #define D3DERR_EXECUTE_NOT_LOCKED MAKE_DDHRESULT(715)
Ritor1
parents:
diff changeset
1580
Ritor1
parents:
diff changeset
1581 #define D3DERR_EXECUTE_FAILED MAKE_DDHRESULT(716)
Ritor1
parents:
diff changeset
1582 #define D3DERR_EXECUTE_CLIPPED_FAILED MAKE_DDHRESULT(717)
Ritor1
parents:
diff changeset
1583
Ritor1
parents:
diff changeset
1584 #define D3DERR_TEXTURE_NO_SUPPORT MAKE_DDHRESULT(720)
Ritor1
parents:
diff changeset
1585 #define D3DERR_TEXTURE_CREATE_FAILED MAKE_DDHRESULT(721)
Ritor1
parents:
diff changeset
1586 #define D3DERR_TEXTURE_DESTROY_FAILED MAKE_DDHRESULT(722)
Ritor1
parents:
diff changeset
1587 #define D3DERR_TEXTURE_LOCK_FAILED MAKE_DDHRESULT(723)
Ritor1
parents:
diff changeset
1588 #define D3DERR_TEXTURE_UNLOCK_FAILED MAKE_DDHRESULT(724)
Ritor1
parents:
diff changeset
1589 #define D3DERR_TEXTURE_LOAD_FAILED MAKE_DDHRESULT(725)
Ritor1
parents:
diff changeset
1590 #define D3DERR_TEXTURE_SWAP_FAILED MAKE_DDHRESULT(726)
Ritor1
parents:
diff changeset
1591 #define D3DERR_TEXTURE_LOCKED MAKE_DDHRESULT(727)
Ritor1
parents:
diff changeset
1592 #define D3DERR_TEXTURE_NOT_LOCKED MAKE_DDHRESULT(728)
Ritor1
parents:
diff changeset
1593 #define D3DERR_TEXTURE_GETSURF_FAILED MAKE_DDHRESULT(729)
Ritor1
parents:
diff changeset
1594
Ritor1
parents:
diff changeset
1595 #define D3DERR_MATRIX_CREATE_FAILED MAKE_DDHRESULT(730)
Ritor1
parents:
diff changeset
1596 #define D3DERR_MATRIX_DESTROY_FAILED MAKE_DDHRESULT(731)
Ritor1
parents:
diff changeset
1597 #define D3DERR_MATRIX_SETDATA_FAILED MAKE_DDHRESULT(732)
Ritor1
parents:
diff changeset
1598 #define D3DERR_MATRIX_GETDATA_FAILED MAKE_DDHRESULT(733)
Ritor1
parents:
diff changeset
1599 #define D3DERR_SETVIEWPORTDATA_FAILED MAKE_DDHRESULT(734)
Ritor1
parents:
diff changeset
1600
Ritor1
parents:
diff changeset
1601 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
1602 #define D3DERR_INVALIDCURRENTVIEWPORT MAKE_DDHRESULT(735)
Ritor1
parents:
diff changeset
1603 #define D3DERR_INVALIDPRIMITIVETYPE MAKE_DDHRESULT(736)
Ritor1
parents:
diff changeset
1604 #define D3DERR_INVALIDVERTEXTYPE MAKE_DDHRESULT(737)
Ritor1
parents:
diff changeset
1605 #define D3DERR_TEXTURE_BADSIZE MAKE_DDHRESULT(738)
Ritor1
parents:
diff changeset
1606 #define D3DERR_INVALIDRAMPTEXTURE MAKE_DDHRESULT(739)
Ritor1
parents:
diff changeset
1607 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
1608
Ritor1
parents:
diff changeset
1609 #define D3DERR_MATERIAL_CREATE_FAILED MAKE_DDHRESULT(740)
Ritor1
parents:
diff changeset
1610 #define D3DERR_MATERIAL_DESTROY_FAILED MAKE_DDHRESULT(741)
Ritor1
parents:
diff changeset
1611 #define D3DERR_MATERIAL_SETDATA_FAILED MAKE_DDHRESULT(742)
Ritor1
parents:
diff changeset
1612 #define D3DERR_MATERIAL_GETDATA_FAILED MAKE_DDHRESULT(743)
Ritor1
parents:
diff changeset
1613
Ritor1
parents:
diff changeset
1614 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
1615 #define D3DERR_INVALIDPALETTE MAKE_DDHRESULT(744)
Ritor1
parents:
diff changeset
1616
Ritor1
parents:
diff changeset
1617 #define D3DERR_ZBUFF_NEEDS_SYSTEMMEMORY MAKE_DDHRESULT(745)
Ritor1
parents:
diff changeset
1618 #define D3DERR_ZBUFF_NEEDS_VIDEOMEMORY MAKE_DDHRESULT(746)
Ritor1
parents:
diff changeset
1619 #define D3DERR_SURFACENOTINVIDMEM MAKE_DDHRESULT(747)
Ritor1
parents:
diff changeset
1620 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
1621
Ritor1
parents:
diff changeset
1622 #define D3DERR_LIGHT_SET_FAILED MAKE_DDHRESULT(750)
Ritor1
parents:
diff changeset
1623 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
1624 #define D3DERR_LIGHTHASVIEWPORT MAKE_DDHRESULT(751)
Ritor1
parents:
diff changeset
1625 #define D3DERR_LIGHTNOTINTHISVIEWPORT MAKE_DDHRESULT(752)
Ritor1
parents:
diff changeset
1626 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
1627
Ritor1
parents:
diff changeset
1628 #define D3DERR_SCENE_IN_SCENE MAKE_DDHRESULT(760)
Ritor1
parents:
diff changeset
1629 #define D3DERR_SCENE_NOT_IN_SCENE MAKE_DDHRESULT(761)
Ritor1
parents:
diff changeset
1630 #define D3DERR_SCENE_BEGIN_FAILED MAKE_DDHRESULT(762)
Ritor1
parents:
diff changeset
1631 #define D3DERR_SCENE_END_FAILED MAKE_DDHRESULT(763)
Ritor1
parents:
diff changeset
1632
Ritor1
parents:
diff changeset
1633 #if(DIRECT3D_VERSION >= 0x0500)
Ritor1
parents:
diff changeset
1634 #define D3DERR_INBEGIN MAKE_DDHRESULT(770)
Ritor1
parents:
diff changeset
1635 #define D3DERR_NOTINBEGIN MAKE_DDHRESULT(771)
Ritor1
parents:
diff changeset
1636 #define D3DERR_NOVIEWPORTS MAKE_DDHRESULT(772)
Ritor1
parents:
diff changeset
1637 #define D3DERR_VIEWPORTDATANOTSET MAKE_DDHRESULT(773)
Ritor1
parents:
diff changeset
1638 #define D3DERR_VIEWPORTHASNODEVICE MAKE_DDHRESULT(774)
Ritor1
parents:
diff changeset
1639 #define D3DERR_NOCURRENTVIEWPORT MAKE_DDHRESULT(775)
Ritor1
parents:
diff changeset
1640 #endif /* DIRECT3D_VERSION >= 0x0500 */
Ritor1
parents:
diff changeset
1641
Ritor1
parents:
diff changeset
1642 #if(DIRECT3D_VERSION >= 0x0600)
Ritor1
parents:
diff changeset
1643 #define D3DERR_INVALIDVERTEXFORMAT MAKE_DDHRESULT(2048)
Ritor1
parents:
diff changeset
1644
Ritor1
parents:
diff changeset
1645 /*
Ritor1
parents:
diff changeset
1646 * Attempted to CreateTexture on a surface that had a color key
Ritor1
parents:
diff changeset
1647 */
Ritor1
parents:
diff changeset
1648 #define D3DERR_COLORKEYATTACHED MAKE_DDHRESULT(2050)
Ritor1
parents:
diff changeset
1649
Ritor1
parents:
diff changeset
1650 #define D3DERR_VERTEXBUFFEROPTIMIZED MAKE_DDHRESULT(2060)
Ritor1
parents:
diff changeset
1651 #define D3DERR_VBUF_CREATE_FAILED MAKE_DDHRESULT(2061)
Ritor1
parents:
diff changeset
1652 #define D3DERR_VERTEXBUFFERLOCKED MAKE_DDHRESULT(2062)
Ritor1
parents:
diff changeset
1653 #define D3DERR_VERTEXBUFFERUNLOCKFAILED MAKE_DDHRESULT(2063)
Ritor1
parents:
diff changeset
1654
Ritor1
parents:
diff changeset
1655 #define D3DERR_ZBUFFER_NOTPRESENT MAKE_DDHRESULT(2070)
Ritor1
parents:
diff changeset
1656 #define D3DERR_STENCILBUFFER_NOTPRESENT MAKE_DDHRESULT(2071)
Ritor1
parents:
diff changeset
1657
Ritor1
parents:
diff changeset
1658 #define D3DERR_WRONGTEXTUREFORMAT MAKE_DDHRESULT(2072)
Ritor1
parents:
diff changeset
1659 #define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_DDHRESULT(2073)
Ritor1
parents:
diff changeset
1660 #define D3DERR_UNSUPPORTEDCOLORARG MAKE_DDHRESULT(2074)
Ritor1
parents:
diff changeset
1661 #define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_DDHRESULT(2075)
Ritor1
parents:
diff changeset
1662 #define D3DERR_UNSUPPORTEDALPHAARG MAKE_DDHRESULT(2076)
Ritor1
parents:
diff changeset
1663 #define D3DERR_TOOMANYOPERATIONS MAKE_DDHRESULT(2077)
Ritor1
parents:
diff changeset
1664 #define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_DDHRESULT(2078)
Ritor1
parents:
diff changeset
1665 #define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_DDHRESULT(2079)
Ritor1
parents:
diff changeset
1666 #define D3DERR_CONFLICTINGRENDERSTATE MAKE_DDHRESULT(2081)
Ritor1
parents:
diff changeset
1667 #define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_DDHRESULT(2082)
Ritor1
parents:
diff changeset
1668 #define D3DERR_TOOMANYPRIMITIVES MAKE_DDHRESULT(2083)
Ritor1
parents:
diff changeset
1669 #define D3DERR_INVALIDMATRIX MAKE_DDHRESULT(2084)
Ritor1
parents:
diff changeset
1670 #define D3DERR_TOOMANYVERTICES MAKE_DDHRESULT(2085)
Ritor1
parents:
diff changeset
1671 #define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_DDHRESULT(2086)
Ritor1
parents:
diff changeset
1672
Ritor1
parents:
diff changeset
1673 #endif /* DIRECT3D_VERSION >= 0x0600 */
Ritor1
parents:
diff changeset
1674
Ritor1
parents:
diff changeset
1675 #if(DIRECT3D_VERSION >= 0x0700)
Ritor1
parents:
diff changeset
1676 #define D3DERR_INVALIDSTATEBLOCK MAKE_DDHRESULT(2100)
Ritor1
parents:
diff changeset
1677 #define D3DERR_INBEGINSTATEBLOCK MAKE_DDHRESULT(2101)
Ritor1
parents:
diff changeset
1678 #define D3DERR_NOTINBEGINSTATEBLOCK MAKE_DDHRESULT(2102)
Ritor1
parents:
diff changeset
1679 #endif /* DIRECT3D_VERSION >= 0x0700 */
Ritor1
parents:
diff changeset
1680
Ritor1
parents:
diff changeset
1681
Ritor1
parents:
diff changeset
1682 #ifdef __cplusplus
Ritor1
parents:
diff changeset
1683 };
Ritor1
parents:
diff changeset
1684 #endif
Ritor1
parents:
diff changeset
1685
Ritor1
parents:
diff changeset
1686 #endif /* (DIRECT3D_VERSION < 0x0800) */
Ritor1
parents:
diff changeset
1687 #endif /* _D3D_H_ */
Ritor1
parents:
diff changeset
1688