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