Release 1.5.29.
[wine] / include / d3drm.h
1 /*
2  * Copyright (C) 2005 Peter Berg Larsen
3  * Copyright (C) 2010 Christian Costa
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18  */
19
20 #ifndef __D3DRM_H__
21 #define __D3DRM_H__
22
23 #include <ddraw.h>
24
25 typedef struct IDirect3DRM *LPDIRECT3DRM, **LPLPDIRECT3DRM;
26
27 #include <d3drmobj.h>
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 /* Direct3DRM Object CLSID */
34 DEFINE_GUID(CLSID_CDirect3DRM,              0x4516ec41, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
35
36 /* Direct3DRM Interface GUIDs */
37 DEFINE_GUID(IID_IDirect3DRM,                0x2bc49361, 0x8327, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
38 DEFINE_GUID(IID_IDirect3DRM2,               0x4516ecc8, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
39 DEFINE_GUID(IID_IDirect3DRM3,               0x4516ec83, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
40
41 typedef struct IDirect3DRM2 *LPDIRECT3DRM2, **LPLPDIRECT3DRM2;
42 typedef struct IDirect3DRM3 *LPDIRECT3DRM3, **LPLPDIRECT3DRM3;
43
44 HRESULT WINAPI Direct3DRMCreate(struct IDirect3DRM **d3drm);
45
46 /*****************************************************************************
47  * IDirect3DRMObject interface
48  */
49 #ifdef WINE_NO_UNICODE_MACROS
50 #undef GetClassName
51 #endif
52 #define INTERFACE IDirect3DRM
53 DECLARE_INTERFACE_(IDirect3DRM,IUnknown)
54 {
55     /*** IUnknown methods ***/
56     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
57     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
58     STDMETHOD_(ULONG,Release)(THIS) PURE;
59     /*** IDirect3DRM methods ***/
60     STDMETHOD(CreateObject)(THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE;
61     STDMETHOD(CreateFrame)(THIS_ IDirect3DRMFrame *parent, IDirect3DRMFrame **frame) PURE;
62     STDMETHOD(CreateMesh)(THIS_ IDirect3DRMMesh **mesh) PURE;
63     STDMETHOD(CreateMeshBuilder)(THIS_ IDirect3DRMMeshBuilder **mesh_builder) PURE;
64     STDMETHOD(CreateFace)(THIS_ IDirect3DRMFace **face) PURE;
65     STDMETHOD(CreateAnimation)(THIS_ LPDIRECT3DRMANIMATION *) PURE;
66     STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET *) PURE;
67     STDMETHOD(CreateTexture)(THIS_ D3DRMIMAGE *image, IDirect3DRMTexture **texture) PURE;
68     STDMETHOD(CreateLight)(THIS_ D3DRMLIGHTTYPE type, D3DCOLOR color, IDirect3DRMLight **light) PURE;
69     STDMETHOD(CreateLightRGB)(THIS_ D3DRMLIGHTTYPE type, D3DVALUE r, D3DVALUE g, D3DVALUE b,
70             IDirect3DRMLight **light) PURE;
71     STDMETHOD(CreateMaterial)(THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL *) PURE;
72     STDMETHOD(CreateDevice)(THIS_ DWORD width, DWORD height, IDirect3DRMDevice **device) PURE;
73     STDMETHOD(CreateDeviceFromSurface)(THIS_ GUID *guid, IDirectDraw *ddraw,
74             IDirectDrawSurface *surface, IDirect3DRMDevice **device) PURE;
75     STDMETHOD(CreateDeviceFromD3D)(THIS_ IDirect3D *d3d, IDirect3DDevice *d3d_device,
76             IDirect3DRMDevice **device) PURE;
77     STDMETHOD(CreateDeviceFromClipper)(THIS_ IDirectDrawClipper *clipper, GUID *guid,
78             int width, int height, IDirect3DRMDevice **device) PURE;
79     STDMETHOD(CreateTextureFromSurface)(THIS_ IDirectDrawSurface *surface,
80             IDirect3DRMTexture **texture) PURE;
81     STDMETHOD(CreateShadow)(THIS_ IDirect3DRMVisual *visual, IDirect3DRMLight *light,
82             D3DVALUE px, D3DVALUE py, D3DVALUE pz, D3DVALUE nx, D3DVALUE ny, D3DVALUE nz,
83             IDirect3DRMVisual **shadow) PURE;
84     STDMETHOD(CreateViewport)(THIS_ IDirect3DRMDevice *device, IDirect3DRMFrame *camera,
85             DWORD x, DWORD y, DWORD width, DWORD height, IDirect3DRMViewport **viewport) PURE;
86     STDMETHOD(CreateWrap)(THIS_ D3DRMWRAPTYPE type, IDirect3DRMFrame *reference, D3DVALUE ox, D3DVALUE oy, D3DVALUE oz,
87         D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, D3DVALUE ux, D3DVALUE uy, D3DVALUE uz, D3DVALUE ou, D3DVALUE ov,
88         D3DVALUE su, D3DVALUE sv, IDirect3DRMWrap **wrap) PURE;
89     STDMETHOD(CreateUserVisual)(THIS_ D3DRMUSERVISUALCALLBACK, LPVOID pArg, LPDIRECT3DRMUSERVISUAL *) PURE;
90     STDMETHOD(LoadTexture)(THIS_ const char *, LPDIRECT3DRMTEXTURE *) PURE;
91     STDMETHOD(LoadTextureFromResource)(THIS_ HRSRC rs, LPDIRECT3DRMTEXTURE *) PURE;
92     STDMETHOD(SetSearchPath)(THIS_ LPCSTR) PURE;
93     STDMETHOD(AddSearchPath)(THIS_ LPCSTR) PURE;
94     STDMETHOD(GetSearchPath)(THIS_ DWORD *size_return, LPSTR path_return) PURE;
95     STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE;
96     STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE;
97     STDMETHOD(GetDevices)(THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE;
98     STDMETHOD(GetNamedObject)(THIS_ const char *name, IDirect3DRMObject **object) PURE;
99     STDMETHOD(EnumerateObjects)(THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE;
100     STDMETHOD(Load)(THIS_ void *source, void *object_id, IID **iids, DWORD iid_count, D3DRMLOADOPTIONS flags,
101             D3DRMLOADCALLBACK load_cb, void *load_ctx, D3DRMLOADTEXTURECALLBACK load_tex_cb, void *load_tex_ctx,
102             IDirect3DRMFrame *parent_frame) PURE;
103     STDMETHOD(Tick)(THIS_ D3DVALUE) PURE;
104 };
105 #undef INTERFACE
106
107 #if !defined(__cplusplus) || defined(CINTERFACE)
108 /*** IUnknown methods ***/
109 #define IDirect3DRM_QueryInterface(p,a,b)                         (p)->lpVtbl->QueryInterface(p,a,b)
110 #define IDirect3DRM_AddRef(p)                                     (p)->lpVtbl->AddRef(p)
111 #define IDirect3DRM_Release(p)                                    (p)->lpVtbl->Release(p)
112 /*** IDirect3DRM methods ***/
113 #define IDirect3DRM_CreateObject(p,a,b,c,d)                       (p)->lpVtbl->CreateObject(p,a,b,d)
114 #define IDirect3DRM_CreateFrame(p,a,b)                            (p)->lpVtbl->CreateFrame(p,a,b)
115 #define IDirect3DRM_CreateMesh(p,a)                               (p)->lpVtbl->CreateMesh(p,a)
116 #define IDirect3DRM_CreateMeshBuilder(p,a)                        (p)->lpVtbl->CreateMeshBuilder(p,a)
117 #define IDirect3DRM_CreateFace(p,a)                               (p)->lpVtbl->CreateFace(p,a)
118 #define IDirect3DRM_CreateAnimation(p,a)                          (p)->lpVtbl->CreateAnimation(p,a)
119 #define IDirect3DRM_CreateAnimationSet(p,a)                       (p)->lpVtbl->CreateAnimationSet(p,a)
120 #define IDirect3DRM_CreateTexture(p,a,b)                          (p)->lpVtbl->CreateTexture(p,a,b)
121 #define IDirect3DRM_CreateLight(p,a,b,c)                          (p)->lpVtbl->CreateLight(p,a,b,c)
122 #define IDirect3DRM_CreateLightRGB(p,a,b,c,d,e)                   (p)->lpVtbl->CreateLightRGB(p,a,b,c,d,e)
123 #define IDirect3DRM_CreateMaterial(p,a,b)                         (p)->lpVtbl->CreateMaterial(p,a,b)
124 #define IDirect3DRM_CreateDevice(p,a,b,c)                         (p)->lpVtbl->CreateDevice(p,a,b,c)
125 #define IDirect3DRM_CreateDeviceFromSurface(p,a,b,c,d)            (p)->lpVtbl->CreateDeviceFromSurface(p,a,b,c,d)
126 #define IDirect3DRM_CreateDeviceFromD3D(p,a,b,c)                  (p)->lpVtbl->CreateDeviceFromD3D(p,a,b,c)
127 #define IDirect3DRM_CreateDeviceFromClipper(p,a,b,c,d,e)          (p)->lpVtbl->CreateDeviceFromClipper(p,a,b,c,d,e)
128 #define IDirect3DRM_CreateTextureFromSurface(p,a,b)               (p)->lpVtbl->CreateTextureFromSurface(p,a,b)
129 #define IDirect3DRM_CreateShadow(p,a,b,c,d,e,f,g,h,i)             (p)->lpVtbl->CreateShadow(p,a,b,c,d,e,f,g,h,i)
130 #define IDirect3DRM_CreateViewport(p,a,b,c,d,e,f,g)               (p)->lpVtbl->CreateViewport(p,a,b,c,d,e,f,g)
131 #define IDirect3DRM_CreateWrap(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q) (p)->lpVtbl->CreateWrap(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q)
132 #define IDirect3DRM_CreateUserVisual(p,a,b,c)                     (p)->lpVtbl->CreateUserVisual(p,a,b,c)
133 #define IDirect3DRM_LoadTexture(p,a,b)                            (p)->lpVtbl->LoadTexture(p,a,b)
134 #define IDirect3DRM_LoadTextureFromResource(p,a,b)                (p)->lpVtbl->LoadTextureFromResource(p,a,b)
135 #define IDirect3DRM_SetSearchPath(p,a)                            (p)->lpVtbl->SetSearchPath(p,a)
136 #define IDirect3DRM_AddSearchPath(p,a)                            (p)->lpVtbl->AddSearchPath(p,a)
137 #define IDirect3DRM_GetSearchPath(p,a,b)                          (p)->lpVtbl->GetSearchPath(p,a,b)
138 #define IDirect3DRM_SetDefaultTextureColors(p,a)                  (p)->lpVtbl->SetDefaultTextureColors(p,a)
139 #define IDirect3DRM_SetDefaultTextureShades(p,a)                  (p)->lpVtbl->SetDefaultTextureShades(p,a)
140 #define IDirect3DRM_GetDevices(p,a)                               (p)->lpVtbl->GetDevices(p,a)
141 #define IDirect3DRM_GetNamedObject(p,a,b)                         (p)->lpVtbl->GetNamedObject(p,a,b)
142 #define IDirect3DRM_EnumerateObjects(p,a,b)                       (p)->lpVtbl->EnumerateObjects(p,a,b)
143 #define IDirect3DRM_Load(p,a,b,c,d,e,f,g,h,i,j)                   (p)->lpVtbl->Load(p,a,b,c,d,e,f,g,h,i,j)
144 #define IDirect3DRM_Tick(p,a)                                     (p)->lpVtbl->Tick(p,a)
145 #else
146 /*** IUnknown methods ***/
147 #define IDirect3DRM_QueryInterface(p,a,b)                         (p)->QueryInterface(a,b)
148 #define IDirect3DRM_AddRef(p)                                     (p)->AddRef()
149 #define IDirect3DRM_Release(p)                                    (p)->Release()
150 /*** IDirect3DRM methods ***/
151 #define IDirect3DRM_CreateObject(p,a,b,c,d)                       (p)->CreateObject(a,b,d)
152 #define IDirect3DRM_CreateFrame(p,a,b)                            (p)->CreateFrame(a,b)
153 #define IDirect3DRM_CreateMesh(p,a)                               (p)->CreateMesh(a)
154 #define IDirect3DRM_CreateMeshBuilder(p,a)                        (p)->CreateMeshBuilder(a)
155 #define IDirect3DRM_CreateFace(p,a)                               (p)->CreateFace(a)
156 #define IDirect3DRM_CreateAnimation(p,a)                          (p)->CreateAnimation(a)
157 #define IDirect3DRM_CreateAnimationSet(p,a)                       (p)->CreateAnimationSet(a)
158 #define IDirect3DRM_CreateTexture(p,a,b)                          (p)->CreateTexture(a,b)
159 #define IDirect3DRM_CreateLight(p,a,b,c)                          (p)->CreateLight(a,b,c)
160 #define IDirect3DRM_CreateLightRGB(p,a,b,c,d,e)                   (p)->CreateLightRGB(a,b,c,d,e)
161 #define IDirect3DRM_CreateMaterial(p,a,b)                         (p)->CreateMaterial(a,b)
162 #define IDirect3DRM_CreateDevice(p,a,b,c)                         (p)->CreateDevice(a,b,c)
163 #define IDirect3DRM_CreateDeviceFromSurface(p,a,b,c,d)            (p)->CreateDeviceFromSurface(a,b,c,d)
164 #define IDirect3DRM_CreateDeviceFromD3D(p,a,b,c)                  (p)->CreateDeviceFromD3D(a,b,c)
165 #define IDirect3DRM_CreateDeviceFromClipper(p,a,b,c,d,e)          (p)->CreateDeviceFromClipper(a,b,c,d,e)
166 #define IDirect3DRM_CreateTextureFromSurface(p,a,b)               (p)->CreateTextureFromSurface(a,b)
167 #define IDirect3DRM_CreateShadow(p,a,b,c,d,e,f,g,h,i)             (p)->CreateShadow(a,b,c,d,e,f,g,h,i)
168 #define IDirect3DRM_CreateViewport(p,a,b,c,d,e,f,g)               (p)->CreateViewport(a,b,c,d,e,f,g)
169 #define IDirect3DRM_CreateWrap(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q) (p)->CreateWrap(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q)
170 #define IDirect3DRM_CreateUserVisual(p,a,b,c)                     (p)->CreateUserVisual(a,b,c)
171 #define IDirect3DRM_LoadTexture(p,a,b)                            (p)->LoadTexture(a,b)
172 #define IDirect3DRM_LoadTextureFromResource(p,a,b)                (p)->LoadTextureFromResource(a,b)
173 #define IDirect3DRM_SetSearchPath(p,a)                            (p)->SetSearchPath(a)
174 #define IDirect3DRM_AddSearchPath(p,a)                            (p)->AddSearchPath(a)
175 #define IDirect3DRM_GetSearchPath(p,a,b)                          (p)->GetSearchPath(a,b)
176 #define IDirect3DRM_SetDefaultTextureColors(p,a)                  (p)->SetDefaultTextureColors(a)
177 #define IDirect3DRM_SetDefaultTextureShades(p,a)                  (p)->SetDefaultTextureShades(a)
178 #define IDirect3DRM_GetDevices(p,a)                               (p)->GetDevices(a)
179 #define IDirect3DRM_GetNamedObject(p,a,b)                         (p)->GetNamedObject(a,b)
180 #define IDirect3DRM_EnumerateObjects(p,a,b)                       (p)->EnumerateObjects(a,b)
181 #define IDirect3DRM_Load(p,a,b,c,d,e,f,g,h,i,j)                   (p)->Load(a,b,c,d,e,f,g,h,i,j)
182 #define IDirect3DRM_Tick(p,a)                                     (p)->Tick(a)
183 #endif
184
185 /*****************************************************************************
186  * IDirect3DRM2 interface
187  */
188 #ifdef WINE_NO_UNICODE_MACROS
189 #undef GetClassName
190 #endif
191 #define INTERFACE IDirect3DRM2
192 DECLARE_INTERFACE_(IDirect3DRM2,IUnknown)
193 {
194     /*** IUnknown methods ***/
195     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
196     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
197     STDMETHOD_(ULONG,Release)(THIS) PURE;
198     /*** IDirect3DRM2 methods ***/
199     STDMETHOD(CreateObject)(THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE;
200     STDMETHOD(CreateFrame)(THIS_ IDirect3DRMFrame *parent, IDirect3DRMFrame2 **frame) PURE;
201     STDMETHOD(CreateMesh)(THIS_ IDirect3DRMMesh **mesh) PURE;
202     STDMETHOD(CreateMeshBuilder)(THIS_ IDirect3DRMMeshBuilder2 **mesh_builder) PURE;
203     STDMETHOD(CreateFace)(THIS_ IDirect3DRMFace **face) PURE;
204     STDMETHOD(CreateAnimation)(THIS_ LPDIRECT3DRMANIMATION *) PURE;
205     STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET *) PURE;
206     STDMETHOD(CreateTexture)(THIS_ D3DRMIMAGE *image, IDirect3DRMTexture2 **texture) PURE;
207     STDMETHOD(CreateLight)(THIS_ D3DRMLIGHTTYPE type, D3DCOLOR color, IDirect3DRMLight **light) PURE;
208     STDMETHOD(CreateLightRGB)(THIS_ D3DRMLIGHTTYPE type, D3DVALUE r, D3DVALUE g, D3DVALUE b,
209             IDirect3DRMLight **light) PURE;
210     STDMETHOD(CreateMaterial)(THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL *) PURE;
211     STDMETHOD(CreateDevice)(THIS_ DWORD width, DWORD height, IDirect3DRMDevice2 **device) PURE;
212     STDMETHOD(CreateDeviceFromSurface)(THIS_ GUID *guid, IDirectDraw *ddraw,
213             IDirectDrawSurface *surface, IDirect3DRMDevice2 **device) PURE;
214     STDMETHOD(CreateDeviceFromD3D)(THIS_ IDirect3D2 *d3d, IDirect3DDevice2 *d3d_device,
215             IDirect3DRMDevice2 **device) PURE;
216     STDMETHOD(CreateDeviceFromClipper)(THIS_ IDirectDrawClipper *clipper, GUID *guid,
217             int width, int height, IDirect3DRMDevice2 **device) PURE;
218     STDMETHOD(CreateTextureFromSurface)(THIS_ IDirectDrawSurface *surface,
219             IDirect3DRMTexture2 **texture) PURE;
220     STDMETHOD(CreateShadow)(THIS_ IDirect3DRMVisual *visual, IDirect3DRMLight *light,
221             D3DVALUE px, D3DVALUE py, D3DVALUE pz, D3DVALUE nx, D3DVALUE ny, D3DVALUE nz,
222             IDirect3DRMVisual **shadow) PURE;
223     STDMETHOD(CreateViewport)(THIS_ IDirect3DRMDevice *device, IDirect3DRMFrame *camera,
224             DWORD x, DWORD y, DWORD width, DWORD height, IDirect3DRMViewport **viewport) PURE;
225     STDMETHOD(CreateWrap)(THIS_ D3DRMWRAPTYPE type, IDirect3DRMFrame *reference, D3DVALUE ox, D3DVALUE oy, D3DVALUE oz,
226         D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, D3DVALUE ux, D3DVALUE uy, D3DVALUE uz, D3DVALUE ou, D3DVALUE ov,
227         D3DVALUE su, D3DVALUE sv, IDirect3DRMWrap **wrap) PURE;
228     STDMETHOD(CreateUserVisual)(THIS_ D3DRMUSERVISUALCALLBACK, LPVOID pArg, LPDIRECT3DRMUSERVISUAL *) PURE;
229     STDMETHOD(LoadTexture)(THIS_ const char *, LPDIRECT3DRMTEXTURE2 *) PURE;
230     STDMETHOD(LoadTextureFromResource)(THIS_ HMODULE hModule, LPCSTR /* LPCTSTR */ strName, LPCSTR /* LPCTSTR */ strType, LPDIRECT3DRMTEXTURE2 *) PURE;
231     STDMETHOD(SetSearchPath)(THIS_ LPCSTR) PURE;
232     STDMETHOD(AddSearchPath)(THIS_ LPCSTR) PURE;
233     STDMETHOD(GetSearchPath)(THIS_ DWORD *size_return, LPSTR path_return) PURE;
234     STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE;
235     STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE;
236     STDMETHOD(GetDevices)(THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE;
237     STDMETHOD(GetNamedObject)(THIS_ const char *name, IDirect3DRMObject **object) PURE;
238     STDMETHOD(EnumerateObjects)(THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE;
239     STDMETHOD(Load)(THIS_ void *source, void *object_id, IID **iids, DWORD iid_count, D3DRMLOADOPTIONS flags,
240             D3DRMLOADCALLBACK load_cb, void *load_ctx, D3DRMLOADTEXTURECALLBACK load_tex_cb, void *load_tex_ctx,
241             IDirect3DRMFrame *parent_frame) PURE;
242     STDMETHOD(Tick)(THIS_ D3DVALUE) PURE;
243     STDMETHOD(CreateProgressiveMesh)(THIS_ LPDIRECT3DRMPROGRESSIVEMESH *) PURE;
244 };
245 #undef INTERFACE
246
247 #if !defined(__cplusplus) || defined(CINTERFACE)
248 /*** IUnknown methods ***/
249 #define IDirect3DRM2_QueryInterface(p,a,b)                         (p)->lpVtbl->QueryInterface(p,a,b)
250 #define IDirect3DRM2_AddRef(p)                                     (p)->lpVtbl->AddRef(p)
251 #define IDirect3DRM2_Release(p)                                    (p)->lpVtbl->Release(p)
252 /*** IDirect3DRM2 methods ***/
253 #define IDirect3DRM2_CreateObject(p,a,b,c,d)                       (p)->lpVtbl->CreateObject(p,a,b,d)
254 #define IDirect3DRM2_CreateFrame(p,a,b)                            (p)->lpVtbl->CreateFrame(p,a,b)
255 #define IDirect3DRM2_CreateMesh(p,a)                               (p)->lpVtbl->CreateMesh(p,a)
256 #define IDirect3DRM2_CreateMeshBuilder(p,a)                        (p)->lpVtbl->CreateMeshBuilder(p,a)
257 #define IDirect3DRM2_CreateFace(p,a)                               (p)->lpVtbl->CreateFace(p,a)
258 #define IDirect3DRM2_CreateAnimation(p,a)                          (p)->lpVtbl->CreateAnimation(p,a)
259 #define IDirect3DRM2_CreateAnimationSet(p,a)                       (p)->lpVtbl->CreateAnimationSet(p,a)
260 #define IDirect3DRM2_CreateTexture(p,a,b)                          (p)->lpVtbl->CreateTexture(p,a,b)
261 #define IDirect3DRM2_CreateLight(p,a,b,c)                          (p)->lpVtbl->CreateLight(p,a,b,c)
262 #define IDirect3DRM2_CreateLightRGB(p,a,b,c,d,e)                   (p)->lpVtbl->CreateLightRGB(p,a,b,c,d,e)
263 #define IDirect3DRM2_CreateMaterial(p,a,b)                         (p)->lpVtbl->CreateMaterial(p,a,b)
264 #define IDirect3DRM2_CreateDevice(p,a,b,c)                         (p)->lpVtbl->CreateDevice(p,a,b,c)
265 #define IDirect3DRM2_CreateDeviceFromSurface(p,a,b,c,d)            (p)->lpVtbl->CreateDeviceFromSurface(p,a,b,c,d)
266 #define IDirect3DRM2_CreateDeviceFromD3D(p,a,b,c)                  (p)->lpVtbl->CreateDeviceFromD3D(p,a,b,c)
267 #define IDirect3DRM2_CreateDeviceFromClipper(p,a,b,c,d,e)          (p)->lpVtbl->CreateDeviceFromClipper(p,a,b,c,d,e)
268 #define IDirect3DRM2_CreateTextureFromSurface(p,a,b)               (p)->lpVtbl->CreateTextureFromSurface(p,a,b)
269 #define IDirect3DRM2_CreateShadow(p,a,b,c,d,e,f,g,h,i)             (p)->lpVtbl->CreateShadow(p,a,b,c,d,e,f,g,h,i)
270 #define IDirect3DRM2_CreateViewport(p,a,b,c,d,e,f,g)               (p)->lpVtbl->CreateViewport(p,a,b,c,d,e,f,g)
271 #define IDirect3DRM2_CreateWrap(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q) (p)->lpVtbl->CreateWrap(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q)
272 #define IDirect3DRM2_CreateUserVisual(p,a,b,c)                     (p)->lpVtbl->CreateUserVisual(p,a,b,c)
273 #define IDirect3DRM2_LoadTexture(p,a,b)                            (p)->lpVtbl->LoadTexture(p,a,b)
274 #define IDirect3DRM2_LoadTextureFromResource(p,a,b,c,d)            (p)->lpVtbl->LoadTextureFromResource(p,a,b,c,d)
275 #define IDirect3DRM2_SetSearchPath(p,a)                            (p)->lpVtbl->SetSearchPath(p,a)
276 #define IDirect3DRM2_AddSearchPath(p,a)                            (p)->lpVtbl->AddSearchPath(p,a)
277 #define IDirect3DRM2_GetSearchPath(p,a,b)                          (p)->lpVtbl->GetSearchPath(p,a,b)
278 #define IDirect3DRM2_SetDefaultTextureColors(p,a)                  (p)->lpVtbl->SetDefaultTextureColors(p,a)
279 #define IDirect3DRM2_SetDefaultTextureShades(p,a)                  (p)->lpVtbl->SetDefaultTextureShades(p,a)
280 #define IDirect3DRM2_GetDevices(p,a)                               (p)->lpVtbl->GetDevices(p,a)
281 #define IDirect3DRM2_GetNamedObject(p,a,b)                         (p)->lpVtbl->GetNamedObject(p,a,b)
282 #define IDirect3DRM2_EnumerateObjects(p,a,b)                       (p)->lpVtbl->EnumerateObjects(p,a,b)
283 #define IDirect3DRM2_Load(p,a,b,c,d,e,f,g,h,i,j)                   (p)->lpVtbl->Load(p,a,b,c,d,e,f,g,h,i,j)
284 #define IDirect3DRM2_Tick(p,a)                                     (p)->lpVtbl->Tick(p,a)
285 #define IDirect3DRM2_CreateProgressiveMesh(p,a)                    (p)->lpVtbl->CreateProgressiveMesh(p,a)
286 #else
287 /*** IUnknown methods ***/
288 #define IDirect3DRM2_QueryInterface(p,a,b)                         (p)->QueryInterface(a,b)
289 #define IDirect3DRM2_AddRef(p)                                     (p)->AddRef()
290 #define IDirect3DRM2_Release(p)                                    (p)->Release()
291 /*** IDirect3DRM2 methods ***/
292 #define IDirect3DRM2_CreateObject(p,a,b,c,d)                       (p)->CreateObject(a,b,d)
293 #define IDirect3DRM2_CreateFrame(p,a,b)                            (p)->CreateFrame(a,b)
294 #define IDirect3DRM2_CreateMesh(p,a)                               (p)->CreateMesh(a)
295 #define IDirect3DRM2_CreateMeshBuilder(p,a)                        (p)->CreateMeshBuilder(a)
296 #define IDirect3DRM2_CreateFace(p,a)                               (p)->CreateFace(a)
297 #define IDirect3DRM2_CreateAnimation(p,a)                          (p)->CreateAnimation(a)
298 #define IDirect3DRM2_CreateAnimationSet(p,a)                       (p)->CreateAnimationSet(a)
299 #define IDirect3DRM2_CreateTexture(p,a,b)                          (p)->CreateTexture(a,b)
300 #define IDirect3DRM2_CreateLight(p,a,b,c)                          (p)->CreateLight(a,b,c)
301 #define IDirect3DRM2_CreateLightRGB(p,a,b,c,d,e)                   (p)->CreateLightRGB(a,b,c,d,e)
302 #define IDirect3DRM2_CreateMaterial(p,a,b)                         (p)->CreateMaterial(a,b)
303 #define IDirect3DRM2_CreateDevice(p,a,b,c)                         (p)->CreateDevice(a,b,c)
304 #define IDirect3DRM2_CreateDeviceFromSurface(p,a,b,c,d)            (p)->CreateDeviceFromSurface(a,b,c,d)
305 #define IDirect3DRM2_CreateDeviceFromD3D(p,a,b,c)                  (p)->CreateDeviceFromD3D(a,b,c)
306 #define IDirect3DRM2_CreateDeviceFromClipper(p,a,b,c,d,e)          (p)->CreateDeviceFromClipper(a,b,c,d,e)
307 #define IDirect3DRM2_CreateTextureFromSurface(p,a,b)               (p)->CreateTextureFromSurface(a,b)
308 #define IDirect3DRM2_CreateShadow(p,a,b,c,d,e,f,g,h,i)             (p)->CreateShadow(a,b,c,d,e,f,g,h,i)
309 #define IDirect3DRM2_CreateViewport(p,a,b,c,d,e,f,g)               (p)->CreateViewport(a,b,c,d,e,f,g)
310 #define IDirect3DRM2_CreateWrap(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q) (p)->CreateWrap(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q)
311 #define IDirect3DRM2_CreateUserVisual(p,a,b,c)                     (p)->CreateUserVisual(a,b,c)
312 #define IDirect3DRM2_LoadTexture(p,a,b)                            (p)->LoadTexture(a,b)
313 #define IDirect3DRM2_LoadTextureFromResource(p,a,b,c,d)            (p)->LoadTextureFromResource(a,b,c,d)
314 #define IDirect3DRM2_SetSearchPath(p,a)                            (p)->SetSearchPath(a)
315 #define IDirect3DRM2_AddSearchPath(p,a)                            (p)->AddSearchPath(a)
316 #define IDirect3DRM2_GetSearchPath(p,a,b)                          (p)->GetSearchPath(a,b)
317 #define IDirect3DRM2_SetDefaultTextureColors(p,a)                  (p)->SetDefaultTextureColors(a)
318 #define IDirect3DRM2_SetDefaultTextureShades(p,a)                  (p)->SetDefaultTextureShades(a)
319 #define IDirect3DRM2_GetDevices(p,a)                               (p)->GetDevices(a)
320 #define IDirect3DRM2_GetNamedObject(p,a,b)                         (p)->GetNamedObject(a,b)
321 #define IDirect3DRM2_EnumerateObjects(p,a,b)                       (p)->EnumerateObjects(a,b)
322 #define IDirect3DRM2_Load(p,a,b,c,d,e,f,g,h,i,j)                   (p)->Load(a,b,c,d,e,f,g,h,i,j)
323 #define IDirect3DRM2_Tick(p,a)                                     (p)->Tick(a)
324 #define IDirect3DRM2_CreateProgressiveMesh(p,a)                    (p)->CreateProgressiveMesh(p,a)
325 #endif
326
327 /*****************************************************************************
328  * IDirect3DRM3 interface
329  */
330 #ifdef WINE_NO_UNICODE_MACROS
331 #undef GetClassName
332 #endif
333 #define INTERFACE IDirect3DRM3
334 DECLARE_INTERFACE_(IDirect3DRM3,IUnknown)
335 {
336     /*** IUnknown methods ***/
337     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
338     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
339     STDMETHOD_(ULONG,Release)(THIS) PURE;
340     /*** IDirect3DRM2 methods ***/
341     STDMETHOD(CreateObject)(THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE;
342     STDMETHOD(CreateFrame)(THIS_ IDirect3DRMFrame3 *parent, IDirect3DRMFrame3 **frame) PURE;
343     STDMETHOD(CreateMesh)(THIS_ IDirect3DRMMesh **mesh) PURE;
344     STDMETHOD(CreateMeshBuilder)(THIS_ IDirect3DRMMeshBuilder3 **mesh_builder) PURE;
345     STDMETHOD(CreateFace)(THIS_ IDirect3DRMFace2 **face) PURE;
346     STDMETHOD(CreateAnimation)(THIS_ LPDIRECT3DRMANIMATION2 *) PURE;
347     STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET2 *) PURE;
348     STDMETHOD(CreateTexture)(THIS_ D3DRMIMAGE *image, IDirect3DRMTexture3 **texture) PURE;
349     STDMETHOD(CreateLight)(THIS_ D3DRMLIGHTTYPE type, D3DCOLOR color, IDirect3DRMLight **light) PURE;
350     STDMETHOD(CreateLightRGB)(THIS_ D3DRMLIGHTTYPE type, D3DVALUE r, D3DVALUE g, D3DVALUE b,
351             IDirect3DRMLight **light) PURE;
352     STDMETHOD(CreateMaterial)(THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL2 *) PURE;
353     STDMETHOD(CreateDevice)(THIS_ DWORD width, DWORD height, IDirect3DRMDevice3 **device) PURE;
354     STDMETHOD(CreateDeviceFromSurface)(THIS_ GUID *guid, IDirectDraw *ddraw,
355             IDirectDrawSurface *surface, IDirect3DRMDevice3 **device) PURE;
356     STDMETHOD(CreateDeviceFromD3D)(THIS_ IDirect3D2 *d3d, IDirect3DDevice2 *d3d_device,
357             IDirect3DRMDevice3 **device) PURE;
358     STDMETHOD(CreateDeviceFromClipper)(THIS_ IDirectDrawClipper *clipper, GUID *guid,
359             int width, int height, IDirect3DRMDevice3 **device) PURE;
360     STDMETHOD(CreateTextureFromSurface)(THIS_ IDirectDrawSurface *surface,
361             IDirect3DRMTexture3 **texture) PURE;
362     STDMETHOD(CreateShadow)(THIS_ IUnknown *object, IDirect3DRMLight *light, D3DVALUE px, D3DVALUE py, D3DVALUE pz,
363             D3DVALUE nx, D3DVALUE ny, D3DVALUE nz, IDirect3DRMShadow2 **shadow) PURE;
364     STDMETHOD(CreateViewport)(THIS_ IDirect3DRMDevice3 *device, IDirect3DRMFrame3 *camera,
365             DWORD x, DWORD y, DWORD width, DWORD height, IDirect3DRMViewport2 **viewport) PURE;
366     STDMETHOD(CreateWrap)(THIS_ D3DRMWRAPTYPE type, IDirect3DRMFrame3 *reference,
367             D3DVALUE ox, D3DVALUE oy, D3DVALUE oz, D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
368             D3DVALUE ux, D3DVALUE uy, D3DVALUE uz, D3DVALUE ou, D3DVALUE ov, D3DVALUE su, D3DVALUE sv,
369             IDirect3DRMWrap **wrap) PURE;
370     STDMETHOD(CreateUserVisual)(THIS_ D3DRMUSERVISUALCALLBACK, LPVOID pArg, LPDIRECT3DRMUSERVISUAL *) PURE;
371     STDMETHOD(LoadTexture)(THIS_ const char *, LPDIRECT3DRMTEXTURE3 *) PURE;
372     STDMETHOD(LoadTextureFromResource)(THIS_ HMODULE hModule, LPCSTR /* LPCTSTR */ strName, LPCSTR  /* LPCTSTR */ strType, LPDIRECT3DRMTEXTURE3 *) PURE;
373     STDMETHOD(SetSearchPath)(THIS_ LPCSTR) PURE;
374     STDMETHOD(AddSearchPath)(THIS_ LPCSTR) PURE;
375     STDMETHOD(GetSearchPath)(THIS_ DWORD *size_return, LPSTR path_return) PURE;
376     STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE;
377     STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE;
378     STDMETHOD(GetDevices)(THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE;
379     STDMETHOD(GetNamedObject)(THIS_ const char *name, IDirect3DRMObject **object) PURE;
380     STDMETHOD(EnumerateObjects)(THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE;
381     STDMETHOD(Load)(THIS_ void *source, void *object_id, IID **iids, DWORD iid_count, D3DRMLOADOPTIONS flags,
382             D3DRMLOADCALLBACK load_cb, void *load_ctx, D3DRMLOADTEXTURECALLBACK load_tex_cb, void *load_tex_ctx,
383             IDirect3DRMFrame3 *parent_frame) PURE;
384     STDMETHOD(Tick)(THIS_ D3DVALUE) PURE;
385     STDMETHOD(CreateProgressiveMesh)(THIS_ LPDIRECT3DRMPROGRESSIVEMESH) PURE;
386     STDMETHOD(RegisterClient)(THIS_ REFGUID rguid, LPDWORD lpdwID) PURE;
387     STDMETHOD(UnregisterClient)(THIS_ REFGUID rguid) PURE;
388     STDMETHOD(CreateClippedVisual)(THIS_ IDirect3DRMVisual *visual, IDirect3DRMClippedVisual **clipped_visual) PURE;
389     STDMETHOD(SetOptions)(THIS_ DWORD) PURE;
390     STDMETHOD(GetOptions)(THIS_ LPDWORD) PURE;
391 };
392 #undef INTERFACE
393
394 #if !defined(__cplusplus) || defined(CINTERFACE)
395 /*** IUnknown methods ***/
396 #define IDirect3DRM3_QueryInterface(p,a,b)                         (p)->lpVtbl->QueryInterface(p,a,b)
397 #define IDirect3DRM3_AddRef(p)                                     (p)->lpVtbl->AddRef(p)
398 #define IDirect3DRM3_Release(p)                                    (p)->lpVtbl->Release(p)
399 /*** IDirect3DRM3 methods ***/
400 #define IDirect3DRM3_CreateObject(p,a,b,c,d)                       (p)->lpVtbl->CreateObject(p,a,b,d)
401 #define IDirect3DRM3_CreateFrame(p,a,b)                            (p)->lpVtbl->CreateFrame(p,a,b)
402 #define IDirect3DRM3_CreateMesh(p,a)                               (p)->lpVtbl->CreateMesh(p,a)
403 #define IDirect3DRM3_CreateMeshBuilder(p,a)                        (p)->lpVtbl->CreateMeshBuilder(p,a)
404 #define IDirect3DRM3_CreateFace(p,a)                               (p)->lpVtbl->CreateFace(p,a)
405 #define IDirect3DRM3_CreateAnimation(p,a)                          (p)->lpVtbl->CreateAnimation(p,a)
406 #define IDirect3DRM3_CreateAnimationSet(p,a)                       (p)->lpVtbl->CreateAnimationSet(p,a)
407 #define IDirect3DRM3_CreateTexture(p,a,b)                          (p)->lpVtbl->CreateTexture(p,a,b)
408 #define IDirect3DRM3_CreateLight(p,a,b,c)                          (p)->lpVtbl->CreateLight(p,a,b,c)
409 #define IDirect3DRM3_CreateLightRGB(p,a,b,c,d,e)                   (p)->lpVtbl->CreateLightRGB(p,a,b,c,d,e)
410 #define IDirect3DRM3_CreateMaterial(p,a,b)                         (p)->lpVtbl->CreateMaterial(p,a,b)
411 #define IDirect3DRM3_CreateDevice(p,a,b,c)                         (p)->lpVtbl->CreateDevice(p,a,b,c)
412 #define IDirect3DRM3_CreateDeviceFromSurface(p,a,b,c,d)            (p)->lpVtbl->CreateDeviceFromSurface(p,a,b,c,d)
413 #define IDirect3DRM3_CreateDeviceFromD3D(p,a,b,c)                  (p)->lpVtbl->CreateDeviceFromD3D(p,a,b,c)
414 #define IDirect3DRM3_CreateDeviceFromClipper(p,a,b,c,d,e)          (p)->lpVtbl->CreateDeviceFromClipper(p,a,b,c,d,e)
415 #define IDirect3DRM3_CreateTextureFromSurface(p,a,b)               (p)->lpVtbl->CreateTextureFromSurface(p,a,b)
416 #define IDirect3DRM3_CreateShadow(p,a,b,c,d,e,f,g,h,i)             (p)->lpVtbl->CreateShadow(p,a,b,c,d,e,f,g,h,i)
417 #define IDirect3DRM3_CreateViewport(p,a,b,c,d,e,f,g)               (p)->lpVtbl->CreateViewport(p,a,b,c,d,e,f,g)
418 #define IDirect3DRM3_CreateWrap(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q) (p)->lpVtbl->CreateWrap(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q)
419 #define IDirect3DRM3_CreateUserVisual(p,a,b,c)                     (p)->lpVtbl->CreateUserVisual(p,a,b,c)
420 #define IDirect3DRM3_LoadTexture(p,a,b)                            (p)->lpVtbl->LoadTexture(p,a,b)
421 #define IDirect3DRM3_LoadTextureFromResource(p,a,b,c,d)            (p)->lpVtbl->LoadTextureFromResource(p,a,b,c,d)
422 #define IDirect3DRM3_SetSearchPath(p,a)                            (p)->lpVtbl->SetSearchPath(p,a)
423 #define IDirect3DRM3_AddSearchPath(p,a)                            (p)->lpVtbl->AddSearchPath(p,a)
424 #define IDirect3DRM3_GetSearchPath(p,a,b)                          (p)->lpVtbl->GetSearchPath(p,a,b)
425 #define IDirect3DRM3_SetDefaultTextureColors(p,a)                  (p)->lpVtbl->SetDefaultTextureColors(p,a)
426 #define IDirect3DRM3_SetDefaultTextureShades(p,a)                  (p)->lpVtbl->SetDefaultTextureShades(p,a)
427 #define IDirect3DRM3_GetDevices(p,a)                               (p)->lpVtbl->GetDevices(p,a)
428 #define IDirect3DRM3_GetNamedObject(p,a,b)                         (p)->lpVtbl->GetNamedObject(p,a,b)
429 #define IDirect3DRM3_EnumerateObjects(p,a,b)                       (p)->lpVtbl->EnumerateObjects(p,a,b)
430 #define IDirect3DRM3_Load(p,a,b,c,d,e,f,g,h,i,j)                   (p)->lpVtbl->Load(p,a,b,c,d,e,f,g,h,i,j)
431 #define IDirect3DRM3_Tick(p,a)                                     (p)->lpVtbl->Tick(p,a)
432 #define IDirect3DRM3_CreateProgressiveMesh(p,a)                    (p)->lpVtbl->CreateProgressiveMesh(p,a)
433 #define IDirect3DRM3_RegisterClient(p,a,b)                         (p)->lpVtbl->RegisterClient(p,a,b)
434 #define IDirect3DRM3_UnregisterClient(p,a)                         (p)->lpVtbl->UnregisterClient(p,a)
435 #define IDirect3DRM3_CreateClippedVisual(p,ab)                     (p)->lpVtbl->CreateClippedVisual(p,a,b)
436 #define IDirect3DRM3_SetOptions(p,a)                               (p)->lpVtbl->SetOptions(p,a)
437 #define IDirect3DRM3_GetOptions(p,a)                               (p)->lpVtbl->GetOptions(p,a)
438 #else
439 /*** IUnknown methods ***/
440 #define IDirect3DRM3_QueryInterface(p,a,b)                         (p)->QueryInterface(a,b)
441 #define IDirect3DRM3_AddRef(p)                                     (p)->AddRef()
442 #define IDirect3DRM3_Release(p)                                    (p)->Release()
443 /*** IDirect3DRM3 methods ***/
444 #define IDirect3DRM3_CreateObject(p,a,b,c,d)                       (p)->CreateObject(a,b,d)
445 #define IDirect3DRM3_CreateFrame(p,a,b)                            (p)->CreateFrame(a,b)
446 #define IDirect3DRM3_CreateMesh(p,a)                               (p)->CreateMesh(a)
447 #define IDirect3DRM3_CreateMeshBuilder(p,a)                        (p)->CreateMeshBuilder(a)
448 #define IDirect3DRM3_CreateFace(p,a)                               (p)->CreateFace(a)
449 #define IDirect3DRM3_CreateAnimation(p,a)                          (p)->CreateAnimation(a)
450 #define IDirect3DRM3_CreateAnimationSet(p,a)                       (p)->CreateAnimationSet(a)
451 #define IDirect3DRM3_CreateTexture(p,a,b)                          (p)->CreateTexture(a,b)
452 #define IDirect3DRM3_CreateLight(p,a,b,c)                          (p)->CreateLight(a,b,c)
453 #define IDirect3DRM3_CreateLightRGB(p,a,b,c,d,e)                   (p)->CreateLightRGB(a,b,c,d,e)
454 #define IDirect3DRM3_CreateMaterial(p,a,b)                         (p)->CreateMaterial(a,b)
455 #define IDirect3DRM3_CreateDevice(p,a,b,c)                         (p)->CreateDevice(a,b,c)
456 #define IDirect3DRM3_CreateDeviceFromSurface(p,a,b,c,d)            (p)->CreateDeviceFromSurface(a,b,c,d)
457 #define IDirect3DRM3_CreateDeviceFromD3D(p,a,b,c)                  (p)->CreateDeviceFromD3D(a,b,c)
458 #define IDirect3DRM3_CreateDeviceFromClipper(p,a,b,c,d,e)          (p)->CreateDeviceFromClipper(a,b,c,d,e)
459 #define IDirect3DRM3_CreateTextureFromSurface(p,a,b)               (p)->CreateTextureFromSurface(a,b)
460 #define IDirect3DRM3_CreateShadow(p,a,b,c,d,e,f,g,h,i)             (p)->CreateShadow(a,b,c,d,e,f,g,h,i)
461 #define IDirect3DRM3_CreateViewport(p,a,b,c,d,e,f,g)               (p)->CreateViewport(a,b,c,d,e,f,g)
462 #define IDirect3DRM3_CreateWrap(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q) (p)->CreateWrap(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q)
463 #define IDirect3DRM3_CreateUserVisual(p,a,b,c)                     (p)->CreateUserVisual(a,b,c)
464 #define IDirect3DRM3_LoadTexture(p,a,b)                            (p)->LoadTexture(a,b)
465 #define IDirect3DRM3_LoadTextureFromResource(p,a,b,c,d)            (p)->LoadTextureFromResource(a,b,c,d)
466 #define IDirect3DRM3_SetSearchPath(p,a)                            (p)->SetSearchPath(a)
467 #define IDirect3DRM3_AddSearchPath(p,a)                            (p)->AddSearchPath(a)
468 #define IDirect3DRM3_GetSearchPath(p,a,b)                          (p)->GetSearchPath(a,b)
469 #define IDirect3DRM3_SetDefaultTextureColors(p,a)                  (p)->SetDefaultTextureColors(a)
470 #define IDirect3DRM3_SetDefaultTextureShades(p,a)                  (p)->SetDefaultTextureShades(a)
471 #define IDirect3DRM3_GetDevices(p,a)                               (p)->GetDevices(a)
472 #define IDirect3DRM3_GetNamedObject(p,a,b)                         (p)->GetNamedObject(a,b)
473 #define IDirect3DRM3_EnumerateObjects(p,a,b)                       (p)->EnumerateObjects(a,b)
474 #define IDirect3DRM3_Load(p,a,b,c,d,e,f,g,h,i,j)                   (p)->Load(a,b,c,d,e,f,g,h,i,j)
475 #define IDirect3DRM3_Tick(p,a)                                     (p)->Tick(a)
476 #define IDirect3DRM3_CreateProgressiveMesh(p,a)                    (p)->CreateProgressiveMesh(p,a)
477 #define IDirect3DRM3_RegisterClient(p,a,b)                         (p)->RegisterClient(p,a,b)
478 #define IDirect3DRM3_UnregisterClient(p,a)                         (p)->UnregisterClient(p,a)
479 #define IDirect3DRM3_CreateClippedVisual(p,ab)                     (p)->CreateClippedVisual(p,a,b)
480 #define IDirect3DRM3_SetOptions(p,a)                               (p)->SetOptions(p,a)
481 #define IDirect3DRM3_GetOptions(p,a)                               (p)->GetOptions(p,a)
482 #endif
483
484 #define D3DRM_OK                        DD_OK
485 #define D3DRMERR_BADOBJECT              MAKE_DDHRESULT(781)
486 #define D3DRMERR_BADTYPE                MAKE_DDHRESULT(782)
487 #define D3DRMERR_BADALLOC               MAKE_DDHRESULT(783)
488 #define D3DRMERR_FACEUSED               MAKE_DDHRESULT(784)
489 #define D3DRMERR_NOTFOUND               MAKE_DDHRESULT(785)
490 #define D3DRMERR_NOTDONEYET             MAKE_DDHRESULT(786)
491 #define D3DRMERR_FILENOTFOUND           MAKE_DDHRESULT(787)
492 #define D3DRMERR_BADFILE                MAKE_DDHRESULT(788)
493 #define D3DRMERR_BADDEVICE              MAKE_DDHRESULT(789)
494 #define D3DRMERR_BADVALUE               MAKE_DDHRESULT(790)
495 #define D3DRMERR_BADMAJORVERSION        MAKE_DDHRESULT(791)
496 #define D3DRMERR_BADMINORVERSION        MAKE_DDHRESULT(792)
497 #define D3DRMERR_UNABLETOEXECUTE        MAKE_DDHRESULT(793)
498 #define D3DRMERR_LIBRARYNOTFOUND        MAKE_DDHRESULT(794)
499 #define D3DRMERR_INVALIDLIBRARY         MAKE_DDHRESULT(795)
500 #define D3DRMERR_PENDING                MAKE_DDHRESULT(796)
501 #define D3DRMERR_NOTENOUGHDATA          MAKE_DDHRESULT(797)
502 #define D3DRMERR_REQUESTTOOLARGE        MAKE_DDHRESULT(798)
503 #define D3DRMERR_REQUESTTOOSMALL        MAKE_DDHRESULT(799)
504 #define D3DRMERR_CONNECTIONLOST         MAKE_DDHRESULT(800)
505 #define D3DRMERR_LOADABORTED            MAKE_DDHRESULT(801)
506 #define D3DRMERR_NOINTERNET             MAKE_DDHRESULT(802)
507 #define D3DRMERR_BADCACHEFILE           MAKE_DDHRESULT(803)
508 #define D3DRMERR_BOXNOTSET              MAKE_DDHRESULT(804)
509 #define D3DRMERR_BADPMDATA              MAKE_DDHRESULT(805)
510 #define D3DRMERR_CLIENTNOTREGISTERED    MAKE_DDHRESULT(806)
511 #define D3DRMERR_NOTCREATEDFROMDDS      MAKE_DDHRESULT(807)
512 #define D3DRMERR_NOSUCHKEY              MAKE_DDHRESULT(808)
513 #define D3DRMERR_INCOMPATABLEKEY        MAKE_DDHRESULT(809)
514 #define D3DRMERR_ELEMENTINUSE           MAKE_DDHRESULT(810)
515 #define D3DRMERR_TEXTUREFORMATNOTFOUND  MAKE_DDHRESULT(811)
516 #define D3DRMERR_NOTAGGREGATED          MAKE_DDHRESULT(812)
517
518 #ifdef __cplusplus
519 }
520 #endif
521
522 #endif /* __D3DRM_H__ */