include: strmif.idl should import unknwn.idl.
[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(LPDIRECT3DRM* ppDirect3DRM);
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_ LPDIRECT3DRMFRAME, LPDIRECT3DRMFRAME *) PURE;
62     STDMETHOD(CreateMesh)(THIS_ LPDIRECT3DRMMESH *) PURE;
63     STDMETHOD(CreateMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER *) PURE;
64     STDMETHOD(CreateFace)(THIS_ LPDIRECT3DRMFACE *) PURE;
65     STDMETHOD(CreateAnimation)(THIS_ LPDIRECT3DRMANIMATION *) PURE;
66     STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET *) PURE;
67     STDMETHOD(CreateTexture)(THIS_ LPD3DRMIMAGE, LPDIRECT3DRMTEXTURE *) PURE;
68     STDMETHOD(CreateLight)(THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT *) PURE;
69     STDMETHOD(CreateLightRGB)(THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT *) PURE;
70     STDMETHOD(CreateMaterial)(THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL *) PURE;
71     STDMETHOD(CreateDevice)(THIS_ DWORD, DWORD, LPDIRECT3DRMDEVICE *) PURE;
72     STDMETHOD(CreateDeviceFromSurface)(THIS_ LPGUID pGUID, LPDIRECTDRAW pDD, LPDIRECTDRAWSURFACE pDDSBack,
73         LPDIRECT3DRMDEVICE *) PURE;
74     STDMETHOD(CreateDeviceFromD3D)(THIS_ LPDIRECT3D pD3D, LPDIRECT3DDEVICE pD3DDev, LPDIRECT3DRMDEVICE *) PURE;
75     STDMETHOD(CreateDeviceFromClipper)(THIS_ LPDIRECTDRAWCLIPPER pDDClipper, LPGUID pGUID, int width, int height,
76         LPDIRECT3DRMDEVICE *) PURE;
77     STDMETHOD(CreateTextureFromSurface)(THIS_ LPDIRECTDRAWSURFACE pDDS, LPDIRECT3DRMTEXTURE *) PURE;
78     STDMETHOD(CreateShadow)(THIS_ LPDIRECT3DRMVISUAL, LPDIRECT3DRMLIGHT, D3DVALUE px, D3DVALUE py, D3DVALUE pz,
79         D3DVALUE nx, D3DVALUE ny, D3DVALUE nz, LPDIRECT3DRMVISUAL *) PURE;
80     STDMETHOD(CreateViewport)(THIS_ LPDIRECT3DRMDEVICE, LPDIRECT3DRMFRAME, DWORD, DWORD, DWORD, DWORD,
81         LPDIRECT3DRMVIEWPORT *) PURE;
82     STDMETHOD(CreateWrap)(THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME, D3DVALUE ox, D3DVALUE oy, D3DVALUE oz,
83         D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, D3DVALUE ux, D3DVALUE uy, D3DVALUE uz, D3DVALUE ou, D3DVALUE ov,
84         D3DVALUE su, D3DVALUE sv, LPDIRECT3DRMWRAP *) PURE;
85     STDMETHOD(CreateUserVisual)(THIS_ D3DRMUSERVISUALCALLBACK, LPVOID pArg, LPDIRECT3DRMUSERVISUAL *) PURE;
86     STDMETHOD(LoadTexture)(THIS_ const char *, LPDIRECT3DRMTEXTURE *) PURE;
87     STDMETHOD(LoadTextureFromResource)(THIS_ HRSRC rs, LPDIRECT3DRMTEXTURE *) PURE;
88     STDMETHOD(SetSearchPath)(THIS_ LPCSTR) PURE;
89     STDMETHOD(AddSearchPath)(THIS_ LPCSTR) PURE;
90     STDMETHOD(GetSearchPath)(THIS_ DWORD *size_return, LPSTR path_return) PURE;
91     STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE;
92     STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE;
93     STDMETHOD(GetDevices)(THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE;
94     STDMETHOD(GetNamedObject)(THIS_ const char *, LPDIRECT3DRMOBJECT *) PURE;
95     STDMETHOD(EnumerateObjects)(THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE;
96     STDMETHOD(Load)(THIS_ LPVOID, LPVOID, LPIID *, DWORD, D3DRMLOADOPTIONS, D3DRMLOADCALLBACK, LPVOID,
97         D3DRMLOADTEXTURECALLBACK, LPVOID, LPDIRECT3DRMFRAME) PURE;
98     STDMETHOD(Tick)(THIS_ D3DVALUE) PURE;
99 };
100 #undef INTERFACE
101
102 #if !defined(__cplusplus) || defined(CINTERFACE)
103 /*** IUnknown methods ***/
104 #define IDirect3DRM_QueryInterface(p,a,b)                         (p)->lpVtbl->QueryInterface(p,a,b)
105 #define IDirect3DRM_AddRef(p)                                     (p)->lpVtbl->AddRef(p)
106 #define IDirect3DRM_Release(p)                                    (p)->lpVtbl->Release(p)
107 /*** IDirect3DRM methods ***/
108 #define IDirect3DRM_CreateObject(p,a,b,c,d)                       (p)->lpVtbl->CreateObject(p,a,b,d)
109 #define IDirect3DRM_CreateFrame(p,a,b)                            (p)->lpVtbl->CreateFrame(p,a,b)
110 #define IDirect3DRM_CreateMesh(p,a)                               (p)->lpVtbl->CreateMesh(p,a)
111 #define IDirect3DRM_CreateMeshBuilder(p,a)                        (p)->lpVtbl->CreateMeshBuilder(p,a)
112 #define IDirect3DRM_CreateFace(p,a)                               (p)->lpVtbl->CreateFace(p,a)
113 #define IDirect3DRM_CreateAnimation(p,a)                          (p)->lpVtbl->CreateAnimation(p,a)
114 #define IDirect3DRM_CreateAnimationSet(p,a)                       (p)->lpVtbl->CreateAnimationSet(p,a)
115 #define IDirect3DRM_CreateTexture(p,a,b)                          (p)->lpVtbl->CreateTexture(p,a,b)
116 #define IDirect3DRM_CreateLight(p,a,b,c)                          (p)->lpVtbl->CreateLight(p,a,b,c)
117 #define IDirect3DRM_CreateLightRGB(p,a,b,c,d,e)                   (p)->lpVtbl->CreateLightRGB(p,a,b,c,d,e)
118 #define IDirect3DRM_CreateMaterial(p,a,b)                         (p)->lpVtbl->CreateMaterial(p,a,b)
119 #define IDirect3DRM_CreateDevice(p,a,b,c)                         (p)->lpVtbl->CreateDevice(p,a,b,c)
120 #define IDirect3DRM_CreateDeviceFromSurface(p,a,b,c,d)            (p)->lpVtbl->CreateDeviceFromSurface(p,a,b,c,d)
121 #define IDirect3DRM_CreateDeviceFromD3D(p,a,b,c)                  (p)->lpVtbl->CreateDeviceFromD3D(p,a,b,c)
122 #define IDirect3DRM_CreateDeviceFromClipper(p,a,b,c,d,e)          (p)->lpVtbl->CreateDeviceFromClipper(p,a,b,c,d,e)
123 #define IDirect3DRM_CreateTextureFromSurface(p,a,b)               (p)->lpVtbl->CreateTextureFromSurface(p,a,b)
124 #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)
125 #define IDirect3DRM_CreateViewport(p,a,b,c,d,e,f,g)               (p)->lpVtbl->CreateViewport(p,a,b,c,d,e,f,g)
126 #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)
127 #define IDirect3DRM_CreateUserVisual(p,a,b,c)                     (p)->lpVtbl->CreateUserVisual(p,a,b,c)
128 #define IDirect3DRM_LoadTexture(p,a,b)                            (p)->lpVtbl->LoadTexture(p,a,b)
129 #define IDirect3DRM_LoadTextureFromResource(p,a,b)                (p)->lpVtbl->LoadTextureFromResource(p,a,b)
130 #define IDirect3DRM_SetSearchPath(p,a)                            (p)->lpVtbl->SetSearchPath(p,a)
131 #define IDirect3DRM_AddSearchPath(p,a)                            (p)->lpVtbl->AddSearchPath(p,a)
132 #define IDirect3DRM_GetSearchPath(p,a,b)                          (p)->lpVtbl->GetSearchPath(p,a,b)
133 #define IDirect3DRM_SetDefaultTextureColors(p,a)                  (p)->lpVtbl->SetDefaultTextureColors(p,a)
134 #define IDirect3DRM_SetDefaultTextureShades(p,a)                  (p)->lpVtbl->SetDefaultTextureShades(p,a)
135 #define IDirect3DRM_GetDevices(p,a)                               (p)->lpVtbl->GetDevices(p,a)
136 #define IDirect3DRM_GetNamedObject(p,a,b)                         (p)->lpVtbl->GetNamedObject(p,a,b)
137 #define IDirect3DRM_EnumerateObjects(p,a,b)                       (p)->lpVtbl->EnumerateObjects(p,a,b)
138 #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)
139 #define IDirect3DRM_Tick(p,a)                                     (p)->lpVtbl->Tick(p,a)
140 #else
141 /*** IUnknown methods ***/
142 #define IDirect3DRM_QueryInterface(p,a,b)                         (p)->QueryInterface(a,b)
143 #define IDirect3DRM_AddRef(p)                                     (p)->AddRef()
144 #define IDirect3DRM_Release(p)                                    (p)->Release()
145 /*** IDirect3DRM methods ***/
146 #define IDirect3DRM_CreateObject(p,a,b,c,d)                       (p)->CreateObject(a,b,d)
147 #define IDirect3DRM_CreateFrame(p,a,b)                            (p)->CreateFrame(a,b)
148 #define IDirect3DRM_CreateMesh(p,a)                               (p)->CreateMesh(a)
149 #define IDirect3DRM_CreateMeshBuilder(p,a)                        (p)->CreateMeshBuilder(a)
150 #define IDirect3DRM_CreateFace(p,a)                               (p)->CreateFace(a)
151 #define IDirect3DRM_CreateAnimation(p,a)                          (p)->CreateAnimation(a)
152 #define IDirect3DRM_CreateAnimationSet(p,a)                       (p)->CreateAnimationSet(a)
153 #define IDirect3DRM_CreateTexture(p,a,b)                          (p)->CreateTexture(a,b)
154 #define IDirect3DRM_CreateLight(p,a,b,c)                          (p)->CreateLight(a,b,c)
155 #define IDirect3DRM_CreateLightRGB(p,a,b,c,d,e)                   (p)->CreateLightRGB(a,b,c,d,e)
156 #define IDirect3DRM_CreateMaterial(p,a,b)                         (p)->CreateMaterial(a,b)
157 #define IDirect3DRM_CreateDevice(p,a,b,c)                         (p)->CreateDevice(a,b,c)
158 #define IDirect3DRM_CreateDeviceFromSurface(p,a,b,c,d)            (p)->CreateDeviceFromSurface(a,b,c,d)
159 #define IDirect3DRM_CreateDeviceFromD3D(p,a,b,c)                  (p)->CreateDeviceFromD3D(a,b,c)
160 #define IDirect3DRM_CreateDeviceFromClipper(p,a,b,c,d,e)          (p)->CreateDeviceFromClipper(a,b,c,d,e)
161 #define IDirect3DRM_CreateTextureFromSurface(p,a,b)               (p)->CreateTextureFromSurface(a,b)
162 #define IDirect3DRM_CreateShadow(p,a,b,c,d,e,f,g,h,i)             (p)->CreateShadow(a,b,c,d,e,f,g,h,i)
163 #define IDirect3DRM_CreateViewport(p,a,b,c,d,e,f,g)               (p)->CreateViewport(a,b,c,d,e,f,g)
164 #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)
165 #define IDirect3DRM_CreateUserVisual(p,a,b,c)                     (p)->CreateUserVisual(a,b,c)
166 #define IDirect3DRM_LoadTexture(p,a,b)                            (p)->LoadTexture(a,b)
167 #define IDirect3DRM_LoadTextureFromResource(p,a,b)                (p)->LoadTextureFromResource(a,b)
168 #define IDirect3DRM_SetSearchPath(p,a)                            (p)->SetSearchPath(a)
169 #define IDirect3DRM_AddSearchPath(p,a)                            (p)->AddSearchPath(a)
170 #define IDirect3DRM_GetSearchPath(p,a,b)                          (p)->GetSearchPath(a,b)
171 #define IDirect3DRM_SetDefaultTextureColors(p,a)                  (p)->SetDefaultTextureColors(a)
172 #define IDirect3DRM_SetDefaultTextureShades(p,a)                  (p)->SetDefaultTextureShades(a)
173 #define IDirect3DRM_GetDevices(p,a)                               (p)->GetDevices(a)
174 #define IDirect3DRM_GetNamedObject(p,a,b)                         (p)->GetNamedObject(a,b)
175 #define IDirect3DRM_EnumerateObjects(p,a,b)                       (p)->EnumerateObjects(a,b)
176 #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)
177 #define IDirect3DRM_Tick(p,a)                                     (p)->Tick(a)
178 #endif
179
180 /*****************************************************************************
181  * IDirect3DRM2 interface
182  */
183 #ifdef WINE_NO_UNICODE_MACROS
184 #undef GetClassName
185 #endif
186 #define INTERFACE IDirect3DRM2
187 DECLARE_INTERFACE_(IDirect3DRM2,IUnknown)
188 {
189     /*** IUnknown methods ***/
190     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
191     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
192     STDMETHOD_(ULONG,Release)(THIS) PURE;
193     /*** IDirect3DRM2 methods ***/
194     STDMETHOD(CreateObject)(THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE;
195     STDMETHOD(CreateFrame)(THIS_ LPDIRECT3DRMFRAME, LPDIRECT3DRMFRAME2 *) PURE;
196     STDMETHOD(CreateMesh)(THIS_ LPDIRECT3DRMMESH *) PURE;
197     STDMETHOD(CreateMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER2 *) PURE;
198     STDMETHOD(CreateFace)(THIS_ LPDIRECT3DRMFACE *) PURE;
199     STDMETHOD(CreateAnimation)(THIS_ LPDIRECT3DRMANIMATION *) PURE;
200     STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET *) PURE;
201     STDMETHOD(CreateTexture)(THIS_ LPD3DRMIMAGE, LPDIRECT3DRMTEXTURE2 *) PURE;
202     STDMETHOD(CreateLight)(THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT *) PURE;
203     STDMETHOD(CreateLightRGB)(THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT *) PURE;
204     STDMETHOD(CreateMaterial)(THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL *) PURE;
205     STDMETHOD(CreateDevice)(THIS_ DWORD, DWORD, LPDIRECT3DRMDEVICE2 *) PURE;
206     STDMETHOD(CreateDeviceFromSurface)(THIS_ LPGUID pGUID, LPDIRECTDRAW pDD, LPDIRECTDRAWSURFACE pDDSBack,
207         LPDIRECT3DRMDEVICE2 *) PURE;
208     STDMETHOD(CreateDeviceFromD3D)(THIS_ LPDIRECT3D2 pD3D, LPDIRECT3DDEVICE2 pD3DDev, LPDIRECT3DRMDEVICE2 *) PURE;
209     STDMETHOD(CreateDeviceFromClipper)(THIS_ LPDIRECTDRAWCLIPPER pDDClipper, LPGUID pGUID, int width, int height,
210         LPDIRECT3DRMDEVICE2 *) PURE;
211     STDMETHOD(CreateTextureFromSurface)(THIS_ LPDIRECTDRAWSURFACE pDDS, LPDIRECT3DRMTEXTURE2 *) PURE;
212     STDMETHOD(CreateShadow)(THIS_ LPDIRECT3DRMVISUAL, LPDIRECT3DRMLIGHT, D3DVALUE px, D3DVALUE py, D3DVALUE pz,
213         D3DVALUE nx, D3DVALUE ny, D3DVALUE nz, LPDIRECT3DRMVISUAL *) PURE;
214     STDMETHOD(CreateViewport)(THIS_ LPDIRECT3DRMDEVICE, LPDIRECT3DRMFRAME, DWORD, DWORD, DWORD, DWORD,
215         LPDIRECT3DRMVIEWPORT *) PURE;
216     STDMETHOD(CreateWrap)(THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME, D3DVALUE ox, D3DVALUE oy, D3DVALUE oz,
217         D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, D3DVALUE ux, D3DVALUE uy, D3DVALUE uz, D3DVALUE ou, D3DVALUE ov,
218         D3DVALUE su, D3DVALUE sv, LPDIRECT3DRMWRAP *) PURE;
219     STDMETHOD(CreateUserVisual)(THIS_ D3DRMUSERVISUALCALLBACK, LPVOID pArg, LPDIRECT3DRMUSERVISUAL *) PURE;
220     STDMETHOD(LoadTexture)(THIS_ const char *, LPDIRECT3DRMTEXTURE2 *) PURE;
221     STDMETHOD(LoadTextureFromResource)(THIS_ HMODULE hModule, LPCSTR /* LPCTSTR */ strName, LPCSTR /* LPCTSTR */ strType, LPDIRECT3DRMTEXTURE2 *) PURE;
222     STDMETHOD(SetSearchPath)(THIS_ LPCSTR) PURE;
223     STDMETHOD(AddSearchPath)(THIS_ LPCSTR) PURE;
224     STDMETHOD(GetSearchPath)(THIS_ DWORD *size_return, LPSTR path_return) PURE;
225     STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE;
226     STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE;
227     STDMETHOD(GetDevices)(THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE;
228     STDMETHOD(GetNamedObject)(THIS_ const char *, LPDIRECT3DRMOBJECT *) PURE;
229     STDMETHOD(EnumerateObjects)(THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE;
230     STDMETHOD(Load)(THIS_ LPVOID, LPVOID, LPIID *, DWORD, D3DRMLOADOPTIONS, D3DRMLOADCALLBACK, LPVOID,
231         D3DRMLOADTEXTURECALLBACK, LPVOID, LPDIRECT3DRMFRAME) PURE;
232     STDMETHOD(Tick)(THIS_ D3DVALUE) PURE;
233     STDMETHOD(CreateProgressiveMesh)(THIS_ LPDIRECT3DRMPROGRESSIVEMESH *) PURE;
234 };
235 #undef INTERFACE
236
237 #if !defined(__cplusplus) || defined(CINTERFACE)
238 /*** IUnknown methods ***/
239 #define IDirect3DRM2_QueryInterface(p,a,b)                         (p)->lpVtbl->QueryInterface(p,a,b)
240 #define IDirect3DRM2_AddRef(p)                                     (p)->lpVtbl->AddRef(p)
241 #define IDirect3DRM2_Release(p)                                    (p)->lpVtbl->Release(p)
242 /*** IDirect3DRM2 methods ***/
243 #define IDirect3DRM2_CreateObject(p,a,b,c,d)                       (p)->lpVtbl->CreateObject(p,a,b,d)
244 #define IDirect3DRM2_CreateFrame(p,a,b)                            (p)->lpVtbl->CreateFrame(p,a,b)
245 #define IDirect3DRM2_CreateMesh(p,a)                               (p)->lpVtbl->CreateMesh(p,a)
246 #define IDirect3DRM2_CreateMeshBuilder(p,a)                        (p)->lpVtbl->CreateMeshBuilder(p,a)
247 #define IDirect3DRM2_CreateFace(p,a)                               (p)->lpVtbl->CreateFace(p,a)
248 #define IDirect3DRM2_CreateAnimation(p,a)                          (p)->lpVtbl->CreateAnimation(p,a)
249 #define IDirect3DRM2_CreateAnimationSet(p,a)                       (p)->lpVtbl->CreateAnimationSet(p,a)
250 #define IDirect3DRM2_CreateTexture(p,a,b)                          (p)->lpVtbl->CreateTexture(p,a,b)
251 #define IDirect3DRM2_CreateLight(p,a,b,c)                          (p)->lpVtbl->CreateLight(p,a,b,c)
252 #define IDirect3DRM2_CreateLightRGB(p,a,b,c,d,e)                   (p)->lpVtbl->CreateLightRGB(p,a,b,c,d,e)
253 #define IDirect3DRM2_CreateMaterial(p,a,b)                         (p)->lpVtbl->CreateMaterial(p,a,b)
254 #define IDirect3DRM2_CreateDevice(p,a,b,c)                         (p)->lpVtbl->CreateDevice(p,a,b,c)
255 #define IDirect3DRM2_CreateDeviceFromSurface(p,a,b,c,d)            (p)->lpVtbl->CreateDeviceFromSurface(p,a,b,c,d)
256 #define IDirect3DRM2_CreateDeviceFromD3D(p,a,b,c)                  (p)->lpVtbl->CreateDeviceFromD3D(p,a,b,c)
257 #define IDirect3DRM2_CreateDeviceFromClipper(p,a,b,c,d,e)          (p)->lpVtbl->CreateDeviceFromClipper(p,a,b,c,d,e)
258 #define IDirect3DRM2_CreateTextureFromSurface(p,a,b)               (p)->lpVtbl->CreateTextureFromSurface(p,a,b)
259 #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)
260 #define IDirect3DRM2_CreateViewport(p,a,b,c,d,e,f,g)               (p)->lpVtbl->CreateViewport(p,a,b,c,d,e,f,g)
261 #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)
262 #define IDirect3DRM2_CreateUserVisual(p,a,b,c)                     (p)->lpVtbl->CreateUserVisual(p,a,b,c)
263 #define IDirect3DRM2_LoadTexture(p,a,b)                            (p)->lpVtbl->LoadTexture(p,a,b)
264 #define IDirect3DRM2_LoadTextureFromResource(p,a,b,c,d)            (p)->lpVtbl->LoadTextureFromResource(p,a,b,c,d)
265 #define IDirect3DRM2_SetSearchPath(p,a)                            (p)->lpVtbl->SetSearchPath(p,a)
266 #define IDirect3DRM2_AddSearchPath(p,a)                            (p)->lpVtbl->AddSearchPath(p,a)
267 #define IDirect3DRM2_GetSearchPath(p,a,b)                          (p)->lpVtbl->GetSearchPath(p,a,b)
268 #define IDirect3DRM2_SetDefaultTextureColors(p,a)                  (p)->lpVtbl->SetDefaultTextureColors(p,a)
269 #define IDirect3DRM2_SetDefaultTextureShades(p,a)                  (p)->lpVtbl->SetDefaultTextureShades(p,a)
270 #define IDirect3DRM2_GetDevices(p,a)                               (p)->lpVtbl->GetDevices(p,a)
271 #define IDirect3DRM2_GetNamedObject(p,a,b)                         (p)->lpVtbl->GetNamedObject(p,a,b)
272 #define IDirect3DRM2_EnumerateObjects(p,a,b)                       (p)->lpVtbl->EnumerateObjects(p,a,b)
273 #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)
274 #define IDirect3DRM2_Tick(p,a)                                     (p)->lpVtbl->Tick(p,a)
275 #define IDirect3DRM2_CreateProgressiveMesh(p,a)                    (p)->lpVtbl->CreateProgressiveMesh(p,a)
276 #else
277 /*** IUnknown methods ***/
278 #define IDirect3DRM2_QueryInterface(p,a,b)                         (p)->QueryInterface(a,b)
279 #define IDirect3DRM2_AddRef(p)                                     (p)->AddRef()
280 #define IDirect3DRM2_Release(p)                                    (p)->Release()
281 /*** IDirect3DRM2 methods ***/
282 #define IDirect3DRM2_CreateObject(p,a,b,c,d)                       (p)->CreateObject(a,b,d)
283 #define IDirect3DRM2_CreateFrame(p,a,b)                            (p)->CreateFrame(a,b)
284 #define IDirect3DRM2_CreateMesh(p,a)                               (p)->CreateMesh(a)
285 #define IDirect3DRM2_CreateMeshBuilder(p,a)                        (p)->CreateMeshBuilder(a)
286 #define IDirect3DRM2_CreateFace(p,a)                               (p)->CreateFace(a)
287 #define IDirect3DRM2_CreateAnimation(p,a)                          (p)->CreateAnimation(a)
288 #define IDirect3DRM2_CreateAnimationSet(p,a)                       (p)->CreateAnimationSet(a)
289 #define IDirect3DRM2_CreateTexture(p,a,b)                          (p)->CreateTexture(a,b)
290 #define IDirect3DRM2_CreateLight(p,a,b,c)                          (p)->CreateLight(a,b,c)
291 #define IDirect3DRM2_CreateLightRGB(p,a,b,c,d,e)                   (p)->CreateLightRGB(a,b,c,d,e)
292 #define IDirect3DRM2_CreateMaterial(p,a,b)                         (p)->CreateMaterial(a,b)
293 #define IDirect3DRM2_CreateDevice(p,a,b,c)                         (p)->CreateDevice(a,b,c)
294 #define IDirect3DRM2_CreateDeviceFromSurface(p,a,b,c,d)            (p)->CreateDeviceFromSurface(a,b,c,d)
295 #define IDirect3DRM2_CreateDeviceFromD3D(p,a,b,c)                  (p)->CreateDeviceFromD3D(a,b,c)
296 #define IDirect3DRM2_CreateDeviceFromClipper(p,a,b,c,d,e)          (p)->CreateDeviceFromClipper(a,b,c,d,e)
297 #define IDirect3DRM2_CreateTextureFromSurface(p,a,b)               (p)->CreateTextureFromSurface(a,b)
298 #define IDirect3DRM2_CreateShadow(p,a,b,c,d,e,f,g,h,i)             (p)->CreateShadow(a,b,c,d,e,f,g,h,i)
299 #define IDirect3DRM2_CreateViewport(p,a,b,c,d,e,f,g)               (p)->CreateViewport(a,b,c,d,e,f,g)
300 #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)
301 #define IDirect3DRM2_CreateUserVisual(p,a,b,c)                     (p)->CreateUserVisual(a,b,c)
302 #define IDirect3DRM2_LoadTexture(p,a,b)                            (p)->LoadTexture(a,b)
303 #define IDirect3DRM2_LoadTextureFromResource(p,a,b,c,d)            (p)->LoadTextureFromResource(a,b,c,d)
304 #define IDirect3DRM2_SetSearchPath(p,a)                            (p)->SetSearchPath(a)
305 #define IDirect3DRM2_AddSearchPath(p,a)                            (p)->AddSearchPath(a)
306 #define IDirect3DRM2_GetSearchPath(p,a,b)                          (p)->GetSearchPath(a,b)
307 #define IDirect3DRM2_SetDefaultTextureColors(p,a)                  (p)->SetDefaultTextureColors(a)
308 #define IDirect3DRM2_SetDefaultTextureShades(p,a)                  (p)->SetDefaultTextureShades(a)
309 #define IDirect3DRM2_GetDevices(p,a)                               (p)->GetDevices(a)
310 #define IDirect3DRM2_GetNamedObject(p,a,b)                         (p)->GetNamedObject(a,b)
311 #define IDirect3DRM2_EnumerateObjects(p,a,b)                       (p)->EnumerateObjects(a,b)
312 #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)
313 #define IDirect3DRM2_Tick(p,a)                                     (p)->Tick(a)
314 #define IDirect3DRM2_CreateProgressiveMesh(p,a)                    (p)->CreateProgressiveMesh(p,a)
315 #endif
316
317 /*****************************************************************************
318  * IDirect3DRM3 interface
319  */
320 #ifdef WINE_NO_UNICODE_MACROS
321 #undef GetClassName
322 #endif
323 #define INTERFACE IDirect3DRM3
324 DECLARE_INTERFACE_(IDirect3DRM3,IUnknown)
325 {
326     /*** IUnknown methods ***/
327     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
328     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
329     STDMETHOD_(ULONG,Release)(THIS) PURE;
330     /*** IDirect3DRM2 methods ***/
331     STDMETHOD(CreateObject)(THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE;
332     STDMETHOD(CreateFrame)(THIS_ LPDIRECT3DRMFRAME3, LPDIRECT3DRMFRAME3 *) PURE;
333     STDMETHOD(CreateMesh)(THIS_ LPDIRECT3DRMMESH *) PURE;
334     STDMETHOD(CreateMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER3 *) PURE;
335     STDMETHOD(CreateFace)(THIS_ LPDIRECT3DRMFACE2 *) PURE;
336     STDMETHOD(CreateAnimation)(THIS_ LPDIRECT3DRMANIMATION2 *) PURE;
337     STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET2 *) PURE;
338     STDMETHOD(CreateTexture)(THIS_ LPD3DRMIMAGE, LPDIRECT3DRMTEXTURE3 *) PURE;
339     STDMETHOD(CreateLight)(THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT *) PURE;
340     STDMETHOD(CreateLightRGB)(THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT *) PURE;
341     STDMETHOD(CreateMaterial)(THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL2 *) PURE;
342     STDMETHOD(CreateDevice)(THIS_ DWORD, DWORD, LPDIRECT3DRMDEVICE3 *) PURE;
343     STDMETHOD(CreateDeviceFromSurface)(THIS_ LPGUID pGUID, LPDIRECTDRAW pDD, LPDIRECTDRAWSURFACE pDDSBack,
344         LPDIRECT3DRMDEVICE3 *) PURE;
345     STDMETHOD(CreateDeviceFromD3D)(THIS_ LPDIRECT3D2 pD3D, LPDIRECT3DDEVICE2 pD3DDev, LPDIRECT3DRMDEVICE3 *) PURE;
346     STDMETHOD(CreateDeviceFromClipper)(THIS_ LPDIRECTDRAWCLIPPER pDDClipper, LPGUID pGUID, int width, int height,
347         LPDIRECT3DRMDEVICE3 *) PURE;
348     STDMETHOD(CreateTextureFromSurface)(THIS_ LPDIRECTDRAWSURFACE pDDS, LPDIRECT3DRMTEXTURE3 *) PURE;
349     STDMETHOD(CreateShadow)(THIS_ LPUNKNOWN, LPDIRECT3DRMLIGHT, D3DVALUE px, D3DVALUE py, D3DVALUE pz,
350         D3DVALUE nx, D3DVALUE ny, D3DVALUE nz, LPDIRECT3DRMSHADOW2 *) PURE;
351     STDMETHOD(CreateViewport)(THIS_ LPDIRECT3DRMDEVICE3, LPDIRECT3DRMFRAME3, DWORD, DWORD, DWORD, DWORD,
352         LPDIRECT3DRMVIEWPORT2 *) PURE;
353     STDMETHOD(CreateWrap)(THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME3, D3DVALUE ox, D3DVALUE oy, D3DVALUE oz,
354         D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, D3DVALUE ux, D3DVALUE uy, D3DVALUE uz, D3DVALUE ou, D3DVALUE ov,
355         D3DVALUE su, D3DVALUE sv, LPDIRECT3DRMWRAP *) PURE;
356     STDMETHOD(CreateUserVisual)(THIS_ D3DRMUSERVISUALCALLBACK, LPVOID pArg, LPDIRECT3DRMUSERVISUAL *) PURE;
357     STDMETHOD(LoadTexture)(THIS_ const char *, LPDIRECT3DRMTEXTURE3 *) PURE;
358     STDMETHOD(LoadTextureFromResource)(THIS_ HMODULE hModule, LPCSTR /* LPCTSTR */ strName, LPCSTR  /* LPCTSTR */ strType, LPDIRECT3DRMTEXTURE3 *) PURE;
359     STDMETHOD(SetSearchPath)(THIS_ LPCSTR) PURE;
360     STDMETHOD(AddSearchPath)(THIS_ LPCSTR) PURE;
361     STDMETHOD(GetSearchPath)(THIS_ DWORD *size_return, LPSTR path_return) PURE;
362     STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE;
363     STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE;
364     STDMETHOD(GetDevices)(THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE;
365     STDMETHOD(GetNamedObject)(THIS_ const char *, LPDIRECT3DRMOBJECT *) PURE;
366     STDMETHOD(EnumerateObjects)(THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE;
367     STDMETHOD(Load)(THIS_ LPVOID, LPVOID, LPIID *, DWORD, D3DRMLOADOPTIONS, D3DRMLOADCALLBACK, LPVOID,
368         D3DRMLOADTEXTURECALLBACK, LPVOID, LPDIRECT3DRMFRAME3) PURE;
369     STDMETHOD(Tick)(THIS_ D3DVALUE) PURE;
370     STDMETHOD(CreateProgressiveMesh)(THIS_ LPDIRECT3DRMPROGRESSIVEMESH) PURE;
371     STDMETHOD(RegisterClient)(THIS_ REFGUID rguid, LPDWORD lpdwID) PURE;
372     STDMETHOD(UnregisterClient)(THIS_ REFGUID rguid) PURE;
373     STDMETHOD(CreateClippedVisual)(THIS_ LPDIRECT3DRMVISUAL, LPDIRECT3DRMCLIPPEDVISUAL *) PURE;
374     STDMETHOD(SetOptions)(THIS_ DWORD) PURE;
375     STDMETHOD(GetOptions)(THIS_ LPDWORD) PURE;
376 };
377 #undef INTERFACE
378
379 #if !defined(__cplusplus) || defined(CINTERFACE)
380 /*** IUnknown methods ***/
381 #define IDirect3DRM3_QueryInterface(p,a,b)                         (p)->lpVtbl->QueryInterface(p,a,b)
382 #define IDirect3DRM3_AddRef(p)                                     (p)->lpVtbl->AddRef(p)
383 #define IDirect3DRM3_Release(p)                                    (p)->lpVtbl->Release(p)
384 /*** IDirect3DRM3 methods ***/
385 #define IDirect3DRM3_CreateObject(p,a,b,c,d)                       (p)->lpVtbl->CreateObject(p,a,b,d)
386 #define IDirect3DRM3_CreateFrame(p,a,b)                            (p)->lpVtbl->CreateFrame(p,a,b)
387 #define IDirect3DRM3_CreateMesh(p,a)                               (p)->lpVtbl->CreateMesh(p,a)
388 #define IDirect3DRM3_CreateMeshBuilder(p,a)                        (p)->lpVtbl->CreateMeshBuilder(p,a)
389 #define IDirect3DRM3_CreateFace(p,a)                               (p)->lpVtbl->CreateFace(p,a)
390 #define IDirect3DRM3_CreateAnimation(p,a)                          (p)->lpVtbl->CreateAnimation(p,a)
391 #define IDirect3DRM3_CreateAnimationSet(p,a)                       (p)->lpVtbl->CreateAnimationSet(p,a)
392 #define IDirect3DRM3_CreateTexture(p,a,b)                          (p)->lpVtbl->CreateTexture(p,a,b)
393 #define IDirect3DRM3_CreateLight(p,a,b,c)                          (p)->lpVtbl->CreateLight(p,a,b,c)
394 #define IDirect3DRM3_CreateLightRGB(p,a,b,c,d,e)                   (p)->lpVtbl->CreateLightRGB(p,a,b,c,d,e)
395 #define IDirect3DRM3_CreateMaterial(p,a,b)                         (p)->lpVtbl->CreateMaterial(p,a,b)
396 #define IDirect3DRM3_CreateDevice(p,a,b,c)                         (p)->lpVtbl->CreateDevice(p,a,b,c)
397 #define IDirect3DRM3_CreateDeviceFromSurface(p,a,b,c,d)            (p)->lpVtbl->CreateDeviceFromSurface(p,a,b,c,d)
398 #define IDirect3DRM3_CreateDeviceFromD3D(p,a,b,c)                  (p)->lpVtbl->CreateDeviceFromD3D(p,a,b,c)
399 #define IDirect3DRM3_CreateDeviceFromClipper(p,a,b,c,d,e)          (p)->lpVtbl->CreateDeviceFromClipper(p,a,b,c,d,e)
400 #define IDirect3DRM3_CreateTextureFromSurface(p,a,b)               (p)->lpVtbl->CreateTextureFromSurface(p,a,b)
401 #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)
402 #define IDirect3DRM3_CreateViewport(p,a,b,c,d,e,f,g)               (p)->lpVtbl->CreateViewport(p,a,b,c,d,e,f,g)
403 #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)
404 #define IDirect3DRM3_CreateUserVisual(p,a,b,c)                     (p)->lpVtbl->CreateUserVisual(p,a,b,c)
405 #define IDirect3DRM3_LoadTexture(p,a,b)                            (p)->lpVtbl->LoadTexture(p,a,b)
406 #define IDirect3DRM3_LoadTextureFromResource(p,a,b,c,d)            (p)->lpVtbl->LoadTextureFromResource(p,a,b,c,d)
407 #define IDirect3DRM3_SetSearchPath(p,a)                            (p)->lpVtbl->SetSearchPath(p,a)
408 #define IDirect3DRM3_AddSearchPath(p,a)                            (p)->lpVtbl->AddSearchPath(p,a)
409 #define IDirect3DRM3_GetSearchPath(p,a,b)                          (p)->lpVtbl->GetSearchPath(p,a,b)
410 #define IDirect3DRM3_SetDefaultTextureColors(p,a)                  (p)->lpVtbl->SetDefaultTextureColors(p,a)
411 #define IDirect3DRM3_SetDefaultTextureShades(p,a)                  (p)->lpVtbl->SetDefaultTextureShades(p,a)
412 #define IDirect3DRM3_GetDevices(p,a)                               (p)->lpVtbl->GetDevices(p,a)
413 #define IDirect3DRM3_GetNamedObject(p,a,b)                         (p)->lpVtbl->GetNamedObject(p,a,b)
414 #define IDirect3DRM3_EnumerateObjects(p,a,b)                       (p)->lpVtbl->EnumerateObjects(p,a,b)
415 #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)
416 #define IDirect3DRM3_Tick(p,a)                                     (p)->lpVtbl->Tick(p,a)
417 #define IDirect3DRM3_CreateProgressiveMesh(p,a)                    (p)->lpVtbl->CreateProgressiveMesh(p,a)
418 #define IDirect3DRM3_RegisterClient(p,a,b)                         (p)->lpVtbl->RegisterClient(p,a,b)
419 #define IDirect3DRM3_UnregisterClient(p,a)                         (p)->lpVtbl->UnregisterClient(p,a)
420 #define IDirect3DRM3_CreateClippedVisual(p,ab)                     (p)->lpVtbl->CreateClippedVisual(p,a,b)
421 #define IDirect3DRM3_SetOptions(p,a)                               (p)->lpVtbl->SetOptions(p,a)
422 #define IDirect3DRM3_GetOptions(p,a)                               (p)->lpVtbl->GetOptions(p,a)
423 #else
424 /*** IUnknown methods ***/
425 #define IDirect3DRM3_QueryInterface(p,a,b)                         (p)->QueryInterface(a,b)
426 #define IDirect3DRM3_AddRef(p)                                     (p)->AddRef()
427 #define IDirect3DRM3_Release(p)                                    (p)->Release()
428 /*** IDirect3DRM3 methods ***/
429 #define IDirect3DRM3_CreateObject(p,a,b,c,d)                       (p)->CreateObject(a,b,d)
430 #define IDirect3DRM3_CreateFrame(p,a,b)                            (p)->CreateFrame(a,b)
431 #define IDirect3DRM3_CreateMesh(p,a)                               (p)->CreateMesh(a)
432 #define IDirect3DRM3_CreateMeshBuilder(p,a)                        (p)->CreateMeshBuilder(a)
433 #define IDirect3DRM3_CreateFace(p,a)                               (p)->CreateFace(a)
434 #define IDirect3DRM3_CreateAnimation(p,a)                          (p)->CreateAnimation(a)
435 #define IDirect3DRM3_CreateAnimationSet(p,a)                       (p)->CreateAnimationSet(a)
436 #define IDirect3DRM3_CreateTexture(p,a,b)                          (p)->CreateTexture(a,b)
437 #define IDirect3DRM3_CreateLight(p,a,b,c)                          (p)->CreateLight(a,b,c)
438 #define IDirect3DRM3_CreateLightRGB(p,a,b,c,d,e)                   (p)->CreateLightRGB(a,b,c,d,e)
439 #define IDirect3DRM3_CreateMaterial(p,a,b)                         (p)->CreateMaterial(a,b)
440 #define IDirect3DRM3_CreateDevice(p,a,b,c)                         (p)->CreateDevice(a,b,c)
441 #define IDirect3DRM3_CreateDeviceFromSurface(p,a,b,c,d)            (p)->CreateDeviceFromSurface(a,b,c,d)
442 #define IDirect3DRM3_CreateDeviceFromD3D(p,a,b,c)                  (p)->CreateDeviceFromD3D(a,b,c)
443 #define IDirect3DRM3_CreateDeviceFromClipper(p,a,b,c,d,e)          (p)->CreateDeviceFromClipper(a,b,c,d,e)
444 #define IDirect3DRM3_CreateTextureFromSurface(p,a,b)               (p)->CreateTextureFromSurface(a,b)
445 #define IDirect3DRM3_CreateShadow(p,a,b,c,d,e,f,g,h,i)             (p)->CreateShadow(a,b,c,d,e,f,g,h,i)
446 #define IDirect3DRM3_CreateViewport(p,a,b,c,d,e,f,g)               (p)->CreateViewport(a,b,c,d,e,f,g)
447 #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)
448 #define IDirect3DRM3_CreateUserVisual(p,a,b,c)                     (p)->CreateUserVisual(a,b,c)
449 #define IDirect3DRM3_LoadTexture(p,a,b)                            (p)->LoadTexture(a,b)
450 #define IDirect3DRM3_LoadTextureFromResource(p,a,b,c,d)            (p)->LoadTextureFromResource(a,b,c,d)
451 #define IDirect3DRM3_SetSearchPath(p,a)                            (p)->SetSearchPath(a)
452 #define IDirect3DRM3_AddSearchPath(p,a)                            (p)->AddSearchPath(a)
453 #define IDirect3DRM3_GetSearchPath(p,a,b)                          (p)->GetSearchPath(a,b)
454 #define IDirect3DRM3_SetDefaultTextureColors(p,a)                  (p)->SetDefaultTextureColors(a)
455 #define IDirect3DRM3_SetDefaultTextureShades(p,a)                  (p)->SetDefaultTextureShades(a)
456 #define IDirect3DRM3_GetDevices(p,a)                               (p)->GetDevices(a)
457 #define IDirect3DRM3_GetNamedObject(p,a,b)                         (p)->GetNamedObject(a,b)
458 #define IDirect3DRM3_EnumerateObjects(p,a,b)                       (p)->EnumerateObjects(a,b)
459 #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)
460 #define IDirect3DRM3_Tick(p,a)                                     (p)->Tick(a)
461 #define IDirect3DRM3_CreateProgressiveMesh(p,a)                    (p)->CreateProgressiveMesh(p,a)
462 #define IDirect3DRM3_RegisterClient(p,a,b)                         (p)->RegisterClient(p,a,b)
463 #define IDirect3DRM3_UnregisterClient(p,a)                         (p)->UnregisterClient(p,a)
464 #define IDirect3DRM3_CreateClippedVisual(p,ab)                     (p)->CreateClippedVisual(p,a,b)
465 #define IDirect3DRM3_SetOptions(p,a)                               (p)->SetOptions(p,a)
466 #define IDirect3DRM3_GetOptions(p,a)                               (p)->GetOptions(p,a)
467 #endif
468
469 #define D3DRM_OK                        DD_OK
470 #define D3DRMERR_BADOBJECT              MAKE_DDHRESULT(781)
471 #define D3DRMERR_BADTYPE                MAKE_DDHRESULT(782)
472 #define D3DRMERR_BADALLOC               MAKE_DDHRESULT(783)
473 #define D3DRMERR_FACEUSED               MAKE_DDHRESULT(784)
474 #define D3DRMERR_NOTFOUND               MAKE_DDHRESULT(785)
475 #define D3DRMERR_NOTDONEYET             MAKE_DDHRESULT(786)
476 #define D3DRMERR_FILENOTFOUND           MAKE_DDHRESULT(787)
477 #define D3DRMERR_BADFILE                MAKE_DDHRESULT(788)
478 #define D3DRMERR_BADDEVICE              MAKE_DDHRESULT(789)
479 #define D3DRMERR_BADVALUE               MAKE_DDHRESULT(790)
480 #define D3DRMERR_BADMAJORVERSION        MAKE_DDHRESULT(791)
481 #define D3DRMERR_BADMINORVERSION        MAKE_DDHRESULT(792)
482 #define D3DRMERR_UNABLETOEXECUTE        MAKE_DDHRESULT(793)
483 #define D3DRMERR_LIBRARYNOTFOUND        MAKE_DDHRESULT(794)
484 #define D3DRMERR_INVALIDLIBRARY         MAKE_DDHRESULT(795)
485 #define D3DRMERR_PENDING                MAKE_DDHRESULT(796)
486 #define D3DRMERR_NOTENOUGHDATA          MAKE_DDHRESULT(797)
487 #define D3DRMERR_REQUESTTOOLARGE        MAKE_DDHRESULT(798)
488 #define D3DRMERR_REQUESTTOOSMALL        MAKE_DDHRESULT(799)
489 #define D3DRMERR_CONNECTIONLOST         MAKE_DDHRESULT(800)
490 #define D3DRMERR_LOADABORTED            MAKE_DDHRESULT(801)
491 #define D3DRMERR_NOINTERNET             MAKE_DDHRESULT(802)
492 #define D3DRMERR_BADCACHEFILE           MAKE_DDHRESULT(803)
493 #define D3DRMERR_BOXNOTSET              MAKE_DDHRESULT(804)
494 #define D3DRMERR_BADPMDATA              MAKE_DDHRESULT(805)
495 #define D3DRMERR_CLIENTNOTREGISTERED    MAKE_DDHRESULT(806)
496 #define D3DRMERR_NOTCREATEDFROMDDS      MAKE_DDHRESULT(807)
497 #define D3DRMERR_NOSUCHKEY              MAKE_DDHRESULT(808)
498 #define D3DRMERR_INCOMPATABLEKEY        MAKE_DDHRESULT(809)
499 #define D3DRMERR_ELEMENTINUSE           MAKE_DDHRESULT(810)
500 #define D3DRMERR_TEXTUREFORMATNOTFOUND  MAKE_DDHRESULT(811)
501 #define D3DRMERR_NOTAGGREGATED          MAKE_DDHRESULT(812)
502
503 #ifdef __cplusplus
504 }
505 #endif
506
507 #endif /* __D3DRM_H__ */