annotate lib/legacy_dx/d3drm.h @ 153:60bb9d93c097

29.11.12 (work)
author Ritor1
date Thu, 29 Nov 2012 17:31:43 +0600
parents 8b8875f5b359
children
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 /*==========================================================================;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3 * Copyright (c) Microsoft Corporation. All rights reserved.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5 * File: d3drm.h
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 * Content: Direct3DRM include file
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 ***************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 #ifndef __D3DRM_H__
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 #define __D3DRM_H__
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 #include "ddraw.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 #ifdef __cplusplus
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 struct IDirect3DRM;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 typedef struct IDirect3DRM *LPDIRECT3DRM;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 #include "d3drmobj.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 #ifdef __cplusplus
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 extern "C" {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 DEFINE_GUID(IID_IDirect3DRM, 0x2bc49361, 0x8327, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 DEFINE_GUID(IID_IDirect3DRM2, 0x4516ecc8, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 DEFINE_GUID(IID_IDirect3DRM3, 0x4516ec83, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 WIN_TYPES(IDirect3DRM, DIRECT3DRM);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 WIN_TYPES(IDirect3DRM2, DIRECT3DRM2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 WIN_TYPES(IDirect3DRM3, DIRECT3DRM3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 * Direct3DRM Object Class (for CoCreateInstance())
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 DEFINE_GUID(CLSID_CDirect3DRM, 0x4516ec41, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 /* Create a Direct3DRM API */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 STDAPI Direct3DRMCreate(LPDIRECT3DRM FAR *lplpDirect3DRM);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 #define INTERFACE IDirect3DRM
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 DECLARE_INTERFACE_(IDirect3DRM, IUnknown)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 IUNKNOWN_METHODS(PURE);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 STDMETHOD(CreateObject)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 (THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID FAR* ppv) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 STDMETHOD(CreateFrame) (THIS_ LPDIRECT3DRMFRAME, LPDIRECT3DRMFRAME *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 STDMETHOD(CreateMesh) (THIS_ LPDIRECT3DRMMESH *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 STDMETHOD(CreateMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 STDMETHOD(CreateFace) (THIS_ LPDIRECT3DRMFACE *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 STDMETHOD(CreateAnimation) (THIS_ LPDIRECT3DRMANIMATION *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 STDMETHOD(CreateTexture) (THIS_ LPD3DRMIMAGE, LPDIRECT3DRMTEXTURE *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 STDMETHOD(CreateLight) (THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 STDMETHOD(CreateLightRGB)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 (THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 STDMETHOD(CreateMaterial) (THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 STDMETHOD(CreateDevice) (THIS_ DWORD, DWORD, LPDIRECT3DRMDEVICE *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66 /* Create a Windows Device using DirectDraw surfaces */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67 STDMETHOD(CreateDeviceFromSurface)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68 ( THIS_ LPGUID lpGUID, LPDIRECTDRAW lpDD,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 LPDIRECTDRAWSURFACE lpDDSBack, LPDIRECT3DRMDEVICE *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72 /* Create a Windows Device using D3D objects */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73 STDMETHOD(CreateDeviceFromD3D)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 ( THIS_ LPDIRECT3D lpD3D, LPDIRECT3DDEVICE lpD3DDev,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 LPDIRECT3DRMDEVICE *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 STDMETHOD(CreateDeviceFromClipper)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 ( THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 int width, int height, LPDIRECT3DRMDEVICE *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82 STDMETHOD(CreateTextureFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS, LPDIRECT3DRMTEXTURE *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 STDMETHOD(CreateShadow)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85 ( THIS_ LPDIRECT3DRMVISUAL, LPDIRECT3DRMLIGHT,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 D3DVALUE px, D3DVALUE py, D3DVALUE pz,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 D3DVALUE nx, D3DVALUE ny, D3DVALUE nz,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 LPDIRECT3DRMVISUAL *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 STDMETHOD(CreateViewport)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91 ( THIS_ LPDIRECT3DRMDEVICE, LPDIRECT3DRMFRAME, DWORD, DWORD,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92 DWORD, DWORD, LPDIRECT3DRMVIEWPORT *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94 STDMETHOD(CreateWrap)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95 ( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96 D3DVALUE ox, D3DVALUE oy, D3DVALUE oz,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97 D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98 D3DVALUE ux, D3DVALUE uy, D3DVALUE uz,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99 D3DVALUE ou, D3DVALUE ov,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100 D3DVALUE su, D3DVALUE sv,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 LPDIRECT3DRMWRAP *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 STDMETHOD(CreateUserVisual) (THIS_ D3DRMUSERVISUALCALLBACK, LPVOID lPArg, LPDIRECT3DRMUSERVISUAL *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 STDMETHOD(LoadTexture) (THIS_ const char *, LPDIRECT3DRMTEXTURE *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 STDMETHOD(LoadTextureFromResource) (THIS_ HRSRC rs, LPDIRECT3DRMTEXTURE *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 STDMETHOD(SetSearchPath) (THIS_ LPCSTR) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108 STDMETHOD(AddSearchPath) (THIS_ LPCSTR) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 STDMETHOD(GetSearchPath) (THIS_ DWORD *size_return, LPSTR path_return) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113 STDMETHOD(GetDevices) (THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114 STDMETHOD(GetNamedObject) (THIS_ const char *, LPDIRECT3DRMOBJECT *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116 STDMETHOD(EnumerateObjects) (THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118 STDMETHOD(Load)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119 ( THIS_ LPVOID, LPVOID, LPIID *, DWORD, D3DRMLOADOPTIONS,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120 D3DRMLOADCALLBACK, LPVOID, D3DRMLOADTEXTURECALLBACK, LPVOID,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 LPDIRECT3DRMFRAME
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 STDMETHOD(Tick) (THIS_ D3DVALUE) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
127 #define INTERFACE IDirect3DRM2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
128
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
129 DECLARE_INTERFACE_(IDirect3DRM2, IUnknown)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
130 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
131 IUNKNOWN_METHODS(PURE);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
132
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
133 STDMETHOD(CreateObject)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
134 (THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID FAR* ppv) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
135 STDMETHOD(CreateFrame) (THIS_ LPDIRECT3DRMFRAME, LPDIRECT3DRMFRAME2 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
136 STDMETHOD(CreateMesh) (THIS_ LPDIRECT3DRMMESH *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
137 STDMETHOD(CreateMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER2 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
138 STDMETHOD(CreateFace) (THIS_ LPDIRECT3DRMFACE *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
139 STDMETHOD(CreateAnimation) (THIS_ LPDIRECT3DRMANIMATION *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
140 STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
141 STDMETHOD(CreateTexture) (THIS_ LPD3DRMIMAGE, LPDIRECT3DRMTEXTURE2 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
142 STDMETHOD(CreateLight) (THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
143 STDMETHOD(CreateLightRGB)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
144 (THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
145 STDMETHOD(CreateMaterial) (THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
146 STDMETHOD(CreateDevice) (THIS_ DWORD, DWORD, LPDIRECT3DRMDEVICE2 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
147
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
148 /* Create a Windows Device using DirectDraw surfaces */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
149 STDMETHOD(CreateDeviceFromSurface)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
150 ( THIS_ LPGUID lpGUID, LPDIRECTDRAW lpDD,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
151 LPDIRECTDRAWSURFACE lpDDSBack, LPDIRECT3DRMDEVICE2 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
152 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
153
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
154 /* Create a Windows Device using D3D objects */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
155 STDMETHOD(CreateDeviceFromD3D)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
156 ( THIS_ LPDIRECT3D2 lpD3D, LPDIRECT3DDEVICE2 lpD3DDev,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
157 LPDIRECT3DRMDEVICE2 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
158 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
159
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
160 STDMETHOD(CreateDeviceFromClipper)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
161 ( THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
162 int width, int height, LPDIRECT3DRMDEVICE2 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
163
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
164 STDMETHOD(CreateTextureFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS, LPDIRECT3DRMTEXTURE2 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
165
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
166 STDMETHOD(CreateShadow)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
167 ( THIS_ LPDIRECT3DRMVISUAL, LPDIRECT3DRMLIGHT,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
168 D3DVALUE px, D3DVALUE py, D3DVALUE pz,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
169 D3DVALUE nx, D3DVALUE ny, D3DVALUE nz,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
170 LPDIRECT3DRMVISUAL *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
171 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
172 STDMETHOD(CreateViewport)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
173 ( THIS_ LPDIRECT3DRMDEVICE, LPDIRECT3DRMFRAME, DWORD, DWORD,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
174 DWORD, DWORD, LPDIRECT3DRMVIEWPORT *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
175 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
176 STDMETHOD(CreateWrap)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
177 ( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
178 D3DVALUE ox, D3DVALUE oy, D3DVALUE oz,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
179 D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
180 D3DVALUE ux, D3DVALUE uy, D3DVALUE uz,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
181 D3DVALUE ou, D3DVALUE ov,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
182 D3DVALUE su, D3DVALUE sv,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
183 LPDIRECT3DRMWRAP *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
184 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
185 STDMETHOD(CreateUserVisual) (THIS_ D3DRMUSERVISUALCALLBACK, LPVOID lPArg, LPDIRECT3DRMUSERVISUAL *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
186 STDMETHOD(LoadTexture) (THIS_ const char *, LPDIRECT3DRMTEXTURE2 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
187 STDMETHOD(LoadTextureFromResource) (THIS_ HMODULE hModule, LPCTSTR strName, LPCTSTR strType, LPDIRECT3DRMTEXTURE2 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
188
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
189 STDMETHOD(SetSearchPath) (THIS_ LPCSTR) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
190 STDMETHOD(AddSearchPath) (THIS_ LPCSTR) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
191 STDMETHOD(GetSearchPath) (THIS_ DWORD *size_return, LPSTR path_return) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
192 STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
193 STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
194
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
195 STDMETHOD(GetDevices) (THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
196 STDMETHOD(GetNamedObject) (THIS_ const char *, LPDIRECT3DRMOBJECT *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
197
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
198 STDMETHOD(EnumerateObjects) (THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
199
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
200 STDMETHOD(Load)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
201 ( THIS_ LPVOID, LPVOID, LPIID *, DWORD, D3DRMLOADOPTIONS,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
202 D3DRMLOADCALLBACK, LPVOID, D3DRMLOADTEXTURECALLBACK, LPVOID,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
203 LPDIRECT3DRMFRAME
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
204 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
205 STDMETHOD(Tick) (THIS_ D3DVALUE) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
206
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
207 STDMETHOD(CreateProgressiveMesh)(THIS_ LPDIRECT3DRMPROGRESSIVEMESH *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
208 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
209
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
210 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
211 #define INTERFACE IDirect3DRM3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
212
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
213 DECLARE_INTERFACE_(IDirect3DRM3, IUnknown)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
214 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
215 IUNKNOWN_METHODS(PURE);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
216
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
217 STDMETHOD(CreateObject)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
218 (THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID FAR* ppv) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
219 STDMETHOD(CreateFrame) (THIS_ LPDIRECT3DRMFRAME3, LPDIRECT3DRMFRAME3 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
220 STDMETHOD(CreateMesh) (THIS_ LPDIRECT3DRMMESH *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
221 STDMETHOD(CreateMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER3 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
222 STDMETHOD(CreateFace) (THIS_ LPDIRECT3DRMFACE2 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
223 STDMETHOD(CreateAnimation) (THIS_ LPDIRECT3DRMANIMATION2 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
224 STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET2 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
225 STDMETHOD(CreateTexture) (THIS_ LPD3DRMIMAGE, LPDIRECT3DRMTEXTURE3 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
226 STDMETHOD(CreateLight) (THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
227 STDMETHOD(CreateLightRGB)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
228 (THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
229 STDMETHOD(CreateMaterial) (THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL2 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
230 STDMETHOD(CreateDevice) (THIS_ DWORD, DWORD, LPDIRECT3DRMDEVICE3 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
231
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
232 /* Create a Windows Device using DirectDraw surfaces */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
233 STDMETHOD(CreateDeviceFromSurface)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
234 ( THIS_ LPGUID lpGUID, LPDIRECTDRAW lpDD,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
235 LPDIRECTDRAWSURFACE lpDDSBack, DWORD dwFlags, LPDIRECT3DRMDEVICE3 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
236 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
237
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
238 /* Create a Windows Device using D3D objects */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
239 STDMETHOD(CreateDeviceFromD3D)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
240 ( THIS_ LPDIRECT3D2 lpD3D, LPDIRECT3DDEVICE2 lpD3DDev,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
241 LPDIRECT3DRMDEVICE3 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
242 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
243
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
244 STDMETHOD(CreateDeviceFromClipper)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
245 ( THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
246 int width, int height, LPDIRECT3DRMDEVICE3 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
247
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
248 STDMETHOD(CreateTextureFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS, LPDIRECT3DRMTEXTURE3 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
249
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
250 STDMETHOD(CreateShadow)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
251 ( THIS_ LPUNKNOWN, LPDIRECT3DRMLIGHT,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
252 D3DVALUE px, D3DVALUE py, D3DVALUE pz,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
253 D3DVALUE nx, D3DVALUE ny, D3DVALUE nz,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
254 LPDIRECT3DRMSHADOW2 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
255 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
256 STDMETHOD(CreateViewport)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
257 ( THIS_ LPDIRECT3DRMDEVICE3, LPDIRECT3DRMFRAME3, DWORD, DWORD,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
258 DWORD, DWORD, LPDIRECT3DRMVIEWPORT2 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
259 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
260 STDMETHOD(CreateWrap)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
261 ( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME3,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
262 D3DVALUE ox, D3DVALUE oy, D3DVALUE oz,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
263 D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
264 D3DVALUE ux, D3DVALUE uy, D3DVALUE uz,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
265 D3DVALUE ou, D3DVALUE ov,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
266 D3DVALUE su, D3DVALUE sv,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
267 LPDIRECT3DRMWRAP *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
268 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
269 STDMETHOD(CreateUserVisual) (THIS_ D3DRMUSERVISUALCALLBACK, LPVOID lPArg, LPDIRECT3DRMUSERVISUAL *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
270 STDMETHOD(LoadTexture) (THIS_ const char *, LPDIRECT3DRMTEXTURE3 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
271 STDMETHOD(LoadTextureFromResource) (THIS_ HMODULE hModule, LPCTSTR strName, LPCTSTR strType, LPDIRECT3DRMTEXTURE3 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
272
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
273 STDMETHOD(SetSearchPath) (THIS_ LPCSTR) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
274 STDMETHOD(AddSearchPath) (THIS_ LPCSTR) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
275 STDMETHOD(GetSearchPath) (THIS_ DWORD *size_return, LPSTR path_return) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
276 STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
277 STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
278
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
279 STDMETHOD(GetDevices) (THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
280 STDMETHOD(GetNamedObject) (THIS_ const char *, LPDIRECT3DRMOBJECT *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
281
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
282 STDMETHOD(EnumerateObjects) (THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
283
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
284 STDMETHOD(Load)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
285 ( THIS_ LPVOID, LPVOID, LPIID *, DWORD, D3DRMLOADOPTIONS,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
286 D3DRMLOADCALLBACK, LPVOID, D3DRMLOADTEXTURE3CALLBACK, LPVOID,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
287 LPDIRECT3DRMFRAME3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
288 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
289 STDMETHOD(Tick) (THIS_ D3DVALUE) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
290
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
291 STDMETHOD(CreateProgressiveMesh)(THIS_ LPDIRECT3DRMPROGRESSIVEMESH *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
292
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
293 /* Used with IDirect3DRMObject2 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
294 STDMETHOD(RegisterClient) (THIS_ REFGUID rguid, LPDWORD lpdwID) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
295 STDMETHOD(UnregisterClient) (THIS_ REFGUID rguid) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
296
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
297 STDMETHOD(CreateClippedVisual) (THIS_ LPDIRECT3DRMVISUAL, LPDIRECT3DRMCLIPPEDVISUAL *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
298 STDMETHOD(SetOptions) (THIS_ DWORD);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
299 STDMETHOD(GetOptions) (THIS_ LPDWORD);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
300 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
301
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
302 #define D3DRM_OK DD_OK
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
303 #define D3DRMERR_BADOBJECT MAKE_DDHRESULT(781)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
304 #define D3DRMERR_BADTYPE MAKE_DDHRESULT(782)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
305 #define D3DRMERR_BADALLOC MAKE_DDHRESULT(783)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
306 #define D3DRMERR_FACEUSED MAKE_DDHRESULT(784)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
307 #define D3DRMERR_NOTFOUND MAKE_DDHRESULT(785)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
308 #define D3DRMERR_NOTDONEYET MAKE_DDHRESULT(786)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
309 #define D3DRMERR_FILENOTFOUND MAKE_DDHRESULT(787)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
310 #define D3DRMERR_BADFILE MAKE_DDHRESULT(788)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
311 #define D3DRMERR_BADDEVICE MAKE_DDHRESULT(789)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
312 #define D3DRMERR_BADVALUE MAKE_DDHRESULT(790)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
313 #define D3DRMERR_BADMAJORVERSION MAKE_DDHRESULT(791)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
314 #define D3DRMERR_BADMINORVERSION MAKE_DDHRESULT(792)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
315 #define D3DRMERR_UNABLETOEXECUTE MAKE_DDHRESULT(793)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
316 #define D3DRMERR_LIBRARYNOTFOUND MAKE_DDHRESULT(794)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
317 #define D3DRMERR_INVALIDLIBRARY MAKE_DDHRESULT(795)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
318 #define D3DRMERR_PENDING MAKE_DDHRESULT(796)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
319 #define D3DRMERR_NOTENOUGHDATA MAKE_DDHRESULT(797)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
320 #define D3DRMERR_REQUESTTOOLARGE MAKE_DDHRESULT(798)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
321 #define D3DRMERR_REQUESTTOOSMALL MAKE_DDHRESULT(799)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
322 #define D3DRMERR_CONNECTIONLOST MAKE_DDHRESULT(800)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
323 #define D3DRMERR_LOADABORTED MAKE_DDHRESULT(801)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
324 #define D3DRMERR_NOINTERNET MAKE_DDHRESULT(802)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
325 #define D3DRMERR_BADCACHEFILE MAKE_DDHRESULT(803)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
326 #define D3DRMERR_BOXNOTSET MAKE_DDHRESULT(804)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
327 #define D3DRMERR_BADPMDATA MAKE_DDHRESULT(805)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
328 #define D3DRMERR_CLIENTNOTREGISTERED MAKE_DDHRESULT(806)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
329 #define D3DRMERR_NOTCREATEDFROMDDS MAKE_DDHRESULT(807)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
330 #define D3DRMERR_NOSUCHKEY MAKE_DDHRESULT(808)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
331 #define D3DRMERR_INCOMPATABLEKEY MAKE_DDHRESULT(809)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
332 #define D3DRMERR_ELEMENTINUSE MAKE_DDHRESULT(810)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
333 #define D3DRMERR_TEXTUREFORMATNOTFOUND MAKE_DDHRESULT(811)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
334 #define D3DRMERR_NOTAGGREGATED MAKE_DDHRESULT(812)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
335
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
336 #ifdef __cplusplus
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
337 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
338 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
339
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
340 #endif /* _D3DRMAPI_H_ */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
341
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
342