2 * Copyright (C) 2005 Peter Berg Larsen
3 * Copyright (C) 2010 Christian Costa
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.
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.
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
25 typedef struct IDirect3DRM *LPDIRECT3DRM, **LPLPDIRECT3DRM;
33 /* Direct3DRM Object CLSID */
34 DEFINE_GUID(CLSID_CDirect3DRM, 0x4516ec41, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
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);
41 typedef struct IDirect3DRM2 *LPDIRECT3DRM2, **LPLPDIRECT3DRM2;
42 typedef struct IDirect3DRM3 *LPDIRECT3DRM3, **LPLPDIRECT3DRM3;
44 HRESULT WINAPI Direct3DRMCreate(struct IDirect3DRM **d3drm);
46 /*****************************************************************************
47 * IDirect3DRMObject interface
49 #ifdef WINE_NO_UNICODE_MACROS
52 #define INTERFACE IDirect3DRM
53 DECLARE_INTERFACE_(IDirect3DRM,IUnknown)
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_ LPDIRECT3DRMFACE *) 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, 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 width, DWORD height, IDirect3DRMDevice **device) PURE;
72 STDMETHOD(CreateDeviceFromSurface)(THIS_ GUID *guid, IDirectDraw *ddraw,
73 IDirectDrawSurface *surface, IDirect3DRMDevice **device) PURE;
74 STDMETHOD(CreateDeviceFromD3D)(THIS_ IDirect3D *d3d, IDirect3DDevice *d3d_device,
75 IDirect3DRMDevice **device) PURE;
76 STDMETHOD(CreateDeviceFromClipper)(THIS_ IDirectDrawClipper *clipper, GUID *guid,
77 int width, int height, IDirect3DRMDevice **device) PURE;
78 STDMETHOD(CreateTextureFromSurface)(THIS_ IDirectDrawSurface *surface,
79 IDirect3DRMTexture **texture) PURE;
80 STDMETHOD(CreateShadow)(THIS_ IDirect3DRMVisual *visual, IDirect3DRMLight *light,
81 D3DVALUE px, D3DVALUE py, D3DVALUE pz, D3DVALUE nx, D3DVALUE ny, D3DVALUE nz,
82 IDirect3DRMVisual **shadow) PURE;
83 STDMETHOD(CreateViewport)(THIS_ IDirect3DRMDevice *device, IDirect3DRMFrame *camera,
84 DWORD x, DWORD y, DWORD width, DWORD height, IDirect3DRMViewport **viewport) PURE;
85 STDMETHOD(CreateWrap)(THIS_ D3DRMWRAPTYPE type, IDirect3DRMFrame *reference, D3DVALUE ox, D3DVALUE oy, D3DVALUE oz,
86 D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, D3DVALUE ux, D3DVALUE uy, D3DVALUE uz, D3DVALUE ou, D3DVALUE ov,
87 D3DVALUE su, D3DVALUE sv, IDirect3DRMWrap **wrap) PURE;
88 STDMETHOD(CreateUserVisual)(THIS_ D3DRMUSERVISUALCALLBACK, LPVOID pArg, LPDIRECT3DRMUSERVISUAL *) PURE;
89 STDMETHOD(LoadTexture)(THIS_ const char *, LPDIRECT3DRMTEXTURE *) PURE;
90 STDMETHOD(LoadTextureFromResource)(THIS_ HRSRC rs, LPDIRECT3DRMTEXTURE *) PURE;
91 STDMETHOD(SetSearchPath)(THIS_ LPCSTR) PURE;
92 STDMETHOD(AddSearchPath)(THIS_ LPCSTR) PURE;
93 STDMETHOD(GetSearchPath)(THIS_ DWORD *size_return, LPSTR path_return) PURE;
94 STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE;
95 STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE;
96 STDMETHOD(GetDevices)(THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE;
97 STDMETHOD(GetNamedObject)(THIS_ const char *name, IDirect3DRMObject **object) PURE;
98 STDMETHOD(EnumerateObjects)(THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE;
99 STDMETHOD(Load)(THIS_ void *source, void *object_id, IID **iids, DWORD iid_count, D3DRMLOADOPTIONS flags,
100 D3DRMLOADCALLBACK load_cb, void *load_ctx, D3DRMLOADTEXTURECALLBACK load_tex_cb, void *load_tex_ctx,
101 IDirect3DRMFrame *parent_frame) PURE;
102 STDMETHOD(Tick)(THIS_ D3DVALUE) PURE;
106 #if !defined(__cplusplus) || defined(CINTERFACE)
107 /*** IUnknown methods ***/
108 #define IDirect3DRM_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
109 #define IDirect3DRM_AddRef(p) (p)->lpVtbl->AddRef(p)
110 #define IDirect3DRM_Release(p) (p)->lpVtbl->Release(p)
111 /*** IDirect3DRM methods ***/
112 #define IDirect3DRM_CreateObject(p,a,b,c,d) (p)->lpVtbl->CreateObject(p,a,b,d)
113 #define IDirect3DRM_CreateFrame(p,a,b) (p)->lpVtbl->CreateFrame(p,a,b)
114 #define IDirect3DRM_CreateMesh(p,a) (p)->lpVtbl->CreateMesh(p,a)
115 #define IDirect3DRM_CreateMeshBuilder(p,a) (p)->lpVtbl->CreateMeshBuilder(p,a)
116 #define IDirect3DRM_CreateFace(p,a) (p)->lpVtbl->CreateFace(p,a)
117 #define IDirect3DRM_CreateAnimation(p,a) (p)->lpVtbl->CreateAnimation(p,a)
118 #define IDirect3DRM_CreateAnimationSet(p,a) (p)->lpVtbl->CreateAnimationSet(p,a)
119 #define IDirect3DRM_CreateTexture(p,a,b) (p)->lpVtbl->CreateTexture(p,a,b)
120 #define IDirect3DRM_CreateLight(p,a,b,c) (p)->lpVtbl->CreateLight(p,a,b,c)
121 #define IDirect3DRM_CreateLightRGB(p,a,b,c,d,e) (p)->lpVtbl->CreateLightRGB(p,a,b,c,d,e)
122 #define IDirect3DRM_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b)
123 #define IDirect3DRM_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
124 #define IDirect3DRM_CreateDeviceFromSurface(p,a,b,c,d) (p)->lpVtbl->CreateDeviceFromSurface(p,a,b,c,d)
125 #define IDirect3DRM_CreateDeviceFromD3D(p,a,b,c) (p)->lpVtbl->CreateDeviceFromD3D(p,a,b,c)
126 #define IDirect3DRM_CreateDeviceFromClipper(p,a,b,c,d,e) (p)->lpVtbl->CreateDeviceFromClipper(p,a,b,c,d,e)
127 #define IDirect3DRM_CreateTextureFromSurface(p,a,b) (p)->lpVtbl->CreateTextureFromSurface(p,a,b)
128 #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)
129 #define IDirect3DRM_CreateViewport(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateViewport(p,a,b,c,d,e,f,g)
130 #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)
131 #define IDirect3DRM_CreateUserVisual(p,a,b,c) (p)->lpVtbl->CreateUserVisual(p,a,b,c)
132 #define IDirect3DRM_LoadTexture(p,a,b) (p)->lpVtbl->LoadTexture(p,a,b)
133 #define IDirect3DRM_LoadTextureFromResource(p,a,b) (p)->lpVtbl->LoadTextureFromResource(p,a,b)
134 #define IDirect3DRM_SetSearchPath(p,a) (p)->lpVtbl->SetSearchPath(p,a)
135 #define IDirect3DRM_AddSearchPath(p,a) (p)->lpVtbl->AddSearchPath(p,a)
136 #define IDirect3DRM_GetSearchPath(p,a,b) (p)->lpVtbl->GetSearchPath(p,a,b)
137 #define IDirect3DRM_SetDefaultTextureColors(p,a) (p)->lpVtbl->SetDefaultTextureColors(p,a)
138 #define IDirect3DRM_SetDefaultTextureShades(p,a) (p)->lpVtbl->SetDefaultTextureShades(p,a)
139 #define IDirect3DRM_GetDevices(p,a) (p)->lpVtbl->GetDevices(p,a)
140 #define IDirect3DRM_GetNamedObject(p,a,b) (p)->lpVtbl->GetNamedObject(p,a,b)
141 #define IDirect3DRM_EnumerateObjects(p,a,b) (p)->lpVtbl->EnumerateObjects(p,a,b)
142 #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)
143 #define IDirect3DRM_Tick(p,a) (p)->lpVtbl->Tick(p,a)
145 /*** IUnknown methods ***/
146 #define IDirect3DRM_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
147 #define IDirect3DRM_AddRef(p) (p)->AddRef()
148 #define IDirect3DRM_Release(p) (p)->Release()
149 /*** IDirect3DRM methods ***/
150 #define IDirect3DRM_CreateObject(p,a,b,c,d) (p)->CreateObject(a,b,d)
151 #define IDirect3DRM_CreateFrame(p,a,b) (p)->CreateFrame(a,b)
152 #define IDirect3DRM_CreateMesh(p,a) (p)->CreateMesh(a)
153 #define IDirect3DRM_CreateMeshBuilder(p,a) (p)->CreateMeshBuilder(a)
154 #define IDirect3DRM_CreateFace(p,a) (p)->CreateFace(a)
155 #define IDirect3DRM_CreateAnimation(p,a) (p)->CreateAnimation(a)
156 #define IDirect3DRM_CreateAnimationSet(p,a) (p)->CreateAnimationSet(a)
157 #define IDirect3DRM_CreateTexture(p,a,b) (p)->CreateTexture(a,b)
158 #define IDirect3DRM_CreateLight(p,a,b,c) (p)->CreateLight(a,b,c)
159 #define IDirect3DRM_CreateLightRGB(p,a,b,c,d,e) (p)->CreateLightRGB(a,b,c,d,e)
160 #define IDirect3DRM_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b)
161 #define IDirect3DRM_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
162 #define IDirect3DRM_CreateDeviceFromSurface(p,a,b,c,d) (p)->CreateDeviceFromSurface(a,b,c,d)
163 #define IDirect3DRM_CreateDeviceFromD3D(p,a,b,c) (p)->CreateDeviceFromD3D(a,b,c)
164 #define IDirect3DRM_CreateDeviceFromClipper(p,a,b,c,d,e) (p)->CreateDeviceFromClipper(a,b,c,d,e)
165 #define IDirect3DRM_CreateTextureFromSurface(p,a,b) (p)->CreateTextureFromSurface(a,b)
166 #define IDirect3DRM_CreateShadow(p,a,b,c,d,e,f,g,h,i) (p)->CreateShadow(a,b,c,d,e,f,g,h,i)
167 #define IDirect3DRM_CreateViewport(p,a,b,c,d,e,f,g) (p)->CreateViewport(a,b,c,d,e,f,g)
168 #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)
169 #define IDirect3DRM_CreateUserVisual(p,a,b,c) (p)->CreateUserVisual(a,b,c)
170 #define IDirect3DRM_LoadTexture(p,a,b) (p)->LoadTexture(a,b)
171 #define IDirect3DRM_LoadTextureFromResource(p,a,b) (p)->LoadTextureFromResource(a,b)
172 #define IDirect3DRM_SetSearchPath(p,a) (p)->SetSearchPath(a)
173 #define IDirect3DRM_AddSearchPath(p,a) (p)->AddSearchPath(a)
174 #define IDirect3DRM_GetSearchPath(p,a,b) (p)->GetSearchPath(a,b)
175 #define IDirect3DRM_SetDefaultTextureColors(p,a) (p)->SetDefaultTextureColors(a)
176 #define IDirect3DRM_SetDefaultTextureShades(p,a) (p)->SetDefaultTextureShades(a)
177 #define IDirect3DRM_GetDevices(p,a) (p)->GetDevices(a)
178 #define IDirect3DRM_GetNamedObject(p,a,b) (p)->GetNamedObject(a,b)
179 #define IDirect3DRM_EnumerateObjects(p,a,b) (p)->EnumerateObjects(a,b)
180 #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)
181 #define IDirect3DRM_Tick(p,a) (p)->Tick(a)
184 /*****************************************************************************
185 * IDirect3DRM2 interface
187 #ifdef WINE_NO_UNICODE_MACROS
190 #define INTERFACE IDirect3DRM2
191 DECLARE_INTERFACE_(IDirect3DRM2,IUnknown)
193 /*** IUnknown methods ***/
194 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
195 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
196 STDMETHOD_(ULONG,Release)(THIS) PURE;
197 /*** IDirect3DRM2 methods ***/
198 STDMETHOD(CreateObject)(THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE;
199 STDMETHOD(CreateFrame)(THIS_ IDirect3DRMFrame *parent, IDirect3DRMFrame2 **frame) PURE;
200 STDMETHOD(CreateMesh)(THIS_ IDirect3DRMMesh **mesh) PURE;
201 STDMETHOD(CreateMeshBuilder)(THIS_ IDirect3DRMMeshBuilder2 **mesh_builder) PURE;
202 STDMETHOD(CreateFace)(THIS_ LPDIRECT3DRMFACE *) PURE;
203 STDMETHOD(CreateAnimation)(THIS_ LPDIRECT3DRMANIMATION *) PURE;
204 STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET *) PURE;
205 STDMETHOD(CreateTexture)(THIS_ D3DRMIMAGE *image, IDirect3DRMTexture2 **texture) PURE;
206 STDMETHOD(CreateLight)(THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT *) PURE;
207 STDMETHOD(CreateLightRGB)(THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT *) PURE;
208 STDMETHOD(CreateMaterial)(THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL *) PURE;
209 STDMETHOD(CreateDevice)(THIS_ DWORD width, DWORD height, IDirect3DRMDevice2 **device) PURE;
210 STDMETHOD(CreateDeviceFromSurface)(THIS_ GUID *guid, IDirectDraw *ddraw,
211 IDirectDrawSurface *surface, IDirect3DRMDevice2 **device) PURE;
212 STDMETHOD(CreateDeviceFromD3D)(THIS_ IDirect3D2 *d3d, IDirect3DDevice2 *d3d_device,
213 IDirect3DRMDevice2 **device) PURE;
214 STDMETHOD(CreateDeviceFromClipper)(THIS_ IDirectDrawClipper *clipper, GUID *guid,
215 int width, int height, IDirect3DRMDevice2 **device) PURE;
216 STDMETHOD(CreateTextureFromSurface)(THIS_ IDirectDrawSurface *surface,
217 IDirect3DRMTexture2 **texture) PURE;
218 STDMETHOD(CreateShadow)(THIS_ IDirect3DRMVisual *visual, IDirect3DRMLight *light,
219 D3DVALUE px, D3DVALUE py, D3DVALUE pz, D3DVALUE nx, D3DVALUE ny, D3DVALUE nz,
220 IDirect3DRMVisual **shadow) PURE;
221 STDMETHOD(CreateViewport)(THIS_ IDirect3DRMDevice *device, IDirect3DRMFrame *camera,
222 DWORD x, DWORD y, DWORD width, DWORD height, IDirect3DRMViewport **viewport) PURE;
223 STDMETHOD(CreateWrap)(THIS_ D3DRMWRAPTYPE type, IDirect3DRMFrame *reference, D3DVALUE ox, D3DVALUE oy, D3DVALUE oz,
224 D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, D3DVALUE ux, D3DVALUE uy, D3DVALUE uz, D3DVALUE ou, D3DVALUE ov,
225 D3DVALUE su, D3DVALUE sv, IDirect3DRMWrap **wrap) PURE;
226 STDMETHOD(CreateUserVisual)(THIS_ D3DRMUSERVISUALCALLBACK, LPVOID pArg, LPDIRECT3DRMUSERVISUAL *) PURE;
227 STDMETHOD(LoadTexture)(THIS_ const char *, LPDIRECT3DRMTEXTURE2 *) PURE;
228 STDMETHOD(LoadTextureFromResource)(THIS_ HMODULE hModule, LPCSTR /* LPCTSTR */ strName, LPCSTR /* LPCTSTR */ strType, LPDIRECT3DRMTEXTURE2 *) PURE;
229 STDMETHOD(SetSearchPath)(THIS_ LPCSTR) PURE;
230 STDMETHOD(AddSearchPath)(THIS_ LPCSTR) PURE;
231 STDMETHOD(GetSearchPath)(THIS_ DWORD *size_return, LPSTR path_return) PURE;
232 STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE;
233 STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE;
234 STDMETHOD(GetDevices)(THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE;
235 STDMETHOD(GetNamedObject)(THIS_ const char *name, IDirect3DRMObject **object) PURE;
236 STDMETHOD(EnumerateObjects)(THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE;
237 STDMETHOD(Load)(THIS_ void *source, void *object_id, IID **iids, DWORD iid_count, D3DRMLOADOPTIONS flags,
238 D3DRMLOADCALLBACK load_cb, void *load_ctx, D3DRMLOADTEXTURECALLBACK load_tex_cb, void *load_tex_ctx,
239 IDirect3DRMFrame *parent_frame) PURE;
240 STDMETHOD(Tick)(THIS_ D3DVALUE) PURE;
241 STDMETHOD(CreateProgressiveMesh)(THIS_ LPDIRECT3DRMPROGRESSIVEMESH *) PURE;
245 #if !defined(__cplusplus) || defined(CINTERFACE)
246 /*** IUnknown methods ***/
247 #define IDirect3DRM2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
248 #define IDirect3DRM2_AddRef(p) (p)->lpVtbl->AddRef(p)
249 #define IDirect3DRM2_Release(p) (p)->lpVtbl->Release(p)
250 /*** IDirect3DRM2 methods ***/
251 #define IDirect3DRM2_CreateObject(p,a,b,c,d) (p)->lpVtbl->CreateObject(p,a,b,d)
252 #define IDirect3DRM2_CreateFrame(p,a,b) (p)->lpVtbl->CreateFrame(p,a,b)
253 #define IDirect3DRM2_CreateMesh(p,a) (p)->lpVtbl->CreateMesh(p,a)
254 #define IDirect3DRM2_CreateMeshBuilder(p,a) (p)->lpVtbl->CreateMeshBuilder(p,a)
255 #define IDirect3DRM2_CreateFace(p,a) (p)->lpVtbl->CreateFace(p,a)
256 #define IDirect3DRM2_CreateAnimation(p,a) (p)->lpVtbl->CreateAnimation(p,a)
257 #define IDirect3DRM2_CreateAnimationSet(p,a) (p)->lpVtbl->CreateAnimationSet(p,a)
258 #define IDirect3DRM2_CreateTexture(p,a,b) (p)->lpVtbl->CreateTexture(p,a,b)
259 #define IDirect3DRM2_CreateLight(p,a,b,c) (p)->lpVtbl->CreateLight(p,a,b,c)
260 #define IDirect3DRM2_CreateLightRGB(p,a,b,c,d,e) (p)->lpVtbl->CreateLightRGB(p,a,b,c,d,e)
261 #define IDirect3DRM2_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b)
262 #define IDirect3DRM2_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
263 #define IDirect3DRM2_CreateDeviceFromSurface(p,a,b,c,d) (p)->lpVtbl->CreateDeviceFromSurface(p,a,b,c,d)
264 #define IDirect3DRM2_CreateDeviceFromD3D(p,a,b,c) (p)->lpVtbl->CreateDeviceFromD3D(p,a,b,c)
265 #define IDirect3DRM2_CreateDeviceFromClipper(p,a,b,c,d,e) (p)->lpVtbl->CreateDeviceFromClipper(p,a,b,c,d,e)
266 #define IDirect3DRM2_CreateTextureFromSurface(p,a,b) (p)->lpVtbl->CreateTextureFromSurface(p,a,b)
267 #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)
268 #define IDirect3DRM2_CreateViewport(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateViewport(p,a,b,c,d,e,f,g)
269 #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)
270 #define IDirect3DRM2_CreateUserVisual(p,a,b,c) (p)->lpVtbl->CreateUserVisual(p,a,b,c)
271 #define IDirect3DRM2_LoadTexture(p,a,b) (p)->lpVtbl->LoadTexture(p,a,b)
272 #define IDirect3DRM2_LoadTextureFromResource(p,a,b,c,d) (p)->lpVtbl->LoadTextureFromResource(p,a,b,c,d)
273 #define IDirect3DRM2_SetSearchPath(p,a) (p)->lpVtbl->SetSearchPath(p,a)
274 #define IDirect3DRM2_AddSearchPath(p,a) (p)->lpVtbl->AddSearchPath(p,a)
275 #define IDirect3DRM2_GetSearchPath(p,a,b) (p)->lpVtbl->GetSearchPath(p,a,b)
276 #define IDirect3DRM2_SetDefaultTextureColors(p,a) (p)->lpVtbl->SetDefaultTextureColors(p,a)
277 #define IDirect3DRM2_SetDefaultTextureShades(p,a) (p)->lpVtbl->SetDefaultTextureShades(p,a)
278 #define IDirect3DRM2_GetDevices(p,a) (p)->lpVtbl->GetDevices(p,a)
279 #define IDirect3DRM2_GetNamedObject(p,a,b) (p)->lpVtbl->GetNamedObject(p,a,b)
280 #define IDirect3DRM2_EnumerateObjects(p,a,b) (p)->lpVtbl->EnumerateObjects(p,a,b)
281 #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)
282 #define IDirect3DRM2_Tick(p,a) (p)->lpVtbl->Tick(p,a)
283 #define IDirect3DRM2_CreateProgressiveMesh(p,a) (p)->lpVtbl->CreateProgressiveMesh(p,a)
285 /*** IUnknown methods ***/
286 #define IDirect3DRM2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
287 #define IDirect3DRM2_AddRef(p) (p)->AddRef()
288 #define IDirect3DRM2_Release(p) (p)->Release()
289 /*** IDirect3DRM2 methods ***/
290 #define IDirect3DRM2_CreateObject(p,a,b,c,d) (p)->CreateObject(a,b,d)
291 #define IDirect3DRM2_CreateFrame(p,a,b) (p)->CreateFrame(a,b)
292 #define IDirect3DRM2_CreateMesh(p,a) (p)->CreateMesh(a)
293 #define IDirect3DRM2_CreateMeshBuilder(p,a) (p)->CreateMeshBuilder(a)
294 #define IDirect3DRM2_CreateFace(p,a) (p)->CreateFace(a)
295 #define IDirect3DRM2_CreateAnimation(p,a) (p)->CreateAnimation(a)
296 #define IDirect3DRM2_CreateAnimationSet(p,a) (p)->CreateAnimationSet(a)
297 #define IDirect3DRM2_CreateTexture(p,a,b) (p)->CreateTexture(a,b)
298 #define IDirect3DRM2_CreateLight(p,a,b,c) (p)->CreateLight(a,b,c)
299 #define IDirect3DRM2_CreateLightRGB(p,a,b,c,d,e) (p)->CreateLightRGB(a,b,c,d,e)
300 #define IDirect3DRM2_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b)
301 #define IDirect3DRM2_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
302 #define IDirect3DRM2_CreateDeviceFromSurface(p,a,b,c,d) (p)->CreateDeviceFromSurface(a,b,c,d)
303 #define IDirect3DRM2_CreateDeviceFromD3D(p,a,b,c) (p)->CreateDeviceFromD3D(a,b,c)
304 #define IDirect3DRM2_CreateDeviceFromClipper(p,a,b,c,d,e) (p)->CreateDeviceFromClipper(a,b,c,d,e)
305 #define IDirect3DRM2_CreateTextureFromSurface(p,a,b) (p)->CreateTextureFromSurface(a,b)
306 #define IDirect3DRM2_CreateShadow(p,a,b,c,d,e,f,g,h,i) (p)->CreateShadow(a,b,c,d,e,f,g,h,i)
307 #define IDirect3DRM2_CreateViewport(p,a,b,c,d,e,f,g) (p)->CreateViewport(a,b,c,d,e,f,g)
308 #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)
309 #define IDirect3DRM2_CreateUserVisual(p,a,b,c) (p)->CreateUserVisual(a,b,c)
310 #define IDirect3DRM2_LoadTexture(p,a,b) (p)->LoadTexture(a,b)
311 #define IDirect3DRM2_LoadTextureFromResource(p,a,b,c,d) (p)->LoadTextureFromResource(a,b,c,d)
312 #define IDirect3DRM2_SetSearchPath(p,a) (p)->SetSearchPath(a)
313 #define IDirect3DRM2_AddSearchPath(p,a) (p)->AddSearchPath(a)
314 #define IDirect3DRM2_GetSearchPath(p,a,b) (p)->GetSearchPath(a,b)
315 #define IDirect3DRM2_SetDefaultTextureColors(p,a) (p)->SetDefaultTextureColors(a)
316 #define IDirect3DRM2_SetDefaultTextureShades(p,a) (p)->SetDefaultTextureShades(a)
317 #define IDirect3DRM2_GetDevices(p,a) (p)->GetDevices(a)
318 #define IDirect3DRM2_GetNamedObject(p,a,b) (p)->GetNamedObject(a,b)
319 #define IDirect3DRM2_EnumerateObjects(p,a,b) (p)->EnumerateObjects(a,b)
320 #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)
321 #define IDirect3DRM2_Tick(p,a) (p)->Tick(a)
322 #define IDirect3DRM2_CreateProgressiveMesh(p,a) (p)->CreateProgressiveMesh(p,a)
325 /*****************************************************************************
326 * IDirect3DRM3 interface
328 #ifdef WINE_NO_UNICODE_MACROS
331 #define INTERFACE IDirect3DRM3
332 DECLARE_INTERFACE_(IDirect3DRM3,IUnknown)
334 /*** IUnknown methods ***/
335 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
336 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
337 STDMETHOD_(ULONG,Release)(THIS) PURE;
338 /*** IDirect3DRM2 methods ***/
339 STDMETHOD(CreateObject)(THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE;
340 STDMETHOD(CreateFrame)(THIS_ IDirect3DRMFrame3 *parent, IDirect3DRMFrame3 **frame) PURE;
341 STDMETHOD(CreateMesh)(THIS_ IDirect3DRMMesh **mesh) PURE;
342 STDMETHOD(CreateMeshBuilder)(THIS_ IDirect3DRMMeshBuilder3 **mesh_builder) PURE;
343 STDMETHOD(CreateFace)(THIS_ LPDIRECT3DRMFACE2 *) PURE;
344 STDMETHOD(CreateAnimation)(THIS_ LPDIRECT3DRMANIMATION2 *) PURE;
345 STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET2 *) PURE;
346 STDMETHOD(CreateTexture)(THIS_ D3DRMIMAGE *image, IDirect3DRMTexture3 **texture) PURE;
347 STDMETHOD(CreateLight)(THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT *) PURE;
348 STDMETHOD(CreateLightRGB)(THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT *) PURE;
349 STDMETHOD(CreateMaterial)(THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL2 *) PURE;
350 STDMETHOD(CreateDevice)(THIS_ DWORD width, DWORD height, IDirect3DRMDevice3 **device) PURE;
351 STDMETHOD(CreateDeviceFromSurface)(THIS_ GUID *guid, IDirectDraw *ddraw,
352 IDirectDrawSurface *surface, IDirect3DRMDevice3 **device) PURE;
353 STDMETHOD(CreateDeviceFromD3D)(THIS_ IDirect3D2 *d3d, IDirect3DDevice2 *d3d_device,
354 IDirect3DRMDevice3 **device) PURE;
355 STDMETHOD(CreateDeviceFromClipper)(THIS_ IDirectDrawClipper *clipper, GUID *guid,
356 int width, int height, IDirect3DRMDevice3 **device) PURE;
357 STDMETHOD(CreateTextureFromSurface)(THIS_ IDirectDrawSurface *surface,
358 IDirect3DRMTexture3 **texture) PURE;
359 STDMETHOD(CreateShadow)(THIS_ LPUNKNOWN, LPDIRECT3DRMLIGHT, D3DVALUE px, D3DVALUE py, D3DVALUE pz,
360 D3DVALUE nx, D3DVALUE ny, D3DVALUE nz, LPDIRECT3DRMSHADOW2 *) PURE;
361 STDMETHOD(CreateViewport)(THIS_ IDirect3DRMDevice3 *device, IDirect3DRMFrame3 *camera,
362 DWORD x, DWORD y, DWORD width, DWORD height, IDirect3DRMViewport2 **viewport) PURE;
363 STDMETHOD(CreateWrap)(THIS_ D3DRMWRAPTYPE type, IDirect3DRMFrame3 *reference,
364 D3DVALUE ox, D3DVALUE oy, D3DVALUE oz, D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
365 D3DVALUE ux, D3DVALUE uy, D3DVALUE uz, D3DVALUE ou, D3DVALUE ov, D3DVALUE su, D3DVALUE sv,
366 IDirect3DRMWrap **wrap) PURE;
367 STDMETHOD(CreateUserVisual)(THIS_ D3DRMUSERVISUALCALLBACK, LPVOID pArg, LPDIRECT3DRMUSERVISUAL *) PURE;
368 STDMETHOD(LoadTexture)(THIS_ const char *, LPDIRECT3DRMTEXTURE3 *) PURE;
369 STDMETHOD(LoadTextureFromResource)(THIS_ HMODULE hModule, LPCSTR /* LPCTSTR */ strName, LPCSTR /* LPCTSTR */ strType, LPDIRECT3DRMTEXTURE3 *) PURE;
370 STDMETHOD(SetSearchPath)(THIS_ LPCSTR) PURE;
371 STDMETHOD(AddSearchPath)(THIS_ LPCSTR) PURE;
372 STDMETHOD(GetSearchPath)(THIS_ DWORD *size_return, LPSTR path_return) PURE;
373 STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE;
374 STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE;
375 STDMETHOD(GetDevices)(THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE;
376 STDMETHOD(GetNamedObject)(THIS_ const char *name, IDirect3DRMObject **object) PURE;
377 STDMETHOD(EnumerateObjects)(THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE;
378 STDMETHOD(Load)(THIS_ void *source, void *object_id, IID **iids, DWORD iid_count, D3DRMLOADOPTIONS flags,
379 D3DRMLOADCALLBACK load_cb, void *load_ctx, D3DRMLOADTEXTURECALLBACK load_tex_cb, void *load_tex_ctx,
380 IDirect3DRMFrame3 *parent_frame) PURE;
381 STDMETHOD(Tick)(THIS_ D3DVALUE) PURE;
382 STDMETHOD(CreateProgressiveMesh)(THIS_ LPDIRECT3DRMPROGRESSIVEMESH) PURE;
383 STDMETHOD(RegisterClient)(THIS_ REFGUID rguid, LPDWORD lpdwID) PURE;
384 STDMETHOD(UnregisterClient)(THIS_ REFGUID rguid) PURE;
385 STDMETHOD(CreateClippedVisual)(THIS_ IDirect3DRMVisual *visual, IDirect3DRMClippedVisual **clipped_visual) PURE;
386 STDMETHOD(SetOptions)(THIS_ DWORD) PURE;
387 STDMETHOD(GetOptions)(THIS_ LPDWORD) PURE;
391 #if !defined(__cplusplus) || defined(CINTERFACE)
392 /*** IUnknown methods ***/
393 #define IDirect3DRM3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
394 #define IDirect3DRM3_AddRef(p) (p)->lpVtbl->AddRef(p)
395 #define IDirect3DRM3_Release(p) (p)->lpVtbl->Release(p)
396 /*** IDirect3DRM3 methods ***/
397 #define IDirect3DRM3_CreateObject(p,a,b,c,d) (p)->lpVtbl->CreateObject(p,a,b,d)
398 #define IDirect3DRM3_CreateFrame(p,a,b) (p)->lpVtbl->CreateFrame(p,a,b)
399 #define IDirect3DRM3_CreateMesh(p,a) (p)->lpVtbl->CreateMesh(p,a)
400 #define IDirect3DRM3_CreateMeshBuilder(p,a) (p)->lpVtbl->CreateMeshBuilder(p,a)
401 #define IDirect3DRM3_CreateFace(p,a) (p)->lpVtbl->CreateFace(p,a)
402 #define IDirect3DRM3_CreateAnimation(p,a) (p)->lpVtbl->CreateAnimation(p,a)
403 #define IDirect3DRM3_CreateAnimationSet(p,a) (p)->lpVtbl->CreateAnimationSet(p,a)
404 #define IDirect3DRM3_CreateTexture(p,a,b) (p)->lpVtbl->CreateTexture(p,a,b)
405 #define IDirect3DRM3_CreateLight(p,a,b,c) (p)->lpVtbl->CreateLight(p,a,b,c)
406 #define IDirect3DRM3_CreateLightRGB(p,a,b,c,d,e) (p)->lpVtbl->CreateLightRGB(p,a,b,c,d,e)
407 #define IDirect3DRM3_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b)
408 #define IDirect3DRM3_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
409 #define IDirect3DRM3_CreateDeviceFromSurface(p,a,b,c,d) (p)->lpVtbl->CreateDeviceFromSurface(p,a,b,c,d)
410 #define IDirect3DRM3_CreateDeviceFromD3D(p,a,b,c) (p)->lpVtbl->CreateDeviceFromD3D(p,a,b,c)
411 #define IDirect3DRM3_CreateDeviceFromClipper(p,a,b,c,d,e) (p)->lpVtbl->CreateDeviceFromClipper(p,a,b,c,d,e)
412 #define IDirect3DRM3_CreateTextureFromSurface(p,a,b) (p)->lpVtbl->CreateTextureFromSurface(p,a,b)
413 #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)
414 #define IDirect3DRM3_CreateViewport(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateViewport(p,a,b,c,d,e,f,g)
415 #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)
416 #define IDirect3DRM3_CreateUserVisual(p,a,b,c) (p)->lpVtbl->CreateUserVisual(p,a,b,c)
417 #define IDirect3DRM3_LoadTexture(p,a,b) (p)->lpVtbl->LoadTexture(p,a,b)
418 #define IDirect3DRM3_LoadTextureFromResource(p,a,b,c,d) (p)->lpVtbl->LoadTextureFromResource(p,a,b,c,d)
419 #define IDirect3DRM3_SetSearchPath(p,a) (p)->lpVtbl->SetSearchPath(p,a)
420 #define IDirect3DRM3_AddSearchPath(p,a) (p)->lpVtbl->AddSearchPath(p,a)
421 #define IDirect3DRM3_GetSearchPath(p,a,b) (p)->lpVtbl->GetSearchPath(p,a,b)
422 #define IDirect3DRM3_SetDefaultTextureColors(p,a) (p)->lpVtbl->SetDefaultTextureColors(p,a)
423 #define IDirect3DRM3_SetDefaultTextureShades(p,a) (p)->lpVtbl->SetDefaultTextureShades(p,a)
424 #define IDirect3DRM3_GetDevices(p,a) (p)->lpVtbl->GetDevices(p,a)
425 #define IDirect3DRM3_GetNamedObject(p,a,b) (p)->lpVtbl->GetNamedObject(p,a,b)
426 #define IDirect3DRM3_EnumerateObjects(p,a,b) (p)->lpVtbl->EnumerateObjects(p,a,b)
427 #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)
428 #define IDirect3DRM3_Tick(p,a) (p)->lpVtbl->Tick(p,a)
429 #define IDirect3DRM3_CreateProgressiveMesh(p,a) (p)->lpVtbl->CreateProgressiveMesh(p,a)
430 #define IDirect3DRM3_RegisterClient(p,a,b) (p)->lpVtbl->RegisterClient(p,a,b)
431 #define IDirect3DRM3_UnregisterClient(p,a) (p)->lpVtbl->UnregisterClient(p,a)
432 #define IDirect3DRM3_CreateClippedVisual(p,ab) (p)->lpVtbl->CreateClippedVisual(p,a,b)
433 #define IDirect3DRM3_SetOptions(p,a) (p)->lpVtbl->SetOptions(p,a)
434 #define IDirect3DRM3_GetOptions(p,a) (p)->lpVtbl->GetOptions(p,a)
436 /*** IUnknown methods ***/
437 #define IDirect3DRM3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
438 #define IDirect3DRM3_AddRef(p) (p)->AddRef()
439 #define IDirect3DRM3_Release(p) (p)->Release()
440 /*** IDirect3DRM3 methods ***/
441 #define IDirect3DRM3_CreateObject(p,a,b,c,d) (p)->CreateObject(a,b,d)
442 #define IDirect3DRM3_CreateFrame(p,a,b) (p)->CreateFrame(a,b)
443 #define IDirect3DRM3_CreateMesh(p,a) (p)->CreateMesh(a)
444 #define IDirect3DRM3_CreateMeshBuilder(p,a) (p)->CreateMeshBuilder(a)
445 #define IDirect3DRM3_CreateFace(p,a) (p)->CreateFace(a)
446 #define IDirect3DRM3_CreateAnimation(p,a) (p)->CreateAnimation(a)
447 #define IDirect3DRM3_CreateAnimationSet(p,a) (p)->CreateAnimationSet(a)
448 #define IDirect3DRM3_CreateTexture(p,a,b) (p)->CreateTexture(a,b)
449 #define IDirect3DRM3_CreateLight(p,a,b,c) (p)->CreateLight(a,b,c)
450 #define IDirect3DRM3_CreateLightRGB(p,a,b,c,d,e) (p)->CreateLightRGB(a,b,c,d,e)
451 #define IDirect3DRM3_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b)
452 #define IDirect3DRM3_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
453 #define IDirect3DRM3_CreateDeviceFromSurface(p,a,b,c,d) (p)->CreateDeviceFromSurface(a,b,c,d)
454 #define IDirect3DRM3_CreateDeviceFromD3D(p,a,b,c) (p)->CreateDeviceFromD3D(a,b,c)
455 #define IDirect3DRM3_CreateDeviceFromClipper(p,a,b,c,d,e) (p)->CreateDeviceFromClipper(a,b,c,d,e)
456 #define IDirect3DRM3_CreateTextureFromSurface(p,a,b) (p)->CreateTextureFromSurface(a,b)
457 #define IDirect3DRM3_CreateShadow(p,a,b,c,d,e,f,g,h,i) (p)->CreateShadow(a,b,c,d,e,f,g,h,i)
458 #define IDirect3DRM3_CreateViewport(p,a,b,c,d,e,f,g) (p)->CreateViewport(a,b,c,d,e,f,g)
459 #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)
460 #define IDirect3DRM3_CreateUserVisual(p,a,b,c) (p)->CreateUserVisual(a,b,c)
461 #define IDirect3DRM3_LoadTexture(p,a,b) (p)->LoadTexture(a,b)
462 #define IDirect3DRM3_LoadTextureFromResource(p,a,b,c,d) (p)->LoadTextureFromResource(a,b,c,d)
463 #define IDirect3DRM3_SetSearchPath(p,a) (p)->SetSearchPath(a)
464 #define IDirect3DRM3_AddSearchPath(p,a) (p)->AddSearchPath(a)
465 #define IDirect3DRM3_GetSearchPath(p,a,b) (p)->GetSearchPath(a,b)
466 #define IDirect3DRM3_SetDefaultTextureColors(p,a) (p)->SetDefaultTextureColors(a)
467 #define IDirect3DRM3_SetDefaultTextureShades(p,a) (p)->SetDefaultTextureShades(a)
468 #define IDirect3DRM3_GetDevices(p,a) (p)->GetDevices(a)
469 #define IDirect3DRM3_GetNamedObject(p,a,b) (p)->GetNamedObject(a,b)
470 #define IDirect3DRM3_EnumerateObjects(p,a,b) (p)->EnumerateObjects(a,b)
471 #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)
472 #define IDirect3DRM3_Tick(p,a) (p)->Tick(a)
473 #define IDirect3DRM3_CreateProgressiveMesh(p,a) (p)->CreateProgressiveMesh(p,a)
474 #define IDirect3DRM3_RegisterClient(p,a,b) (p)->RegisterClient(p,a,b)
475 #define IDirect3DRM3_UnregisterClient(p,a) (p)->UnregisterClient(p,a)
476 #define IDirect3DRM3_CreateClippedVisual(p,ab) (p)->CreateClippedVisual(p,a,b)
477 #define IDirect3DRM3_SetOptions(p,a) (p)->SetOptions(p,a)
478 #define IDirect3DRM3_GetOptions(p,a) (p)->GetOptions(p,a)
481 #define D3DRM_OK DD_OK
482 #define D3DRMERR_BADOBJECT MAKE_DDHRESULT(781)
483 #define D3DRMERR_BADTYPE MAKE_DDHRESULT(782)
484 #define D3DRMERR_BADALLOC MAKE_DDHRESULT(783)
485 #define D3DRMERR_FACEUSED MAKE_DDHRESULT(784)
486 #define D3DRMERR_NOTFOUND MAKE_DDHRESULT(785)
487 #define D3DRMERR_NOTDONEYET MAKE_DDHRESULT(786)
488 #define D3DRMERR_FILENOTFOUND MAKE_DDHRESULT(787)
489 #define D3DRMERR_BADFILE MAKE_DDHRESULT(788)
490 #define D3DRMERR_BADDEVICE MAKE_DDHRESULT(789)
491 #define D3DRMERR_BADVALUE MAKE_DDHRESULT(790)
492 #define D3DRMERR_BADMAJORVERSION MAKE_DDHRESULT(791)
493 #define D3DRMERR_BADMINORVERSION MAKE_DDHRESULT(792)
494 #define D3DRMERR_UNABLETOEXECUTE MAKE_DDHRESULT(793)
495 #define D3DRMERR_LIBRARYNOTFOUND MAKE_DDHRESULT(794)
496 #define D3DRMERR_INVALIDLIBRARY MAKE_DDHRESULT(795)
497 #define D3DRMERR_PENDING MAKE_DDHRESULT(796)
498 #define D3DRMERR_NOTENOUGHDATA MAKE_DDHRESULT(797)
499 #define D3DRMERR_REQUESTTOOLARGE MAKE_DDHRESULT(798)
500 #define D3DRMERR_REQUESTTOOSMALL MAKE_DDHRESULT(799)
501 #define D3DRMERR_CONNECTIONLOST MAKE_DDHRESULT(800)
502 #define D3DRMERR_LOADABORTED MAKE_DDHRESULT(801)
503 #define D3DRMERR_NOINTERNET MAKE_DDHRESULT(802)
504 #define D3DRMERR_BADCACHEFILE MAKE_DDHRESULT(803)
505 #define D3DRMERR_BOXNOTSET MAKE_DDHRESULT(804)
506 #define D3DRMERR_BADPMDATA MAKE_DDHRESULT(805)
507 #define D3DRMERR_CLIENTNOTREGISTERED MAKE_DDHRESULT(806)
508 #define D3DRMERR_NOTCREATEDFROMDDS MAKE_DDHRESULT(807)
509 #define D3DRMERR_NOSUCHKEY MAKE_DDHRESULT(808)
510 #define D3DRMERR_INCOMPATABLEKEY MAKE_DDHRESULT(809)
511 #define D3DRMERR_ELEMENTINUSE MAKE_DDHRESULT(810)
512 #define D3DRMERR_TEXTUREFORMATNOTFOUND MAKE_DDHRESULT(811)
513 #define D3DRMERR_NOTAGGREGATED MAKE_DDHRESULT(812)
519 #endif /* __D3DRM_H__ */