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