annotate lib/legacy_dx/d3drmobj.h @ 2064:74f06d8a8017

Merge
author Ritor1
date Mon, 02 Dec 2013 20:43:28 +0600
parents 934074e7fcc1
children
rev   line source
0
Ritor1
parents:
diff changeset
1 /*==========================================================================;
Ritor1
parents:
diff changeset
2 *
Ritor1
parents:
diff changeset
3 * Copyright (c) Microsoft Corporation. All rights reserved.
Ritor1
parents:
diff changeset
4 *
Ritor1
parents:
diff changeset
5 * File: d3drm.h
Ritor1
parents:
diff changeset
6 * Content: Direct3DRM include file
Ritor1
parents:
diff changeset
7 *
Ritor1
parents:
diff changeset
8 ***************************************************************************/
Ritor1
parents:
diff changeset
9
Ritor1
parents:
diff changeset
10 #ifndef _D3DRMOBJ_H_
Ritor1
parents:
diff changeset
11 #define _D3DRMOBJ_H_
Ritor1
parents:
diff changeset
12
Ritor1
parents:
diff changeset
13 #include <objbase.h> /* Use Windows header files */
Ritor1
parents:
diff changeset
14 #define VIRTUAL
Ritor1
parents:
diff changeset
15 #include "d3drmdef.h"
Ritor1
parents:
diff changeset
16
Ritor1
parents:
diff changeset
17 #include "d3d.h"
Ritor1
parents:
diff changeset
18
Ritor1
parents:
diff changeset
19 #ifdef __cplusplus
Ritor1
parents:
diff changeset
20 extern "C" {
Ritor1
parents:
diff changeset
21 #endif
Ritor1
parents:
diff changeset
22
Ritor1
parents:
diff changeset
23 /*
Ritor1
parents:
diff changeset
24 * The methods for IUnknown
Ritor1
parents:
diff changeset
25 */
Ritor1
parents:
diff changeset
26 #define IUNKNOWN_METHODS(kind) \
Ritor1
parents:
diff changeset
27 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID *ppvObj) kind; \
Ritor1
parents:
diff changeset
28 STDMETHOD_(ULONG, AddRef) (THIS) kind; \
Ritor1
parents:
diff changeset
29 STDMETHOD_(ULONG, Release) (THIS) kind
Ritor1
parents:
diff changeset
30
Ritor1
parents:
diff changeset
31 /*
Ritor1
parents:
diff changeset
32 * The methods for IDirect3DRMObject
Ritor1
parents:
diff changeset
33 */
Ritor1
parents:
diff changeset
34 #define IDIRECT3DRMOBJECT_METHODS(kind) \
Ritor1
parents:
diff changeset
35 STDMETHOD(Clone) (THIS_ LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) kind; \
Ritor1
parents:
diff changeset
36 STDMETHOD(AddDestroyCallback) (THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) kind; \
Ritor1
parents:
diff changeset
37 STDMETHOD(DeleteDestroyCallback) (THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) kind; \
Ritor1
parents:
diff changeset
38 STDMETHOD(SetAppData) (THIS_ DWORD data) kind; \
Ritor1
parents:
diff changeset
39 STDMETHOD_(DWORD, GetAppData) (THIS) kind; \
Ritor1
parents:
diff changeset
40 STDMETHOD(SetName) (THIS_ LPCSTR) kind; \
Ritor1
parents:
diff changeset
41 STDMETHOD(GetName) (THIS_ LPDWORD lpdwSize, LPSTR lpName) kind; \
Ritor1
parents:
diff changeset
42 STDMETHOD(GetClassName) (THIS_ LPDWORD lpdwSize, LPSTR lpName) kind
Ritor1
parents:
diff changeset
43
Ritor1
parents:
diff changeset
44
Ritor1
parents:
diff changeset
45 #define WIN_TYPES(itype, ptype) \
Ritor1
parents:
diff changeset
46 typedef interface itype FAR *LP##ptype, FAR **LPLP##ptype
Ritor1
parents:
diff changeset
47
Ritor1
parents:
diff changeset
48 WIN_TYPES(IDirect3DRMObject, DIRECT3DRMOBJECT);
Ritor1
parents:
diff changeset
49 WIN_TYPES(IDirect3DRMObject2, DIRECT3DRMOBJECT2);
Ritor1
parents:
diff changeset
50 WIN_TYPES(IDirect3DRMDevice, DIRECT3DRMDEVICE);
Ritor1
parents:
diff changeset
51 WIN_TYPES(IDirect3DRMDevice2, DIRECT3DRMDEVICE2);
Ritor1
parents:
diff changeset
52 WIN_TYPES(IDirect3DRMDevice3, DIRECT3DRMDEVICE3);
Ritor1
parents:
diff changeset
53 WIN_TYPES(IDirect3DRMViewport, DIRECT3DRMVIEWPORT);
Ritor1
parents:
diff changeset
54 WIN_TYPES(IDirect3DRMViewport2, DIRECT3DRMVIEWPORT2);
Ritor1
parents:
diff changeset
55 WIN_TYPES(IDirect3DRMFrame, DIRECT3DRMFRAME);
Ritor1
parents:
diff changeset
56 WIN_TYPES(IDirect3DRMFrame2, DIRECT3DRMFRAME2);
Ritor1
parents:
diff changeset
57 WIN_TYPES(IDirect3DRMFrame3, DIRECT3DRMFRAME3);
Ritor1
parents:
diff changeset
58 WIN_TYPES(IDirect3DRMVisual, DIRECT3DRMVISUAL);
Ritor1
parents:
diff changeset
59 WIN_TYPES(IDirect3DRMMesh, DIRECT3DRMMESH);
Ritor1
parents:
diff changeset
60 WIN_TYPES(IDirect3DRMMeshBuilder, DIRECT3DRMMESHBUILDER);
Ritor1
parents:
diff changeset
61 WIN_TYPES(IDirect3DRMMeshBuilder2, DIRECT3DRMMESHBUILDER2);
Ritor1
parents:
diff changeset
62 WIN_TYPES(IDirect3DRMMeshBuilder3, DIRECT3DRMMESHBUILDER3);
Ritor1
parents:
diff changeset
63 WIN_TYPES(IDirect3DRMFace, DIRECT3DRMFACE);
Ritor1
parents:
diff changeset
64 WIN_TYPES(IDirect3DRMFace2, DIRECT3DRMFACE2);
Ritor1
parents:
diff changeset
65 WIN_TYPES(IDirect3DRMLight, DIRECT3DRMLIGHT);
Ritor1
parents:
diff changeset
66 WIN_TYPES(IDirect3DRMTexture, DIRECT3DRMTEXTURE);
Ritor1
parents:
diff changeset
67 WIN_TYPES(IDirect3DRMTexture2, DIRECT3DRMTEXTURE2);
Ritor1
parents:
diff changeset
68 WIN_TYPES(IDirect3DRMTexture3, DIRECT3DRMTEXTURE3);
Ritor1
parents:
diff changeset
69 WIN_TYPES(IDirect3DRMWrap, DIRECT3DRMWRAP);
Ritor1
parents:
diff changeset
70 WIN_TYPES(IDirect3DRMMaterial, DIRECT3DRMMATERIAL);
Ritor1
parents:
diff changeset
71 WIN_TYPES(IDirect3DRMMaterial2, DIRECT3DRMMATERIAL2);
Ritor1
parents:
diff changeset
72 WIN_TYPES(IDirect3DRMInterpolator, DIRECT3DRMINTERPOLATOR);
Ritor1
parents:
diff changeset
73 WIN_TYPES(IDirect3DRMAnimation, DIRECT3DRMANIMATION);
Ritor1
parents:
diff changeset
74 WIN_TYPES(IDirect3DRMAnimation2, DIRECT3DRMANIMATION2);
Ritor1
parents:
diff changeset
75 WIN_TYPES(IDirect3DRMAnimationSet, DIRECT3DRMANIMATIONSET);
Ritor1
parents:
diff changeset
76 WIN_TYPES(IDirect3DRMAnimationSet2, DIRECT3DRMANIMATIONSET2);
Ritor1
parents:
diff changeset
77 WIN_TYPES(IDirect3DRMUserVisual, DIRECT3DRMUSERVISUAL);
Ritor1
parents:
diff changeset
78 WIN_TYPES(IDirect3DRMShadow, DIRECT3DRMSHADOW);
Ritor1
parents:
diff changeset
79 WIN_TYPES(IDirect3DRMShadow2, DIRECT3DRMSHADOW2);
Ritor1
parents:
diff changeset
80 WIN_TYPES(IDirect3DRMArray, DIRECT3DRMARRAY);
Ritor1
parents:
diff changeset
81 WIN_TYPES(IDirect3DRMObjectArray, DIRECT3DRMOBJECTARRAY);
Ritor1
parents:
diff changeset
82 WIN_TYPES(IDirect3DRMDeviceArray, DIRECT3DRMDEVICEARRAY);
Ritor1
parents:
diff changeset
83 WIN_TYPES(IDirect3DRMFaceArray, DIRECT3DRMFACEARRAY);
Ritor1
parents:
diff changeset
84 WIN_TYPES(IDirect3DRMViewportArray, DIRECT3DRMVIEWPORTARRAY);
Ritor1
parents:
diff changeset
85 WIN_TYPES(IDirect3DRMFrameArray, DIRECT3DRMFRAMEARRAY);
Ritor1
parents:
diff changeset
86 WIN_TYPES(IDirect3DRMAnimationArray, DIRECT3DRMANIMATIONARRAY);
Ritor1
parents:
diff changeset
87 WIN_TYPES(IDirect3DRMVisualArray, DIRECT3DRMVISUALARRAY);
Ritor1
parents:
diff changeset
88 WIN_TYPES(IDirect3DRMPickedArray, DIRECT3DRMPICKEDARRAY);
Ritor1
parents:
diff changeset
89 WIN_TYPES(IDirect3DRMPicked2Array, DIRECT3DRMPICKED2ARRAY);
Ritor1
parents:
diff changeset
90 WIN_TYPES(IDirect3DRMLightArray, DIRECT3DRMLIGHTARRAY);
Ritor1
parents:
diff changeset
91 WIN_TYPES(IDirect3DRMProgressiveMesh, DIRECT3DRMPROGRESSIVEMESH);
Ritor1
parents:
diff changeset
92 WIN_TYPES(IDirect3DRMClippedVisual, DIRECT3DRMCLIPPEDVISUAL);
Ritor1
parents:
diff changeset
93
Ritor1
parents:
diff changeset
94 /*
Ritor1
parents:
diff changeset
95 * Direct3DRM Object classes
Ritor1
parents:
diff changeset
96 */
Ritor1
parents:
diff changeset
97 DEFINE_GUID(CLSID_CDirect3DRMDevice, 0x4fa3568e, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
98 DEFINE_GUID(CLSID_CDirect3DRMViewport, 0x4fa3568f, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
99 DEFINE_GUID(CLSID_CDirect3DRMFrame, 0x4fa35690, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
100 DEFINE_GUID(CLSID_CDirect3DRMMesh, 0x4fa35691, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
101 DEFINE_GUID(CLSID_CDirect3DRMMeshBuilder, 0x4fa35692, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
102 DEFINE_GUID(CLSID_CDirect3DRMFace, 0x4fa35693, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
103 DEFINE_GUID(CLSID_CDirect3DRMLight, 0x4fa35694, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
104 DEFINE_GUID(CLSID_CDirect3DRMTexture, 0x4fa35695, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
105 DEFINE_GUID(CLSID_CDirect3DRMWrap, 0x4fa35696, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
106 DEFINE_GUID(CLSID_CDirect3DRMMaterial, 0x4fa35697, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
107 DEFINE_GUID(CLSID_CDirect3DRMAnimation, 0x4fa35698, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
108 DEFINE_GUID(CLSID_CDirect3DRMAnimationSet, 0x4fa35699, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
109 DEFINE_GUID(CLSID_CDirect3DRMUserVisual, 0x4fa3569a, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
110 DEFINE_GUID(CLSID_CDirect3DRMShadow, 0x4fa3569b, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
111 DEFINE_GUID(CLSID_CDirect3DRMViewportInterpolator,
Ritor1
parents:
diff changeset
112 0xde9eaa1, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
Ritor1
parents:
diff changeset
113 DEFINE_GUID(CLSID_CDirect3DRMFrameInterpolator,
Ritor1
parents:
diff changeset
114 0xde9eaa2, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
Ritor1
parents:
diff changeset
115 DEFINE_GUID(CLSID_CDirect3DRMMeshInterpolator,
Ritor1
parents:
diff changeset
116 0xde9eaa3, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
Ritor1
parents:
diff changeset
117 DEFINE_GUID(CLSID_CDirect3DRMLightInterpolator,
Ritor1
parents:
diff changeset
118 0xde9eaa6, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
Ritor1
parents:
diff changeset
119 DEFINE_GUID(CLSID_CDirect3DRMMaterialInterpolator,
Ritor1
parents:
diff changeset
120 0xde9eaa7, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
Ritor1
parents:
diff changeset
121 DEFINE_GUID(CLSID_CDirect3DRMTextureInterpolator,
Ritor1
parents:
diff changeset
122 0xde9eaa8, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
Ritor1
parents:
diff changeset
123 DEFINE_GUID(CLSID_CDirect3DRMProgressiveMesh, 0x4516ec40, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
Ritor1
parents:
diff changeset
124 DEFINE_GUID(CLSID_CDirect3DRMClippedVisual, 0x5434e72d, 0x6d66, 0x11d1, 0xbb, 0xb, 0x0, 0x0, 0xf8, 0x75, 0x86, 0x5a);
Ritor1
parents:
diff changeset
125
Ritor1
parents:
diff changeset
126
Ritor1
parents:
diff changeset
127 /*
Ritor1
parents:
diff changeset
128 * Direct3DRM Object interfaces
Ritor1
parents:
diff changeset
129 */
Ritor1
parents:
diff changeset
130 DEFINE_GUID(IID_IDirect3DRMObject, 0xeb16cb00, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
131 DEFINE_GUID(IID_IDirect3DRMObject2, 0x4516ec7c, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
Ritor1
parents:
diff changeset
132 DEFINE_GUID(IID_IDirect3DRMDevice, 0xe9e19280, 0x6e05, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
133 DEFINE_GUID(IID_IDirect3DRMDevice2, 0x4516ec78, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
Ritor1
parents:
diff changeset
134 DEFINE_GUID(IID_IDirect3DRMDevice3, 0x549f498b, 0xbfeb, 0x11d1, 0x8e, 0xd8, 0x0, 0xa0, 0xc9, 0x67, 0xa4, 0x82);
Ritor1
parents:
diff changeset
135 DEFINE_GUID(IID_IDirect3DRMViewport, 0xeb16cb02, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
136 DEFINE_GUID(IID_IDirect3DRMViewport2, 0x4a1b1be6, 0xbfed, 0x11d1, 0x8e, 0xd8, 0x0, 0xa0, 0xc9, 0x67, 0xa4, 0x82);
Ritor1
parents:
diff changeset
137 DEFINE_GUID(IID_IDirect3DRMFrame, 0xeb16cb03, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
138 DEFINE_GUID(IID_IDirect3DRMFrame2, 0xc3dfbd60, 0x3988, 0x11d0, 0x9e, 0xc2, 0x0, 0x0, 0xc0, 0x29, 0x1a, 0xc3);
Ritor1
parents:
diff changeset
139 DEFINE_GUID(IID_IDirect3DRMFrame3, 0xff6b7f70, 0xa40e, 0x11d1, 0x91, 0xf9, 0x0, 0x0, 0xf8, 0x75, 0x8e, 0x66);
Ritor1
parents:
diff changeset
140 DEFINE_GUID(IID_IDirect3DRMVisual, 0xeb16cb04, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
141 DEFINE_GUID(IID_IDirect3DRMMesh, 0xa3a80d01, 0x6e12, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
142 DEFINE_GUID(IID_IDirect3DRMMeshBuilder, 0xa3a80d02, 0x6e12, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
143 DEFINE_GUID(IID_IDirect3DRMMeshBuilder2, 0x4516ec77, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
Ritor1
parents:
diff changeset
144 DEFINE_GUID(IID_IDirect3DRMMeshBuilder3, 0x4516ec82, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
Ritor1
parents:
diff changeset
145 DEFINE_GUID(IID_IDirect3DRMFace, 0xeb16cb07, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
146 DEFINE_GUID(IID_IDirect3DRMFace2, 0x4516ec81, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
Ritor1
parents:
diff changeset
147 DEFINE_GUID(IID_IDirect3DRMLight, 0xeb16cb08, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
148 DEFINE_GUID(IID_IDirect3DRMTexture, 0xeb16cb09, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
149 DEFINE_GUID(IID_IDirect3DRMTexture2, 0x120f30c0, 0x1629, 0x11d0, 0x94, 0x1c, 0x0, 0x80, 0xc8, 0xc, 0xfa, 0x7b);
Ritor1
parents:
diff changeset
150 DEFINE_GUID(IID_IDirect3DRMTexture3, 0xff6b7f73, 0xa40e, 0x11d1, 0x91, 0xf9, 0x0, 0x0, 0xf8, 0x75, 0x8e, 0x66);
Ritor1
parents:
diff changeset
151 DEFINE_GUID(IID_IDirect3DRMWrap, 0xeb16cb0a, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
152 DEFINE_GUID(IID_IDirect3DRMMaterial, 0xeb16cb0b, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
153 DEFINE_GUID(IID_IDirect3DRMMaterial2, 0xff6b7f75, 0xa40e, 0x11d1, 0x91, 0xf9, 0x0, 0x0, 0xf8, 0x75, 0x8e, 0x66);
Ritor1
parents:
diff changeset
154 DEFINE_GUID(IID_IDirect3DRMAnimation, 0xeb16cb0d, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
155 DEFINE_GUID(IID_IDirect3DRMAnimation2, 0xff6b7f77, 0xa40e, 0x11d1, 0x91, 0xf9, 0x0, 0x0, 0xf8, 0x75, 0x8e, 0x66);
Ritor1
parents:
diff changeset
156 DEFINE_GUID(IID_IDirect3DRMAnimationSet, 0xeb16cb0e, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
157 DEFINE_GUID(IID_IDirect3DRMAnimationSet2, 0xff6b7f79, 0xa40e, 0x11d1, 0x91, 0xf9, 0x0, 0x0, 0xf8, 0x75, 0x8e, 0x66);
Ritor1
parents:
diff changeset
158 DEFINE_GUID(IID_IDirect3DRMObjectArray, 0x242f6bc2, 0x3849, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
Ritor1
parents:
diff changeset
159 DEFINE_GUID(IID_IDirect3DRMDeviceArray, 0xeb16cb10, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
160 DEFINE_GUID(IID_IDirect3DRMViewportArray, 0xeb16cb11, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
161 DEFINE_GUID(IID_IDirect3DRMFrameArray, 0xeb16cb12, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
162 DEFINE_GUID(IID_IDirect3DRMVisualArray, 0xeb16cb13, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
163 DEFINE_GUID(IID_IDirect3DRMLightArray, 0xeb16cb14, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
164 DEFINE_GUID(IID_IDirect3DRMPickedArray, 0xeb16cb16, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
165 DEFINE_GUID(IID_IDirect3DRMFaceArray, 0xeb16cb17, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
166 DEFINE_GUID(IID_IDirect3DRMAnimationArray,
Ritor1
parents:
diff changeset
167 0xd5f1cae0, 0x4bd7, 0x11d1, 0xb9, 0x74, 0x0, 0x60, 0x8, 0x3e, 0x45, 0xf3);
Ritor1
parents:
diff changeset
168 DEFINE_GUID(IID_IDirect3DRMUserVisual, 0x59163de0, 0x6d43, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
169 DEFINE_GUID(IID_IDirect3DRMShadow, 0xaf359780, 0x6ba3, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
Ritor1
parents:
diff changeset
170 DEFINE_GUID(IID_IDirect3DRMShadow2, 0x86b44e25, 0x9c82, 0x11d1, 0xbb, 0xb, 0x0, 0xa0, 0xc9, 0x81, 0xa0, 0xa6);
Ritor1
parents:
diff changeset
171 DEFINE_GUID(IID_IDirect3DRMInterpolator, 0x242f6bc1, 0x3849, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
Ritor1
parents:
diff changeset
172 DEFINE_GUID(IID_IDirect3DRMProgressiveMesh, 0x4516ec79, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
Ritor1
parents:
diff changeset
173 DEFINE_GUID(IID_IDirect3DRMPicked2Array, 0x4516ec7b, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
Ritor1
parents:
diff changeset
174 DEFINE_GUID(IID_IDirect3DRMClippedVisual, 0x5434e733, 0x6d66, 0x11d1, 0xbb, 0xb, 0x0, 0x0, 0xf8, 0x75, 0x86, 0x5a);
Ritor1
parents:
diff changeset
175
1458
934074e7fcc1 ModalWindow
Nomad
parents: 0
diff changeset
176 typedef void ( *D3DRMOBJECTCALLBACK)(LPDIRECT3DRMOBJECT obj, LPVOID arg);
934074e7fcc1 ModalWindow
Nomad
parents: 0
diff changeset
177 typedef void ( *D3DRMFRAMEMOVECALLBACK)(LPDIRECT3DRMFRAME obj, LPVOID arg, D3DVALUE delta);
934074e7fcc1 ModalWindow
Nomad
parents: 0
diff changeset
178 typedef void ( *D3DRMFRAME3MOVECALLBACK)(LPDIRECT3DRMFRAME3 obj, LPVOID arg, D3DVALUE delta);
934074e7fcc1 ModalWindow
Nomad
parents: 0
diff changeset
179 typedef void ( *D3DRMUPDATECALLBACK)(LPDIRECT3DRMDEVICE obj, LPVOID arg, int, LPD3DRECT);
934074e7fcc1 ModalWindow
Nomad
parents: 0
diff changeset
180 typedef void ( *D3DRMDEVICE3UPDATECALLBACK)(LPDIRECT3DRMDEVICE3 obj, LPVOID arg, int, LPD3DRECT);
934074e7fcc1 ModalWindow
Nomad
parents: 0
diff changeset
181 typedef int ( *D3DRMUSERVISUALCALLBACK)
0
Ritor1
parents:
diff changeset
182 ( LPDIRECT3DRMUSERVISUAL obj, LPVOID arg, D3DRMUSERVISUALREASON reason,
Ritor1
parents:
diff changeset
183 LPDIRECT3DRMDEVICE dev, LPDIRECT3DRMVIEWPORT view
Ritor1
parents:
diff changeset
184 );
1458
934074e7fcc1 ModalWindow
Nomad
parents: 0
diff changeset
185 typedef HRESULT ( *D3DRMLOADTEXTURECALLBACK)
0
Ritor1
parents:
diff changeset
186 (char *tex_name, void *arg, LPDIRECT3DRMTEXTURE *);
1458
934074e7fcc1 ModalWindow
Nomad
parents: 0
diff changeset
187 typedef HRESULT ( *D3DRMLOADTEXTURE3CALLBACK)
0
Ritor1
parents:
diff changeset
188 (char *tex_name, void *arg, LPDIRECT3DRMTEXTURE3 *);
1458
934074e7fcc1 ModalWindow
Nomad
parents: 0
diff changeset
189 typedef void ( *D3DRMLOADCALLBACK)
0
Ritor1
parents:
diff changeset
190 (LPDIRECT3DRMOBJECT object, REFIID objectguid, LPVOID arg);
Ritor1
parents:
diff changeset
191
1458
934074e7fcc1 ModalWindow
Nomad
parents: 0
diff changeset
192 typedef HRESULT ( *D3DRMDOWNSAMPLECALLBACK)
0
Ritor1
parents:
diff changeset
193 (LPDIRECT3DRMTEXTURE3 lpDirect3DRMTexture, LPVOID pArg,
Ritor1
parents:
diff changeset
194 LPDIRECTDRAWSURFACE pDDSSrc, LPDIRECTDRAWSURFACE pDDSDst);
1458
934074e7fcc1 ModalWindow
Nomad
parents: 0
diff changeset
195 typedef HRESULT ( *D3DRMVALIDATIONCALLBACK)
0
Ritor1
parents:
diff changeset
196 (LPDIRECT3DRMTEXTURE3 lpDirect3DRMTexture, LPVOID pArg,
Ritor1
parents:
diff changeset
197 DWORD dwFlags, DWORD dwcRects, LPRECT pRects);
Ritor1
parents:
diff changeset
198
Ritor1
parents:
diff changeset
199
Ritor1
parents:
diff changeset
200 typedef struct _D3DRMPICKDESC
Ritor1
parents:
diff changeset
201 {
Ritor1
parents:
diff changeset
202 ULONG ulFaceIdx;
Ritor1
parents:
diff changeset
203 LONG lGroupIdx;
Ritor1
parents:
diff changeset
204 D3DVECTOR vPosition;
Ritor1
parents:
diff changeset
205
Ritor1
parents:
diff changeset
206 } D3DRMPICKDESC, *LPD3DRMPICKDESC;
Ritor1
parents:
diff changeset
207
Ritor1
parents:
diff changeset
208 typedef struct _D3DRMPICKDESC2
Ritor1
parents:
diff changeset
209 {
Ritor1
parents:
diff changeset
210 ULONG ulFaceIdx;
Ritor1
parents:
diff changeset
211 LONG lGroupIdx;
Ritor1
parents:
diff changeset
212 D3DVECTOR dvPosition;
Ritor1
parents:
diff changeset
213 D3DVALUE tu;
Ritor1
parents:
diff changeset
214 D3DVALUE tv;
Ritor1
parents:
diff changeset
215 D3DVECTOR dvNormal;
Ritor1
parents:
diff changeset
216 D3DCOLOR dcColor;
Ritor1
parents:
diff changeset
217
Ritor1
parents:
diff changeset
218 } D3DRMPICKDESC2, *LPD3DRMPICKDESC2;
Ritor1
parents:
diff changeset
219
Ritor1
parents:
diff changeset
220 #undef INTERFACE
Ritor1
parents:
diff changeset
221 #define INTERFACE IDirect3DRMObject
Ritor1
parents:
diff changeset
222
Ritor1
parents:
diff changeset
223 /*
Ritor1
parents:
diff changeset
224 * Base class
Ritor1
parents:
diff changeset
225 */
Ritor1
parents:
diff changeset
226 DECLARE_INTERFACE_(IDirect3DRMObject, IUnknown)
Ritor1
parents:
diff changeset
227 {
Ritor1
parents:
diff changeset
228 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
229 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
230 };
Ritor1
parents:
diff changeset
231
Ritor1
parents:
diff changeset
232 #undef INTERFACE
Ritor1
parents:
diff changeset
233 #define INTERFACE IDirect3DRMObject2
Ritor1
parents:
diff changeset
234
Ritor1
parents:
diff changeset
235 DECLARE_INTERFACE_(IDirect3DRMObject2, IUnknown)
Ritor1
parents:
diff changeset
236 {
Ritor1
parents:
diff changeset
237 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
238
Ritor1
parents:
diff changeset
239 /*
Ritor1
parents:
diff changeset
240 * IDirect3DRMObject2 methods
Ritor1
parents:
diff changeset
241 */
Ritor1
parents:
diff changeset
242 STDMETHOD(AddDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK lpFunc, LPVOID pvArg) PURE;
Ritor1
parents:
diff changeset
243 STDMETHOD(Clone)(THIS_ LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE; \
Ritor1
parents:
diff changeset
244 STDMETHOD(DeleteDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK lpFunc, LPVOID pvArg) PURE; \
Ritor1
parents:
diff changeset
245 STDMETHOD(GetClientData)(THIS_ DWORD dwID, LPVOID* lplpvData) PURE;
Ritor1
parents:
diff changeset
246 STDMETHOD(GetDirect3DRM)(THIS_ LPDIRECT3DRM* lplpDirect3DRM) PURE;
Ritor1
parents:
diff changeset
247 STDMETHOD(GetName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE;
Ritor1
parents:
diff changeset
248 STDMETHOD(SetClientData)(THIS_ DWORD dwID, LPVOID lpvData, DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
249 STDMETHOD(SetName)(THIS_ LPCSTR lpName) PURE;
Ritor1
parents:
diff changeset
250 STDMETHOD(GetAge)(THIS_ DWORD dwFlags, LPDWORD pdwAge) PURE;
Ritor1
parents:
diff changeset
251 };
Ritor1
parents:
diff changeset
252
Ritor1
parents:
diff changeset
253 #undef INTERFACE
Ritor1
parents:
diff changeset
254 #define INTERFACE IDirect3DRMVisual
Ritor1
parents:
diff changeset
255
Ritor1
parents:
diff changeset
256 DECLARE_INTERFACE_(IDirect3DRMVisual, IDirect3DRMObject)
Ritor1
parents:
diff changeset
257 {
Ritor1
parents:
diff changeset
258 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
259 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
260 };
Ritor1
parents:
diff changeset
261
Ritor1
parents:
diff changeset
262 #undef INTERFACE
Ritor1
parents:
diff changeset
263 #define INTERFACE IDirect3DRMDevice
Ritor1
parents:
diff changeset
264
Ritor1
parents:
diff changeset
265 DECLARE_INTERFACE_(IDirect3DRMDevice, IDirect3DRMObject)
Ritor1
parents:
diff changeset
266 {
Ritor1
parents:
diff changeset
267 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
268 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
269
Ritor1
parents:
diff changeset
270 /*
Ritor1
parents:
diff changeset
271 * IDirect3DRMDevice methods
Ritor1
parents:
diff changeset
272 */
Ritor1
parents:
diff changeset
273 STDMETHOD(Init)(THIS_ ULONG width, ULONG height) PURE;
Ritor1
parents:
diff changeset
274 STDMETHOD(InitFromD3D)(THIS_ LPDIRECT3D lpD3D, LPDIRECT3DDEVICE lpD3DDev) PURE;
Ritor1
parents:
diff changeset
275 STDMETHOD(InitFromClipper)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID, int width, int height) PURE;
Ritor1
parents:
diff changeset
276
Ritor1
parents:
diff changeset
277 STDMETHOD(Update)(THIS) PURE;
Ritor1
parents:
diff changeset
278 STDMETHOD(AddUpdateCallback)(THIS_ D3DRMUPDATECALLBACK, LPVOID arg) PURE;
Ritor1
parents:
diff changeset
279 STDMETHOD(DeleteUpdateCallback)(THIS_ D3DRMUPDATECALLBACK, LPVOID arg) PURE;
Ritor1
parents:
diff changeset
280 STDMETHOD(SetBufferCount)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
281 STDMETHOD_(DWORD, GetBufferCount)(THIS) PURE;
Ritor1
parents:
diff changeset
282
Ritor1
parents:
diff changeset
283 STDMETHOD(SetDither)(THIS_ BOOL) PURE;
Ritor1
parents:
diff changeset
284 STDMETHOD(SetShades)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
285 STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE;
Ritor1
parents:
diff changeset
286 STDMETHOD(SetTextureQuality)(THIS_ D3DRMTEXTUREQUALITY) PURE;
Ritor1
parents:
diff changeset
287
Ritor1
parents:
diff changeset
288 STDMETHOD(GetViewports)(THIS_ LPDIRECT3DRMVIEWPORTARRAY *return_views) PURE;
Ritor1
parents:
diff changeset
289
Ritor1
parents:
diff changeset
290 STDMETHOD_(BOOL, GetDither)(THIS) PURE;
Ritor1
parents:
diff changeset
291 STDMETHOD_(DWORD, GetShades)(THIS) PURE;
Ritor1
parents:
diff changeset
292 STDMETHOD_(DWORD, GetHeight)(THIS) PURE;
Ritor1
parents:
diff changeset
293 STDMETHOD_(DWORD, GetWidth)(THIS) PURE;
Ritor1
parents:
diff changeset
294 STDMETHOD_(DWORD, GetTrianglesDrawn)(THIS) PURE;
Ritor1
parents:
diff changeset
295 STDMETHOD_(DWORD, GetWireframeOptions)(THIS) PURE;
Ritor1
parents:
diff changeset
296 STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE;
Ritor1
parents:
diff changeset
297 STDMETHOD_(D3DCOLORMODEL, GetColorModel)(THIS) PURE;
Ritor1
parents:
diff changeset
298 STDMETHOD_(D3DRMTEXTUREQUALITY, GetTextureQuality)(THIS) PURE;
Ritor1
parents:
diff changeset
299 STDMETHOD(GetDirect3DDevice)(THIS_ LPDIRECT3DDEVICE *) PURE;
Ritor1
parents:
diff changeset
300 };
Ritor1
parents:
diff changeset
301
Ritor1
parents:
diff changeset
302 #undef INTERFACE
Ritor1
parents:
diff changeset
303 #define INTERFACE IDirect3DRMDevice2
Ritor1
parents:
diff changeset
304
Ritor1
parents:
diff changeset
305 DECLARE_INTERFACE_(IDirect3DRMDevice2, IDirect3DRMDevice)
Ritor1
parents:
diff changeset
306 {
Ritor1
parents:
diff changeset
307 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
308 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
309
Ritor1
parents:
diff changeset
310 /*
Ritor1
parents:
diff changeset
311 * IDirect3DRMDevice methods
Ritor1
parents:
diff changeset
312 */
Ritor1
parents:
diff changeset
313 STDMETHOD(Init)(THIS_ ULONG width, ULONG height) PURE;
Ritor1
parents:
diff changeset
314 STDMETHOD(InitFromD3D)(THIS_ LPDIRECT3D lpD3D, LPDIRECT3DDEVICE lpD3DDev) PURE;
Ritor1
parents:
diff changeset
315 STDMETHOD(InitFromClipper)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID, int width, int height) PURE;
Ritor1
parents:
diff changeset
316
Ritor1
parents:
diff changeset
317 STDMETHOD(Update)(THIS) PURE;
Ritor1
parents:
diff changeset
318 STDMETHOD(AddUpdateCallback)(THIS_ D3DRMUPDATECALLBACK, LPVOID arg) PURE;
Ritor1
parents:
diff changeset
319 STDMETHOD(DeleteUpdateCallback)(THIS_ D3DRMUPDATECALLBACK, LPVOID arg) PURE;
Ritor1
parents:
diff changeset
320 STDMETHOD(SetBufferCount)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
321 STDMETHOD_(DWORD, GetBufferCount)(THIS) PURE;
Ritor1
parents:
diff changeset
322
Ritor1
parents:
diff changeset
323 STDMETHOD(SetDither)(THIS_ BOOL) PURE;
Ritor1
parents:
diff changeset
324 STDMETHOD(SetShades)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
325 STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE;
Ritor1
parents:
diff changeset
326 STDMETHOD(SetTextureQuality)(THIS_ D3DRMTEXTUREQUALITY) PURE;
Ritor1
parents:
diff changeset
327
Ritor1
parents:
diff changeset
328 STDMETHOD(GetViewports)(THIS_ LPDIRECT3DRMVIEWPORTARRAY *return_views) PURE;
Ritor1
parents:
diff changeset
329
Ritor1
parents:
diff changeset
330 STDMETHOD_(BOOL, GetDither)(THIS) PURE;
Ritor1
parents:
diff changeset
331 STDMETHOD_(DWORD, GetShades)(THIS) PURE;
Ritor1
parents:
diff changeset
332 STDMETHOD_(DWORD, GetHeight)(THIS) PURE;
Ritor1
parents:
diff changeset
333 STDMETHOD_(DWORD, GetWidth)(THIS) PURE;
Ritor1
parents:
diff changeset
334 STDMETHOD_(DWORD, GetTrianglesDrawn)(THIS) PURE;
Ritor1
parents:
diff changeset
335 STDMETHOD_(DWORD, GetWireframeOptions)(THIS) PURE;
Ritor1
parents:
diff changeset
336 STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE;
Ritor1
parents:
diff changeset
337 STDMETHOD_(D3DCOLORMODEL, GetColorModel)(THIS) PURE;
Ritor1
parents:
diff changeset
338 STDMETHOD_(D3DRMTEXTUREQUALITY, GetTextureQuality)(THIS) PURE;
Ritor1
parents:
diff changeset
339 STDMETHOD(GetDirect3DDevice)(THIS_ LPDIRECT3DDEVICE *) PURE;
Ritor1
parents:
diff changeset
340
Ritor1
parents:
diff changeset
341 /*
Ritor1
parents:
diff changeset
342 * IDirect3DRMDevice2 methods
Ritor1
parents:
diff changeset
343 */
Ritor1
parents:
diff changeset
344 STDMETHOD(InitFromD3D2)(THIS_ LPDIRECT3D2 lpD3D, LPDIRECT3DDEVICE2 lpD3DDev) PURE;
Ritor1
parents:
diff changeset
345 STDMETHOD(InitFromSurface)(THIS_ LPGUID lpGUID, LPDIRECTDRAW lpDD, LPDIRECTDRAWSURFACE lpDDSBack) PURE;
Ritor1
parents:
diff changeset
346 STDMETHOD(SetRenderMode)(THIS_ DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
347 STDMETHOD_(DWORD, GetRenderMode)(THIS) PURE;
Ritor1
parents:
diff changeset
348 STDMETHOD(GetDirect3DDevice2)(THIS_ LPDIRECT3DDEVICE2 *) PURE;
Ritor1
parents:
diff changeset
349 };
Ritor1
parents:
diff changeset
350
Ritor1
parents:
diff changeset
351 #undef INTERFACE
Ritor1
parents:
diff changeset
352 #define INTERFACE IDirect3DRMDevice3
Ritor1
parents:
diff changeset
353
Ritor1
parents:
diff changeset
354 DECLARE_INTERFACE_(IDirect3DRMDevice3, IDirect3DRMObject)
Ritor1
parents:
diff changeset
355 {
Ritor1
parents:
diff changeset
356 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
357 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
358
Ritor1
parents:
diff changeset
359 /*
Ritor1
parents:
diff changeset
360 * IDirect3DRMDevice methods
Ritor1
parents:
diff changeset
361 */
Ritor1
parents:
diff changeset
362 STDMETHOD(Init)(THIS_ ULONG width, ULONG height) PURE;
Ritor1
parents:
diff changeset
363 STDMETHOD(InitFromD3D)(THIS_ LPDIRECT3D lpD3D, LPDIRECT3DDEVICE lpD3DDev) PURE;
Ritor1
parents:
diff changeset
364 STDMETHOD(InitFromClipper)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID, int width, int height) PURE;
Ritor1
parents:
diff changeset
365
Ritor1
parents:
diff changeset
366 STDMETHOD(Update)(THIS) PURE;
Ritor1
parents:
diff changeset
367 STDMETHOD(AddUpdateCallback)(THIS_ D3DRMDEVICE3UPDATECALLBACK, LPVOID arg) PURE;
Ritor1
parents:
diff changeset
368 STDMETHOD(DeleteUpdateCallback)(THIS_ D3DRMDEVICE3UPDATECALLBACK, LPVOID arg) PURE;
Ritor1
parents:
diff changeset
369 STDMETHOD(SetBufferCount)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
370 STDMETHOD_(DWORD, GetBufferCount)(THIS) PURE;
Ritor1
parents:
diff changeset
371
Ritor1
parents:
diff changeset
372 STDMETHOD(SetDither)(THIS_ BOOL) PURE;
Ritor1
parents:
diff changeset
373 STDMETHOD(SetShades)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
374 STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE;
Ritor1
parents:
diff changeset
375 STDMETHOD(SetTextureQuality)(THIS_ D3DRMTEXTUREQUALITY) PURE;
Ritor1
parents:
diff changeset
376
Ritor1
parents:
diff changeset
377 STDMETHOD(GetViewports)(THIS_ LPDIRECT3DRMVIEWPORTARRAY *return_views) PURE;
Ritor1
parents:
diff changeset
378
Ritor1
parents:
diff changeset
379 STDMETHOD_(BOOL, GetDither)(THIS) PURE;
Ritor1
parents:
diff changeset
380 STDMETHOD_(DWORD, GetShades)(THIS) PURE;
Ritor1
parents:
diff changeset
381 STDMETHOD_(DWORD, GetHeight)(THIS) PURE;
Ritor1
parents:
diff changeset
382 STDMETHOD_(DWORD, GetWidth)(THIS) PURE;
Ritor1
parents:
diff changeset
383 STDMETHOD_(DWORD, GetTrianglesDrawn)(THIS) PURE;
Ritor1
parents:
diff changeset
384 STDMETHOD_(DWORD, GetWireframeOptions)(THIS) PURE;
Ritor1
parents:
diff changeset
385 STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE;
Ritor1
parents:
diff changeset
386 STDMETHOD_(D3DCOLORMODEL, GetColorModel)(THIS) PURE;
Ritor1
parents:
diff changeset
387 STDMETHOD_(D3DRMTEXTUREQUALITY, GetTextureQuality)(THIS) PURE;
Ritor1
parents:
diff changeset
388 STDMETHOD(GetDirect3DDevice)(THIS_ LPDIRECT3DDEVICE *) PURE;
Ritor1
parents:
diff changeset
389
Ritor1
parents:
diff changeset
390 /*
Ritor1
parents:
diff changeset
391 * IDirect3DRMDevice2 methods
Ritor1
parents:
diff changeset
392 */
Ritor1
parents:
diff changeset
393 STDMETHOD(InitFromD3D2)(THIS_ LPDIRECT3D2 lpD3D, LPDIRECT3DDEVICE2 lpD3DDev) PURE;
Ritor1
parents:
diff changeset
394 STDMETHOD(InitFromSurface)(THIS_ LPGUID lpGUID, LPDIRECTDRAW lpDD, LPDIRECTDRAWSURFACE lpDDSBack, DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
395 STDMETHOD(SetRenderMode)(THIS_ DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
396 STDMETHOD_(DWORD, GetRenderMode)(THIS) PURE;
Ritor1
parents:
diff changeset
397 STDMETHOD(GetDirect3DDevice2)(THIS_ LPDIRECT3DDEVICE2 *) PURE;
Ritor1
parents:
diff changeset
398
Ritor1
parents:
diff changeset
399 /*
Ritor1
parents:
diff changeset
400 * IDirect3DRMDevice3 methods
Ritor1
parents:
diff changeset
401 */
Ritor1
parents:
diff changeset
402 STDMETHOD(FindPreferredTextureFormat)(THIS_ DWORD dwBitDepths, DWORD dwFlags, LPDDPIXELFORMAT lpDDPF) PURE;
Ritor1
parents:
diff changeset
403 STDMETHOD(RenderStateChange)(THIS_ D3DRENDERSTATETYPE drsType, DWORD dwVal, DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
404 STDMETHOD(LightStateChange)(THIS_ D3DLIGHTSTATETYPE drsType, DWORD dwVal, DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
405 STDMETHOD(GetStateChangeOptions)(THIS_ DWORD dwStateClass, DWORD dwStateNum, LPDWORD pdwFlags) PURE;
Ritor1
parents:
diff changeset
406 STDMETHOD(SetStateChangeOptions)(THIS_ DWORD dwStateClass, DWORD dwStateNum, DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
407 };
Ritor1
parents:
diff changeset
408
Ritor1
parents:
diff changeset
409
Ritor1
parents:
diff changeset
410 #undef INTERFACE
Ritor1
parents:
diff changeset
411 #define INTERFACE IDirect3DRMViewport
Ritor1
parents:
diff changeset
412
Ritor1
parents:
diff changeset
413 DECLARE_INTERFACE_(IDirect3DRMViewport, IDirect3DRMObject)
Ritor1
parents:
diff changeset
414 {
Ritor1
parents:
diff changeset
415 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
416 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
417
Ritor1
parents:
diff changeset
418 /*
Ritor1
parents:
diff changeset
419 * IDirect3DRMViewport methods
Ritor1
parents:
diff changeset
420 */
Ritor1
parents:
diff changeset
421 STDMETHOD(Init)
Ritor1
parents:
diff changeset
422 ( THIS_ LPDIRECT3DRMDEVICE dev, LPDIRECT3DRMFRAME Camera,
Ritor1
parents:
diff changeset
423 DWORD xpos, DWORD ypos, DWORD width, DWORD height
Ritor1
parents:
diff changeset
424 ) PURE;
Ritor1
parents:
diff changeset
425 STDMETHOD(Clear)(THIS) PURE;
Ritor1
parents:
diff changeset
426 STDMETHOD(Render)(THIS_ LPDIRECT3DRMFRAME) PURE;
Ritor1
parents:
diff changeset
427
Ritor1
parents:
diff changeset
428 STDMETHOD(SetFront)(THIS_ D3DVALUE) PURE;
Ritor1
parents:
diff changeset
429 STDMETHOD(SetBack)(THIS_ D3DVALUE) PURE;
Ritor1
parents:
diff changeset
430 STDMETHOD(SetField)(THIS_ D3DVALUE) PURE;
Ritor1
parents:
diff changeset
431 STDMETHOD(SetUniformScaling)(THIS_ BOOL) PURE;
Ritor1
parents:
diff changeset
432 STDMETHOD(SetCamera)(THIS_ LPDIRECT3DRMFRAME) PURE;
Ritor1
parents:
diff changeset
433 STDMETHOD(SetProjection)(THIS_ D3DRMPROJECTIONTYPE) PURE;
Ritor1
parents:
diff changeset
434 STDMETHOD(Transform)(THIS_ D3DRMVECTOR4D *d, D3DVECTOR *s) PURE;
Ritor1
parents:
diff changeset
435 STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DRMVECTOR4D *s) PURE;
Ritor1
parents:
diff changeset
436 STDMETHOD(Configure)(THIS_ LONG x, LONG y, DWORD width, DWORD height) PURE;
Ritor1
parents:
diff changeset
437 STDMETHOD(ForceUpdate)(THIS_ DWORD x1, DWORD y1, DWORD x2, DWORD y2) PURE;
Ritor1
parents:
diff changeset
438 STDMETHOD(SetPlane)(THIS_ D3DVALUE left, D3DVALUE right, D3DVALUE bottom, D3DVALUE top) PURE;
Ritor1
parents:
diff changeset
439
Ritor1
parents:
diff changeset
440 STDMETHOD(GetCamera)(THIS_ LPDIRECT3DRMFRAME *) PURE;
Ritor1
parents:
diff changeset
441 STDMETHOD(GetDevice)(THIS_ LPDIRECT3DRMDEVICE *) PURE;
Ritor1
parents:
diff changeset
442 STDMETHOD(GetPlane)(THIS_ D3DVALUE *left, D3DVALUE *right, D3DVALUE *bottom, D3DVALUE *top) PURE;
Ritor1
parents:
diff changeset
443 STDMETHOD(Pick)(THIS_ LONG x, LONG y, LPDIRECT3DRMPICKEDARRAY *return_visuals) PURE;
Ritor1
parents:
diff changeset
444
Ritor1
parents:
diff changeset
445 STDMETHOD_(BOOL, GetUniformScaling)(THIS) PURE;
Ritor1
parents:
diff changeset
446 STDMETHOD_(LONG, GetX)(THIS) PURE;
Ritor1
parents:
diff changeset
447 STDMETHOD_(LONG, GetY)(THIS) PURE;
Ritor1
parents:
diff changeset
448 STDMETHOD_(DWORD, GetWidth)(THIS) PURE;
Ritor1
parents:
diff changeset
449 STDMETHOD_(DWORD, GetHeight)(THIS) PURE;
Ritor1
parents:
diff changeset
450 STDMETHOD_(D3DVALUE, GetField)(THIS) PURE;
Ritor1
parents:
diff changeset
451 STDMETHOD_(D3DVALUE, GetBack)(THIS) PURE;
Ritor1
parents:
diff changeset
452 STDMETHOD_(D3DVALUE, GetFront)(THIS) PURE;
Ritor1
parents:
diff changeset
453 STDMETHOD_(D3DRMPROJECTIONTYPE, GetProjection)(THIS) PURE;
Ritor1
parents:
diff changeset
454 STDMETHOD(GetDirect3DViewport)(THIS_ LPDIRECT3DVIEWPORT *) PURE;
Ritor1
parents:
diff changeset
455 };
Ritor1
parents:
diff changeset
456
Ritor1
parents:
diff changeset
457 #undef INTERFACE
Ritor1
parents:
diff changeset
458 #define INTERFACE IDirect3DRMViewport2
Ritor1
parents:
diff changeset
459 DECLARE_INTERFACE_(IDirect3DRMViewport2, IDirect3DRMObject)
Ritor1
parents:
diff changeset
460 {
Ritor1
parents:
diff changeset
461 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
462 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
463
Ritor1
parents:
diff changeset
464 /*
Ritor1
parents:
diff changeset
465 * IDirect3DRMViewport2 methods
Ritor1
parents:
diff changeset
466 */
Ritor1
parents:
diff changeset
467 STDMETHOD(Init)
Ritor1
parents:
diff changeset
468 ( THIS_ LPDIRECT3DRMDEVICE3 dev, LPDIRECT3DRMFRAME3 Camera,
Ritor1
parents:
diff changeset
469 DWORD xpos, DWORD ypos, DWORD width, DWORD height
Ritor1
parents:
diff changeset
470 ) PURE;
Ritor1
parents:
diff changeset
471 STDMETHOD(Clear)(THIS_ DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
472 STDMETHOD(Render)(THIS_ LPDIRECT3DRMFRAME3) PURE;
Ritor1
parents:
diff changeset
473
Ritor1
parents:
diff changeset
474 STDMETHOD(SetFront)(THIS_ D3DVALUE) PURE;
Ritor1
parents:
diff changeset
475 STDMETHOD(SetBack)(THIS_ D3DVALUE) PURE;
Ritor1
parents:
diff changeset
476 STDMETHOD(SetField)(THIS_ D3DVALUE) PURE;
Ritor1
parents:
diff changeset
477 STDMETHOD(SetUniformScaling)(THIS_ BOOL) PURE;
Ritor1
parents:
diff changeset
478 STDMETHOD(SetCamera)(THIS_ LPDIRECT3DRMFRAME3) PURE;
Ritor1
parents:
diff changeset
479 STDMETHOD(SetProjection)(THIS_ D3DRMPROJECTIONTYPE) PURE;
Ritor1
parents:
diff changeset
480 STDMETHOD(Transform)(THIS_ D3DRMVECTOR4D *d, D3DVECTOR *s) PURE;
Ritor1
parents:
diff changeset
481 STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DRMVECTOR4D *s) PURE;
Ritor1
parents:
diff changeset
482 STDMETHOD(Configure)(THIS_ LONG x, LONG y, DWORD width, DWORD height) PURE;
Ritor1
parents:
diff changeset
483 STDMETHOD(ForceUpdate)(THIS_ DWORD x1, DWORD y1, DWORD x2, DWORD y2) PURE;
Ritor1
parents:
diff changeset
484 STDMETHOD(SetPlane)(THIS_ D3DVALUE left, D3DVALUE right, D3DVALUE bottom, D3DVALUE top) PURE;
Ritor1
parents:
diff changeset
485
Ritor1
parents:
diff changeset
486 STDMETHOD(GetCamera)(THIS_ LPDIRECT3DRMFRAME3 *) PURE;
Ritor1
parents:
diff changeset
487 STDMETHOD(GetDevice)(THIS_ LPDIRECT3DRMDEVICE3 *) PURE;
Ritor1
parents:
diff changeset
488 STDMETHOD(GetPlane)(THIS_ D3DVALUE *left, D3DVALUE *right, D3DVALUE *bottom, D3DVALUE *top) PURE;
Ritor1
parents:
diff changeset
489 STDMETHOD(Pick)(THIS_ LONG x, LONG y, LPDIRECT3DRMPICKEDARRAY *return_visuals) PURE;
Ritor1
parents:
diff changeset
490
Ritor1
parents:
diff changeset
491 STDMETHOD_(BOOL, GetUniformScaling)(THIS) PURE;
Ritor1
parents:
diff changeset
492 STDMETHOD_(LONG, GetX)(THIS) PURE;
Ritor1
parents:
diff changeset
493 STDMETHOD_(LONG, GetY)(THIS) PURE;
Ritor1
parents:
diff changeset
494 STDMETHOD_(DWORD, GetWidth)(THIS) PURE;
Ritor1
parents:
diff changeset
495 STDMETHOD_(DWORD, GetHeight)(THIS) PURE;
Ritor1
parents:
diff changeset
496 STDMETHOD_(D3DVALUE, GetField)(THIS) PURE;
Ritor1
parents:
diff changeset
497 STDMETHOD_(D3DVALUE, GetBack)(THIS) PURE;
Ritor1
parents:
diff changeset
498 STDMETHOD_(D3DVALUE, GetFront)(THIS) PURE;
Ritor1
parents:
diff changeset
499 STDMETHOD_(D3DRMPROJECTIONTYPE, GetProjection)(THIS) PURE;
Ritor1
parents:
diff changeset
500 STDMETHOD(GetDirect3DViewport)(THIS_ LPDIRECT3DVIEWPORT *) PURE;
Ritor1
parents:
diff changeset
501 STDMETHOD(TransformVectors)(THIS_ DWORD dwNumVectors,
Ritor1
parents:
diff changeset
502 LPD3DRMVECTOR4D lpDstVectors,
Ritor1
parents:
diff changeset
503 LPD3DVECTOR lpSrcVectors) PURE;
Ritor1
parents:
diff changeset
504 STDMETHOD(InverseTransformVectors)(THIS_ DWORD dwNumVectors,
Ritor1
parents:
diff changeset
505 LPD3DVECTOR lpDstVectors,
Ritor1
parents:
diff changeset
506 LPD3DRMVECTOR4D lpSrcVectors) PURE;
Ritor1
parents:
diff changeset
507 };
Ritor1
parents:
diff changeset
508
Ritor1
parents:
diff changeset
509 #undef INTERFACE
Ritor1
parents:
diff changeset
510 #define INTERFACE IDirect3DRMFrame
Ritor1
parents:
diff changeset
511
Ritor1
parents:
diff changeset
512 DECLARE_INTERFACE_(IDirect3DRMFrame, IDirect3DRMVisual)
Ritor1
parents:
diff changeset
513 {
Ritor1
parents:
diff changeset
514 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
515 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
516
Ritor1
parents:
diff changeset
517 /*
Ritor1
parents:
diff changeset
518 * IDirect3DRMFrame methods
Ritor1
parents:
diff changeset
519 */
Ritor1
parents:
diff changeset
520 STDMETHOD(AddChild)(THIS_ LPDIRECT3DRMFRAME child) PURE;
Ritor1
parents:
diff changeset
521 STDMETHOD(AddLight)(THIS_ LPDIRECT3DRMLIGHT) PURE;
Ritor1
parents:
diff changeset
522 STDMETHOD(AddMoveCallback)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg) PURE;
Ritor1
parents:
diff changeset
523 STDMETHOD(AddTransform)(THIS_ D3DRMCOMBINETYPE, D3DRMMATRIX4D) PURE;
Ritor1
parents:
diff changeset
524 STDMETHOD(AddTranslation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
525 STDMETHOD(AddScale)(THIS_ D3DRMCOMBINETYPE, D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
Ritor1
parents:
diff changeset
526 STDMETHOD(AddRotation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE;
Ritor1
parents:
diff changeset
527 STDMETHOD(AddVisual)(THIS_ LPDIRECT3DRMVISUAL) PURE;
Ritor1
parents:
diff changeset
528 STDMETHOD(GetChildren)(THIS_ LPDIRECT3DRMFRAMEARRAY *children) PURE;
Ritor1
parents:
diff changeset
529 STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE;
Ritor1
parents:
diff changeset
530 STDMETHOD(GetLights)(THIS_ LPDIRECT3DRMLIGHTARRAY *lights) PURE;
Ritor1
parents:
diff changeset
531 STDMETHOD_(D3DRMMATERIALMODE, GetMaterialMode)(THIS) PURE;
Ritor1
parents:
diff changeset
532 STDMETHOD(GetParent)(THIS_ LPDIRECT3DRMFRAME *) PURE;
Ritor1
parents:
diff changeset
533 STDMETHOD(GetPosition)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR return_position) PURE;
Ritor1
parents:
diff changeset
534 STDMETHOD(GetRotation)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR axis, LPD3DVALUE return_theta) PURE;
Ritor1
parents:
diff changeset
535 STDMETHOD(GetScene)(THIS_ LPDIRECT3DRMFRAME *) PURE;
Ritor1
parents:
diff changeset
536 STDMETHOD_(D3DRMSORTMODE, GetSortMode)(THIS) PURE;
Ritor1
parents:
diff changeset
537 STDMETHOD(GetTexture)(THIS_ LPDIRECT3DRMTEXTURE *) PURE;
Ritor1
parents:
diff changeset
538 STDMETHOD(GetTransform)(THIS_ D3DRMMATRIX4D return_matrix) PURE;
Ritor1
parents:
diff changeset
539 STDMETHOD(GetVelocity)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR return_velocity, BOOL with_rotation) PURE;
Ritor1
parents:
diff changeset
540 STDMETHOD(GetOrientation)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR dir, LPD3DVECTOR up) PURE;
Ritor1
parents:
diff changeset
541 STDMETHOD(GetVisuals)(THIS_ LPDIRECT3DRMVISUALARRAY *visuals) PURE;
Ritor1
parents:
diff changeset
542 STDMETHOD(GetTextureTopology)(THIS_ BOOL *wrap_u, BOOL *wrap_v) PURE;
Ritor1
parents:
diff changeset
543 STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE;
Ritor1
parents:
diff changeset
544 STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg)PURE;
Ritor1
parents:
diff changeset
545 STDMETHOD(LookAt)(THIS_ LPDIRECT3DRMFRAME target, LPDIRECT3DRMFRAME reference, D3DRMFRAMECONSTRAINT) PURE;
Ritor1
parents:
diff changeset
546 STDMETHOD(Move)(THIS_ D3DVALUE delta) PURE;
Ritor1
parents:
diff changeset
547 STDMETHOD(DeleteChild)(THIS_ LPDIRECT3DRMFRAME) PURE;
Ritor1
parents:
diff changeset
548 STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DRMLIGHT) PURE;
Ritor1
parents:
diff changeset
549 STDMETHOD(DeleteMoveCallback)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg) PURE;
Ritor1
parents:
diff changeset
550 STDMETHOD(DeleteVisual)(THIS_ LPDIRECT3DRMVISUAL) PURE;
Ritor1
parents:
diff changeset
551 STDMETHOD_(D3DCOLOR, GetSceneBackground)(THIS) PURE;
Ritor1
parents:
diff changeset
552 STDMETHOD(GetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE *) PURE;
Ritor1
parents:
diff changeset
553 STDMETHOD_(D3DCOLOR, GetSceneFogColor)(THIS) PURE;
Ritor1
parents:
diff changeset
554 STDMETHOD_(BOOL, GetSceneFogEnable)(THIS) PURE;
Ritor1
parents:
diff changeset
555 STDMETHOD_(D3DRMFOGMODE, GetSceneFogMode)(THIS) PURE;
Ritor1
parents:
diff changeset
556 STDMETHOD(GetSceneFogParams)(THIS_ D3DVALUE *return_start, D3DVALUE *return_end, D3DVALUE *return_density) PURE;
Ritor1
parents:
diff changeset
557 STDMETHOD(SetSceneBackground)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
558 STDMETHOD(SetSceneBackgroundRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
Ritor1
parents:
diff changeset
559 STDMETHOD(SetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE;
Ritor1
parents:
diff changeset
560 STDMETHOD(SetSceneBackgroundImage)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
Ritor1
parents:
diff changeset
561 STDMETHOD(SetSceneFogEnable)(THIS_ BOOL) PURE;
Ritor1
parents:
diff changeset
562 STDMETHOD(SetSceneFogColor)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
563 STDMETHOD(SetSceneFogMode)(THIS_ D3DRMFOGMODE) PURE;
Ritor1
parents:
diff changeset
564 STDMETHOD(SetSceneFogParams)(THIS_ D3DVALUE start, D3DVALUE end, D3DVALUE density) PURE;
Ritor1
parents:
diff changeset
565 STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
566 STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
Ritor1
parents:
diff changeset
567 STDMETHOD_(D3DRMZBUFFERMODE, GetZbufferMode)(THIS) PURE;
Ritor1
parents:
diff changeset
568 STDMETHOD(SetMaterialMode)(THIS_ D3DRMMATERIALMODE) PURE;
Ritor1
parents:
diff changeset
569 STDMETHOD(SetOrientation)
Ritor1
parents:
diff changeset
570 ( THIS_ LPDIRECT3DRMFRAME reference,
Ritor1
parents:
diff changeset
571 D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
Ritor1
parents:
diff changeset
572 D3DVALUE ux, D3DVALUE uy, D3DVALUE uz
Ritor1
parents:
diff changeset
573 ) PURE;
Ritor1
parents:
diff changeset
574 STDMETHOD(SetPosition)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
575 STDMETHOD(SetRotation)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE;
Ritor1
parents:
diff changeset
576 STDMETHOD(SetSortMode)(THIS_ D3DRMSORTMODE) PURE;
Ritor1
parents:
diff changeset
577 STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
Ritor1
parents:
diff changeset
578 STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE;
Ritor1
parents:
diff changeset
579 STDMETHOD(SetVelocity)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, BOOL with_rotation) PURE;
Ritor1
parents:
diff changeset
580 STDMETHOD(SetZbufferMode)(THIS_ D3DRMZBUFFERMODE) PURE;
Ritor1
parents:
diff changeset
581 STDMETHOD(Transform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE;
Ritor1
parents:
diff changeset
582 };
Ritor1
parents:
diff changeset
583
Ritor1
parents:
diff changeset
584 #undef INTERFACE
Ritor1
parents:
diff changeset
585 #define INTERFACE IDirect3DRMFrame2
Ritor1
parents:
diff changeset
586
Ritor1
parents:
diff changeset
587 DECLARE_INTERFACE_(IDirect3DRMFrame2, IDirect3DRMFrame)
Ritor1
parents:
diff changeset
588 {
Ritor1
parents:
diff changeset
589 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
590 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
591
Ritor1
parents:
diff changeset
592 /*
Ritor1
parents:
diff changeset
593 * IDirect3DRMFrame methods
Ritor1
parents:
diff changeset
594 */
Ritor1
parents:
diff changeset
595 STDMETHOD(AddChild)(THIS_ LPDIRECT3DRMFRAME child) PURE;
Ritor1
parents:
diff changeset
596 STDMETHOD(AddLight)(THIS_ LPDIRECT3DRMLIGHT) PURE;
Ritor1
parents:
diff changeset
597 STDMETHOD(AddMoveCallback)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg) PURE;
Ritor1
parents:
diff changeset
598 STDMETHOD(AddTransform)(THIS_ D3DRMCOMBINETYPE, D3DRMMATRIX4D) PURE;
Ritor1
parents:
diff changeset
599 STDMETHOD(AddTranslation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
600 STDMETHOD(AddScale)(THIS_ D3DRMCOMBINETYPE, D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
Ritor1
parents:
diff changeset
601 STDMETHOD(AddRotation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE;
Ritor1
parents:
diff changeset
602 STDMETHOD(AddVisual)(THIS_ LPDIRECT3DRMVISUAL) PURE;
Ritor1
parents:
diff changeset
603 STDMETHOD(GetChildren)(THIS_ LPDIRECT3DRMFRAMEARRAY *children) PURE;
Ritor1
parents:
diff changeset
604 STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE;
Ritor1
parents:
diff changeset
605 STDMETHOD(GetLights)(THIS_ LPDIRECT3DRMLIGHTARRAY *lights) PURE;
Ritor1
parents:
diff changeset
606 STDMETHOD_(D3DRMMATERIALMODE, GetMaterialMode)(THIS) PURE;
Ritor1
parents:
diff changeset
607 STDMETHOD(GetParent)(THIS_ LPDIRECT3DRMFRAME *) PURE;
Ritor1
parents:
diff changeset
608 STDMETHOD(GetPosition)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR return_position) PURE;
Ritor1
parents:
diff changeset
609 STDMETHOD(GetRotation)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR axis, LPD3DVALUE return_theta) PURE;
Ritor1
parents:
diff changeset
610 STDMETHOD(GetScene)(THIS_ LPDIRECT3DRMFRAME *) PURE;
Ritor1
parents:
diff changeset
611 STDMETHOD_(D3DRMSORTMODE, GetSortMode)(THIS) PURE;
Ritor1
parents:
diff changeset
612 STDMETHOD(GetTexture)(THIS_ LPDIRECT3DRMTEXTURE *) PURE;
Ritor1
parents:
diff changeset
613 STDMETHOD(GetTransform)(THIS_ D3DRMMATRIX4D return_matrix) PURE;
Ritor1
parents:
diff changeset
614 STDMETHOD(GetVelocity)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR return_velocity, BOOL with_rotation) PURE;
Ritor1
parents:
diff changeset
615 STDMETHOD(GetOrientation)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR dir, LPD3DVECTOR up) PURE;
Ritor1
parents:
diff changeset
616 STDMETHOD(GetVisuals)(THIS_ LPDIRECT3DRMVISUALARRAY *visuals) PURE;
Ritor1
parents:
diff changeset
617 STDMETHOD(GetTextureTopology)(THIS_ BOOL *wrap_u, BOOL *wrap_v) PURE;
Ritor1
parents:
diff changeset
618 STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE;
Ritor1
parents:
diff changeset
619 STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg)PURE;
Ritor1
parents:
diff changeset
620 STDMETHOD(LookAt)(THIS_ LPDIRECT3DRMFRAME target, LPDIRECT3DRMFRAME reference, D3DRMFRAMECONSTRAINT) PURE;
Ritor1
parents:
diff changeset
621 STDMETHOD(Move)(THIS_ D3DVALUE delta) PURE;
Ritor1
parents:
diff changeset
622 STDMETHOD(DeleteChild)(THIS_ LPDIRECT3DRMFRAME) PURE;
Ritor1
parents:
diff changeset
623 STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DRMLIGHT) PURE;
Ritor1
parents:
diff changeset
624 STDMETHOD(DeleteMoveCallback)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg) PURE;
Ritor1
parents:
diff changeset
625 STDMETHOD(DeleteVisual)(THIS_ LPDIRECT3DRMVISUAL) PURE;
Ritor1
parents:
diff changeset
626 STDMETHOD_(D3DCOLOR, GetSceneBackground)(THIS) PURE;
Ritor1
parents:
diff changeset
627 STDMETHOD(GetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE *) PURE;
Ritor1
parents:
diff changeset
628 STDMETHOD_(D3DCOLOR, GetSceneFogColor)(THIS) PURE;
Ritor1
parents:
diff changeset
629 STDMETHOD_(BOOL, GetSceneFogEnable)(THIS) PURE;
Ritor1
parents:
diff changeset
630 STDMETHOD_(D3DRMFOGMODE, GetSceneFogMode)(THIS) PURE;
Ritor1
parents:
diff changeset
631 STDMETHOD(GetSceneFogParams)(THIS_ D3DVALUE *return_start, D3DVALUE *return_end, D3DVALUE *return_density) PURE;
Ritor1
parents:
diff changeset
632 STDMETHOD(SetSceneBackground)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
633 STDMETHOD(SetSceneBackgroundRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
Ritor1
parents:
diff changeset
634 STDMETHOD(SetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE;
Ritor1
parents:
diff changeset
635 STDMETHOD(SetSceneBackgroundImage)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
Ritor1
parents:
diff changeset
636 STDMETHOD(SetSceneFogEnable)(THIS_ BOOL) PURE;
Ritor1
parents:
diff changeset
637 STDMETHOD(SetSceneFogColor)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
638 STDMETHOD(SetSceneFogMode)(THIS_ D3DRMFOGMODE) PURE;
Ritor1
parents:
diff changeset
639 STDMETHOD(SetSceneFogParams)(THIS_ D3DVALUE start, D3DVALUE end, D3DVALUE density) PURE;
Ritor1
parents:
diff changeset
640 STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
641 STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
Ritor1
parents:
diff changeset
642 STDMETHOD_(D3DRMZBUFFERMODE, GetZbufferMode)(THIS) PURE;
Ritor1
parents:
diff changeset
643 STDMETHOD(SetMaterialMode)(THIS_ D3DRMMATERIALMODE) PURE;
Ritor1
parents:
diff changeset
644 STDMETHOD(SetOrientation)
Ritor1
parents:
diff changeset
645 ( THIS_ LPDIRECT3DRMFRAME reference,
Ritor1
parents:
diff changeset
646 D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
Ritor1
parents:
diff changeset
647 D3DVALUE ux, D3DVALUE uy, D3DVALUE uz
Ritor1
parents:
diff changeset
648 ) PURE;
Ritor1
parents:
diff changeset
649 STDMETHOD(SetPosition)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
650 STDMETHOD(SetRotation)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE;
Ritor1
parents:
diff changeset
651 STDMETHOD(SetSortMode)(THIS_ D3DRMSORTMODE) PURE;
Ritor1
parents:
diff changeset
652 STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
Ritor1
parents:
diff changeset
653 STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE;
Ritor1
parents:
diff changeset
654 STDMETHOD(SetVelocity)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, BOOL with_rotation) PURE;
Ritor1
parents:
diff changeset
655 STDMETHOD(SetZbufferMode)(THIS_ D3DRMZBUFFERMODE) PURE;
Ritor1
parents:
diff changeset
656 STDMETHOD(Transform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE;
Ritor1
parents:
diff changeset
657
Ritor1
parents:
diff changeset
658 /*
Ritor1
parents:
diff changeset
659 * IDirect3DRMFrame2 methods
Ritor1
parents:
diff changeset
660 */
Ritor1
parents:
diff changeset
661 STDMETHOD(AddMoveCallback2)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg, DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
662 STDMETHOD(GetBox)(THIS_ LPD3DRMBOX) PURE;
Ritor1
parents:
diff changeset
663 STDMETHOD_(BOOL, GetBoxEnable)(THIS) PURE;
Ritor1
parents:
diff changeset
664 STDMETHOD(GetAxes)(THIS_ LPD3DVECTOR dir, LPD3DVECTOR up);
Ritor1
parents:
diff changeset
665 STDMETHOD(GetMaterial)(THIS_ LPDIRECT3DRMMATERIAL *) PURE;
Ritor1
parents:
diff changeset
666 STDMETHOD_(BOOL, GetInheritAxes)(THIS);
Ritor1
parents:
diff changeset
667 STDMETHOD(GetHierarchyBox)(THIS_ LPD3DRMBOX) PURE;
Ritor1
parents:
diff changeset
668
Ritor1
parents:
diff changeset
669 STDMETHOD(SetBox)(THIS_ LPD3DRMBOX) PURE;
Ritor1
parents:
diff changeset
670 STDMETHOD(SetBoxEnable)(THIS_ BOOL) PURE;
Ritor1
parents:
diff changeset
671 STDMETHOD(SetAxes)(THIS_ D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
Ritor1
parents:
diff changeset
672 D3DVALUE ux, D3DVALUE uy, D3DVALUE uz);
Ritor1
parents:
diff changeset
673 STDMETHOD(SetInheritAxes)(THIS_ BOOL inherit_from_parent);
Ritor1
parents:
diff changeset
674 STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL) PURE;
Ritor1
parents:
diff changeset
675 STDMETHOD(SetQuaternion)(THIS_ LPDIRECT3DRMFRAME reference, D3DRMQUATERNION *q) PURE;
Ritor1
parents:
diff changeset
676
Ritor1
parents:
diff changeset
677 STDMETHOD(RayPick)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DRMRAY ray, DWORD dwFlags, LPDIRECT3DRMPICKED2ARRAY *return_visuals) PURE;
Ritor1
parents:
diff changeset
678 STDMETHOD(Save)(THIS_ LPCSTR filename, D3DRMXOFFORMAT d3dFormat,
Ritor1
parents:
diff changeset
679 D3DRMSAVEOPTIONS d3dSaveFlags);
Ritor1
parents:
diff changeset
680 };
Ritor1
parents:
diff changeset
681
Ritor1
parents:
diff changeset
682 #undef INTERFACE
Ritor1
parents:
diff changeset
683 #define INTERFACE IDirect3DRMFrame3
Ritor1
parents:
diff changeset
684
Ritor1
parents:
diff changeset
685 DECLARE_INTERFACE_(IDirect3DRMFrame3, IDirect3DRMVisual)
Ritor1
parents:
diff changeset
686 {
Ritor1
parents:
diff changeset
687 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
688 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
689
Ritor1
parents:
diff changeset
690 /*
Ritor1
parents:
diff changeset
691 * IDirect3DRMFrame3 methods
Ritor1
parents:
diff changeset
692 */
Ritor1
parents:
diff changeset
693 STDMETHOD(AddChild)(THIS_ LPDIRECT3DRMFRAME3 child) PURE;
Ritor1
parents:
diff changeset
694 STDMETHOD(AddLight)(THIS_ LPDIRECT3DRMLIGHT) PURE;
Ritor1
parents:
diff changeset
695 STDMETHOD(AddMoveCallback)(THIS_ D3DRMFRAME3MOVECALLBACK, VOID *arg, DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
696 STDMETHOD(AddTransform)(THIS_ D3DRMCOMBINETYPE, D3DRMMATRIX4D) PURE;
Ritor1
parents:
diff changeset
697 STDMETHOD(AddTranslation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
698 STDMETHOD(AddScale)(THIS_ D3DRMCOMBINETYPE, D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
Ritor1
parents:
diff changeset
699 STDMETHOD(AddRotation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE;
Ritor1
parents:
diff changeset
700 STDMETHOD(AddVisual)(THIS_ LPUNKNOWN) PURE;
Ritor1
parents:
diff changeset
701 STDMETHOD(GetChildren)(THIS_ LPDIRECT3DRMFRAMEARRAY *children) PURE;
Ritor1
parents:
diff changeset
702 STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE;
Ritor1
parents:
diff changeset
703 STDMETHOD(GetLights)(THIS_ LPDIRECT3DRMLIGHTARRAY *lights) PURE;
Ritor1
parents:
diff changeset
704 STDMETHOD_(D3DRMMATERIALMODE, GetMaterialMode)(THIS) PURE;
Ritor1
parents:
diff changeset
705 STDMETHOD(GetParent)(THIS_ LPDIRECT3DRMFRAME3 *) PURE;
Ritor1
parents:
diff changeset
706 STDMETHOD(GetPosition)(THIS_ LPDIRECT3DRMFRAME3 reference, LPD3DVECTOR return_position) PURE;
Ritor1
parents:
diff changeset
707 STDMETHOD(GetRotation)(THIS_ LPDIRECT3DRMFRAME3 reference, LPD3DVECTOR axis, LPD3DVALUE return_theta) PURE;
Ritor1
parents:
diff changeset
708 STDMETHOD(GetScene)(THIS_ LPDIRECT3DRMFRAME3 *) PURE;
Ritor1
parents:
diff changeset
709 STDMETHOD_(D3DRMSORTMODE, GetSortMode)(THIS) PURE;
Ritor1
parents:
diff changeset
710 STDMETHOD(GetTexture)(THIS_ LPDIRECT3DRMTEXTURE3 *) PURE;
Ritor1
parents:
diff changeset
711 STDMETHOD(GetTransform)(THIS_ LPDIRECT3DRMFRAME3 reference,
Ritor1
parents:
diff changeset
712 D3DRMMATRIX4D rmMatrix) PURE;
Ritor1
parents:
diff changeset
713 STDMETHOD(GetVelocity)(THIS_ LPDIRECT3DRMFRAME3 reference, LPD3DVECTOR return_velocity, BOOL with_rotation) PURE;
Ritor1
parents:
diff changeset
714 STDMETHOD(GetOrientation)(THIS_ LPDIRECT3DRMFRAME3 reference, LPD3DVECTOR dir, LPD3DVECTOR up) PURE;
Ritor1
parents:
diff changeset
715 STDMETHOD(GetVisuals)(THIS_ LPDWORD lpdwCount, LPUNKNOWN *) PURE;
Ritor1
parents:
diff changeset
716 STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE;
Ritor1
parents:
diff changeset
717 STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURE3CALLBACK, LPVOID lpArg)PURE;
Ritor1
parents:
diff changeset
718 STDMETHOD(LookAt)(THIS_ LPDIRECT3DRMFRAME3 target, LPDIRECT3DRMFRAME3 reference, D3DRMFRAMECONSTRAINT) PURE;
Ritor1
parents:
diff changeset
719 STDMETHOD(Move)(THIS_ D3DVALUE delta) PURE;
Ritor1
parents:
diff changeset
720 STDMETHOD(DeleteChild)(THIS_ LPDIRECT3DRMFRAME3) PURE;
Ritor1
parents:
diff changeset
721 STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DRMLIGHT) PURE;
Ritor1
parents:
diff changeset
722 STDMETHOD(DeleteMoveCallback)(THIS_ D3DRMFRAME3MOVECALLBACK, VOID *arg) PURE;
Ritor1
parents:
diff changeset
723 STDMETHOD(DeleteVisual)(THIS_ LPUNKNOWN) PURE;
Ritor1
parents:
diff changeset
724 STDMETHOD_(D3DCOLOR, GetSceneBackground)(THIS) PURE;
Ritor1
parents:
diff changeset
725 STDMETHOD(GetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE *) PURE;
Ritor1
parents:
diff changeset
726 STDMETHOD_(D3DCOLOR, GetSceneFogColor)(THIS) PURE;
Ritor1
parents:
diff changeset
727 STDMETHOD_(BOOL, GetSceneFogEnable)(THIS) PURE;
Ritor1
parents:
diff changeset
728 STDMETHOD_(D3DRMFOGMODE, GetSceneFogMode)(THIS) PURE;
Ritor1
parents:
diff changeset
729 STDMETHOD(GetSceneFogParams)(THIS_ D3DVALUE *return_start, D3DVALUE *return_end, D3DVALUE *return_density) PURE;
Ritor1
parents:
diff changeset
730 STDMETHOD(SetSceneBackground)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
731 STDMETHOD(SetSceneBackgroundRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
Ritor1
parents:
diff changeset
732 STDMETHOD(SetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE;
Ritor1
parents:
diff changeset
733 STDMETHOD(SetSceneBackgroundImage)(THIS_ LPDIRECT3DRMTEXTURE3) PURE;
Ritor1
parents:
diff changeset
734 STDMETHOD(SetSceneFogEnable)(THIS_ BOOL) PURE;
Ritor1
parents:
diff changeset
735 STDMETHOD(SetSceneFogColor)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
736 STDMETHOD(SetSceneFogMode)(THIS_ D3DRMFOGMODE) PURE;
Ritor1
parents:
diff changeset
737 STDMETHOD(SetSceneFogParams)(THIS_ D3DVALUE start, D3DVALUE end, D3DVALUE density) PURE;
Ritor1
parents:
diff changeset
738 STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
739 STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
Ritor1
parents:
diff changeset
740 STDMETHOD_(D3DRMZBUFFERMODE, GetZbufferMode)(THIS) PURE;
Ritor1
parents:
diff changeset
741 STDMETHOD(SetMaterialMode)(THIS_ D3DRMMATERIALMODE) PURE;
Ritor1
parents:
diff changeset
742 STDMETHOD(SetOrientation)
Ritor1
parents:
diff changeset
743 ( THIS_ LPDIRECT3DRMFRAME3 reference,
Ritor1
parents:
diff changeset
744 D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
Ritor1
parents:
diff changeset
745 D3DVALUE ux, D3DVALUE uy, D3DVALUE uz
Ritor1
parents:
diff changeset
746 ) PURE;
Ritor1
parents:
diff changeset
747 STDMETHOD(SetPosition)(THIS_ LPDIRECT3DRMFRAME3 reference, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
748 STDMETHOD(SetRotation)(THIS_ LPDIRECT3DRMFRAME3 reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE;
Ritor1
parents:
diff changeset
749 STDMETHOD(SetSortMode)(THIS_ D3DRMSORTMODE) PURE;
Ritor1
parents:
diff changeset
750 STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE3) PURE;
Ritor1
parents:
diff changeset
751 STDMETHOD(SetVelocity)(THIS_ LPDIRECT3DRMFRAME3 reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, BOOL with_rotation) PURE;
Ritor1
parents:
diff changeset
752 STDMETHOD(SetZbufferMode)(THIS_ D3DRMZBUFFERMODE) PURE;
Ritor1
parents:
diff changeset
753 STDMETHOD(Transform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE;
Ritor1
parents:
diff changeset
754 STDMETHOD(GetBox)(THIS_ LPD3DRMBOX) PURE;
Ritor1
parents:
diff changeset
755 STDMETHOD_(BOOL, GetBoxEnable)(THIS) PURE;
Ritor1
parents:
diff changeset
756 STDMETHOD(GetAxes)(THIS_ LPD3DVECTOR dir, LPD3DVECTOR up);
Ritor1
parents:
diff changeset
757 STDMETHOD(GetMaterial)(THIS_ LPDIRECT3DRMMATERIAL2 *) PURE;
Ritor1
parents:
diff changeset
758 STDMETHOD_(BOOL, GetInheritAxes)(THIS);
Ritor1
parents:
diff changeset
759 STDMETHOD(GetHierarchyBox)(THIS_ LPD3DRMBOX) PURE;
Ritor1
parents:
diff changeset
760
Ritor1
parents:
diff changeset
761 STDMETHOD(SetBox)(THIS_ LPD3DRMBOX) PURE;
Ritor1
parents:
diff changeset
762 STDMETHOD(SetBoxEnable)(THIS_ BOOL) PURE;
Ritor1
parents:
diff changeset
763 STDMETHOD(SetAxes)(THIS_ D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
Ritor1
parents:
diff changeset
764 D3DVALUE ux, D3DVALUE uy, D3DVALUE uz);
Ritor1
parents:
diff changeset
765 STDMETHOD(SetInheritAxes)(THIS_ BOOL inherit_from_parent);
Ritor1
parents:
diff changeset
766 STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL2) PURE;
Ritor1
parents:
diff changeset
767 STDMETHOD(SetQuaternion)(THIS_ LPDIRECT3DRMFRAME3 reference, D3DRMQUATERNION *q) PURE;
Ritor1
parents:
diff changeset
768
Ritor1
parents:
diff changeset
769 STDMETHOD(RayPick)(THIS_ LPDIRECT3DRMFRAME3 reference, LPD3DRMRAY ray, DWORD dwFlags, LPDIRECT3DRMPICKED2ARRAY *return_visuals) PURE;
Ritor1
parents:
diff changeset
770 STDMETHOD(Save)(THIS_ LPCSTR filename, D3DRMXOFFORMAT d3dFormat,
Ritor1
parents:
diff changeset
771 D3DRMSAVEOPTIONS d3dSaveFlags);
Ritor1
parents:
diff changeset
772 STDMETHOD(TransformVectors)(THIS_ LPDIRECT3DRMFRAME3 reference,
Ritor1
parents:
diff changeset
773 DWORD dwNumVectors,
Ritor1
parents:
diff changeset
774 LPD3DVECTOR lpDstVectors,
Ritor1
parents:
diff changeset
775 LPD3DVECTOR lpSrcVectors) PURE;
Ritor1
parents:
diff changeset
776 STDMETHOD(InverseTransformVectors)(THIS_ LPDIRECT3DRMFRAME3 reference,
Ritor1
parents:
diff changeset
777 DWORD dwNumVectors,
Ritor1
parents:
diff changeset
778 LPD3DVECTOR lpDstVectors,
Ritor1
parents:
diff changeset
779 LPD3DVECTOR lpSrcVectors) PURE;
Ritor1
parents:
diff changeset
780 STDMETHOD(SetTraversalOptions)(THIS_ DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
781 STDMETHOD(GetTraversalOptions)(THIS_ LPDWORD lpdwFlags) PURE;
Ritor1
parents:
diff changeset
782 STDMETHOD(SetSceneFogMethod)(THIS_ DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
783 STDMETHOD(GetSceneFogMethod)(THIS_ LPDWORD lpdwFlags) PURE;
Ritor1
parents:
diff changeset
784 STDMETHOD(SetMaterialOverride)(THIS_ LPD3DRMMATERIALOVERRIDE) PURE;
Ritor1
parents:
diff changeset
785 STDMETHOD(GetMaterialOverride)(THIS_ LPD3DRMMATERIALOVERRIDE) PURE;
Ritor1
parents:
diff changeset
786 };
Ritor1
parents:
diff changeset
787
Ritor1
parents:
diff changeset
788 #undef INTERFACE
Ritor1
parents:
diff changeset
789 #define INTERFACE IDirect3DRMMesh
Ritor1
parents:
diff changeset
790
Ritor1
parents:
diff changeset
791 DECLARE_INTERFACE_(IDirect3DRMMesh, IDirect3DRMVisual)
Ritor1
parents:
diff changeset
792 {
Ritor1
parents:
diff changeset
793 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
794 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
795
Ritor1
parents:
diff changeset
796 /*
Ritor1
parents:
diff changeset
797 * IDirect3DRMMesh methods
Ritor1
parents:
diff changeset
798 */
Ritor1
parents:
diff changeset
799 STDMETHOD(Scale)(THIS_ D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
Ritor1
parents:
diff changeset
800 STDMETHOD(Translate)(THIS_ D3DVALUE tx, D3DVALUE ty, D3DVALUE tz) PURE;
Ritor1
parents:
diff changeset
801 STDMETHOD(GetBox)(THIS_ D3DRMBOX *) PURE;
Ritor1
parents:
diff changeset
802 STDMETHOD(AddGroup)(THIS_ unsigned vCount, unsigned fCount, unsigned vPerFace, unsigned *fData, D3DRMGROUPINDEX *returnId) PURE;
Ritor1
parents:
diff changeset
803 STDMETHOD(SetVertices)(THIS_ D3DRMGROUPINDEX id, unsigned index, unsigned count, D3DRMVERTEX *values) PURE;
Ritor1
parents:
diff changeset
804 STDMETHOD(SetGroupColor)(THIS_ D3DRMGROUPINDEX id, D3DCOLOR value) PURE;
Ritor1
parents:
diff changeset
805 STDMETHOD(SetGroupColorRGB)(THIS_ D3DRMGROUPINDEX id, D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
Ritor1
parents:
diff changeset
806 STDMETHOD(SetGroupMapping)(THIS_ D3DRMGROUPINDEX id, D3DRMMAPPING value) PURE;
Ritor1
parents:
diff changeset
807 STDMETHOD(SetGroupQuality)(THIS_ D3DRMGROUPINDEX id, D3DRMRENDERQUALITY value) PURE;
Ritor1
parents:
diff changeset
808 STDMETHOD(SetGroupMaterial)(THIS_ D3DRMGROUPINDEX id, LPDIRECT3DRMMATERIAL value) PURE;
Ritor1
parents:
diff changeset
809 STDMETHOD(SetGroupTexture)(THIS_ D3DRMGROUPINDEX id, LPDIRECT3DRMTEXTURE value) PURE;
Ritor1
parents:
diff changeset
810
Ritor1
parents:
diff changeset
811 STDMETHOD_(unsigned, GetGroupCount)(THIS) PURE;
Ritor1
parents:
diff changeset
812 STDMETHOD(GetGroup)(THIS_ D3DRMGROUPINDEX id, unsigned *vCount, unsigned *fCount, unsigned *vPerFace, DWORD *fDataSize, unsigned *fData) PURE;
Ritor1
parents:
diff changeset
813 STDMETHOD(GetVertices)(THIS_ D3DRMGROUPINDEX id, DWORD index, DWORD count, D3DRMVERTEX *returnPtr) PURE;
Ritor1
parents:
diff changeset
814 STDMETHOD_(D3DCOLOR, GetGroupColor)(THIS_ D3DRMGROUPINDEX id) PURE;
Ritor1
parents:
diff changeset
815 STDMETHOD_(D3DRMMAPPING, GetGroupMapping)(THIS_ D3DRMGROUPINDEX id) PURE;
Ritor1
parents:
diff changeset
816 STDMETHOD_(D3DRMRENDERQUALITY, GetGroupQuality)(THIS_ D3DRMGROUPINDEX id) PURE;
Ritor1
parents:
diff changeset
817 STDMETHOD(GetGroupMaterial)(THIS_ D3DRMGROUPINDEX id, LPDIRECT3DRMMATERIAL *returnPtr) PURE;
Ritor1
parents:
diff changeset
818 STDMETHOD(GetGroupTexture)(THIS_ D3DRMGROUPINDEX id, LPDIRECT3DRMTEXTURE *returnPtr) PURE;
Ritor1
parents:
diff changeset
819 };
Ritor1
parents:
diff changeset
820
Ritor1
parents:
diff changeset
821 #undef INTERFACE
Ritor1
parents:
diff changeset
822 #define INTERFACE IDirect3DRMProgressiveMesh
Ritor1
parents:
diff changeset
823
Ritor1
parents:
diff changeset
824 DECLARE_INTERFACE_(IDirect3DRMProgressiveMesh, IDirect3DRMVisual)
Ritor1
parents:
diff changeset
825 {
Ritor1
parents:
diff changeset
826 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
827 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
828
Ritor1
parents:
diff changeset
829 /*
Ritor1
parents:
diff changeset
830 * IDirect3DRMProgressiveMesh methods
Ritor1
parents:
diff changeset
831 */
Ritor1
parents:
diff changeset
832 STDMETHOD(Load) (THIS_ LPVOID lpObjLocation, LPVOID lpObjId,
Ritor1
parents:
diff changeset
833 D3DRMLOADOPTIONS dloLoadflags, D3DRMLOADTEXTURECALLBACK lpCallback,
Ritor1
parents:
diff changeset
834 LPVOID lpArg) PURE;
Ritor1
parents:
diff changeset
835 STDMETHOD(GetLoadStatus) (THIS_ LPD3DRMPMESHLOADSTATUS lpStatus) PURE;
Ritor1
parents:
diff changeset
836 STDMETHOD(SetMinRenderDetail) (THIS_ D3DVALUE d3dVal) PURE;
Ritor1
parents:
diff changeset
837 STDMETHOD(Abort) (THIS_ DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
838
Ritor1
parents:
diff changeset
839 STDMETHOD(GetFaceDetail) (THIS_ LPDWORD lpdwCount) PURE;
Ritor1
parents:
diff changeset
840 STDMETHOD(GetVertexDetail) (THIS_ LPDWORD lpdwCount) PURE;
Ritor1
parents:
diff changeset
841 STDMETHOD(SetFaceDetail) (THIS_ DWORD dwCount) PURE;
Ritor1
parents:
diff changeset
842 STDMETHOD(SetVertexDetail) (THIS_ DWORD dwCount) PURE;
Ritor1
parents:
diff changeset
843 STDMETHOD(GetFaceDetailRange) (THIS_ LPDWORD lpdwMin, LPDWORD lpdwMax) PURE;
Ritor1
parents:
diff changeset
844 STDMETHOD(GetVertexDetailRange) (THIS_ LPDWORD lpdwMin, LPDWORD lpdwMax) PURE;
Ritor1
parents:
diff changeset
845 STDMETHOD(GetDetail) (THIS_ D3DVALUE *lpdvVal) PURE;
Ritor1
parents:
diff changeset
846 STDMETHOD(SetDetail) (THIS_ D3DVALUE d3dVal) PURE;
Ritor1
parents:
diff changeset
847
Ritor1
parents:
diff changeset
848 STDMETHOD(RegisterEvents) (THIS_ HANDLE hEvent, DWORD dwFlags, DWORD dwReserved) PURE;
Ritor1
parents:
diff changeset
849 STDMETHOD(CreateMesh) (THIS_ LPDIRECT3DRMMESH *lplpD3DRMMesh) PURE;
Ritor1
parents:
diff changeset
850 STDMETHOD(Duplicate) (THIS_ LPDIRECT3DRMPROGRESSIVEMESH *lplpD3DRMPMesh) PURE;
Ritor1
parents:
diff changeset
851 STDMETHOD(GetBox) (THIS_ LPD3DRMBOX lpBBox) PURE;
Ritor1
parents:
diff changeset
852 STDMETHOD(SetQuality) (THIS_ D3DRMRENDERQUALITY) PURE;
Ritor1
parents:
diff changeset
853 STDMETHOD(GetQuality) (THIS_ LPD3DRMRENDERQUALITY lpdwquality) PURE;
Ritor1
parents:
diff changeset
854 };
Ritor1
parents:
diff changeset
855
Ritor1
parents:
diff changeset
856 #undef INTERFACE
Ritor1
parents:
diff changeset
857 #define INTERFACE IDirect3DRMShadow
Ritor1
parents:
diff changeset
858
Ritor1
parents:
diff changeset
859 DECLARE_INTERFACE_(IDirect3DRMShadow, IDirect3DRMVisual)
Ritor1
parents:
diff changeset
860 {
Ritor1
parents:
diff changeset
861 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
862 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
863
Ritor1
parents:
diff changeset
864 /*
Ritor1
parents:
diff changeset
865 * IDirect3DRMShadow methods
Ritor1
parents:
diff changeset
866 */
Ritor1
parents:
diff changeset
867 STDMETHOD(Init)
Ritor1
parents:
diff changeset
868 ( THIS_ LPDIRECT3DRMVISUAL visual, LPDIRECT3DRMLIGHT light,
Ritor1
parents:
diff changeset
869 D3DVALUE px, D3DVALUE py, D3DVALUE pz,
Ritor1
parents:
diff changeset
870 D3DVALUE nx, D3DVALUE ny, D3DVALUE nz
Ritor1
parents:
diff changeset
871 ) PURE;
Ritor1
parents:
diff changeset
872 };
Ritor1
parents:
diff changeset
873
Ritor1
parents:
diff changeset
874 #undef INTERFACE
Ritor1
parents:
diff changeset
875 #define INTERFACE IDirect3DRMShadow2
Ritor1
parents:
diff changeset
876
Ritor1
parents:
diff changeset
877 DECLARE_INTERFACE_(IDirect3DRMShadow2, IDirect3DRMVisual)
Ritor1
parents:
diff changeset
878 {
Ritor1
parents:
diff changeset
879 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
880 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
881
Ritor1
parents:
diff changeset
882 /*
Ritor1
parents:
diff changeset
883 * IDirect3DRMShadow methods
Ritor1
parents:
diff changeset
884 */
Ritor1
parents:
diff changeset
885 STDMETHOD(Init)
Ritor1
parents:
diff changeset
886 ( THIS_ LPUNKNOWN pUNK, LPDIRECT3DRMLIGHT light,
Ritor1
parents:
diff changeset
887 D3DVALUE px, D3DVALUE py, D3DVALUE pz,
Ritor1
parents:
diff changeset
888 D3DVALUE nx, D3DVALUE ny, D3DVALUE nz
Ritor1
parents:
diff changeset
889 ) PURE;
Ritor1
parents:
diff changeset
890
Ritor1
parents:
diff changeset
891 /*
Ritor1
parents:
diff changeset
892 * IDirect3DRMShadow2 methods
Ritor1
parents:
diff changeset
893 */
Ritor1
parents:
diff changeset
894 STDMETHOD(GetVisual)(THIS_ LPDIRECT3DRMVISUAL *) PURE;
Ritor1
parents:
diff changeset
895 STDMETHOD(SetVisual)(THIS_ LPUNKNOWN pUNK, DWORD) PURE;
Ritor1
parents:
diff changeset
896 STDMETHOD(GetLight)(THIS_ LPDIRECT3DRMLIGHT *) PURE;
Ritor1
parents:
diff changeset
897 STDMETHOD(SetLight)(THIS_ LPDIRECT3DRMLIGHT, DWORD) PURE;
Ritor1
parents:
diff changeset
898 STDMETHOD(GetPlane)(THIS_ LPD3DVALUE px, LPD3DVALUE py, LPD3DVALUE pz,
Ritor1
parents:
diff changeset
899 LPD3DVALUE nx, LPD3DVALUE ny, LPD3DVALUE nz) PURE;
Ritor1
parents:
diff changeset
900 STDMETHOD(SetPlane)(THIS_ D3DVALUE px, D3DVALUE py, D3DVALUE pz,
Ritor1
parents:
diff changeset
901 D3DVALUE nx, D3DVALUE ny, D3DVALUE nz, DWORD) PURE;
Ritor1
parents:
diff changeset
902 STDMETHOD(GetOptions)(THIS_ LPDWORD) PURE;
Ritor1
parents:
diff changeset
903 STDMETHOD(SetOptions)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
904 };
Ritor1
parents:
diff changeset
905
Ritor1
parents:
diff changeset
906 #undef INTERFACE
Ritor1
parents:
diff changeset
907 #define INTERFACE IDirect3DRMFace
Ritor1
parents:
diff changeset
908
Ritor1
parents:
diff changeset
909 DECLARE_INTERFACE_(IDirect3DRMFace, IDirect3DRMObject)
Ritor1
parents:
diff changeset
910 {
Ritor1
parents:
diff changeset
911 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
912 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
913
Ritor1
parents:
diff changeset
914 /*
Ritor1
parents:
diff changeset
915 * IDirect3DRMFace methods
Ritor1
parents:
diff changeset
916 */
Ritor1
parents:
diff changeset
917 STDMETHOD(AddVertex)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
918 STDMETHOD(AddVertexAndNormalIndexed)(THIS_ DWORD vertex, DWORD normal) PURE;
Ritor1
parents:
diff changeset
919 STDMETHOD(SetColorRGB)(THIS_ D3DVALUE, D3DVALUE, D3DVALUE) PURE;
Ritor1
parents:
diff changeset
920 STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
921 STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
Ritor1
parents:
diff changeset
922 STDMETHOD(SetTextureCoordinates)(THIS_ DWORD vertex, D3DVALUE u, D3DVALUE v) PURE;
Ritor1
parents:
diff changeset
923 STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL) PURE;
Ritor1
parents:
diff changeset
924 STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE;
Ritor1
parents:
diff changeset
925
Ritor1
parents:
diff changeset
926 STDMETHOD(GetVertex)(THIS_ DWORD index, D3DVECTOR *vertex, D3DVECTOR *normal) PURE;
Ritor1
parents:
diff changeset
927 STDMETHOD(GetVertices)(THIS_ DWORD *vertex_count, D3DVECTOR *coords, D3DVECTOR *normals);
Ritor1
parents:
diff changeset
928 STDMETHOD(GetTextureCoordinates)(THIS_ DWORD vertex, D3DVALUE *u, D3DVALUE *v) PURE;
Ritor1
parents:
diff changeset
929 STDMETHOD(GetTextureTopology)(THIS_ BOOL *wrap_u, BOOL *wrap_v) PURE;
Ritor1
parents:
diff changeset
930 STDMETHOD(GetNormal)(THIS_ D3DVECTOR *) PURE;
Ritor1
parents:
diff changeset
931 STDMETHOD(GetTexture)(THIS_ LPDIRECT3DRMTEXTURE *) PURE;
Ritor1
parents:
diff changeset
932 STDMETHOD(GetMaterial)(THIS_ LPDIRECT3DRMMATERIAL *) PURE;
Ritor1
parents:
diff changeset
933
Ritor1
parents:
diff changeset
934 STDMETHOD_(int, GetVertexCount)(THIS) PURE;
Ritor1
parents:
diff changeset
935 STDMETHOD_(int, GetVertexIndex)(THIS_ DWORD which) PURE;
Ritor1
parents:
diff changeset
936 STDMETHOD_(int, GetTextureCoordinateIndex)(THIS_ DWORD which) PURE;
Ritor1
parents:
diff changeset
937 STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE;
Ritor1
parents:
diff changeset
938 };
Ritor1
parents:
diff changeset
939
Ritor1
parents:
diff changeset
940 #undef INTERFACE
Ritor1
parents:
diff changeset
941 #define INTERFACE IDirect3DRMFace2
Ritor1
parents:
diff changeset
942
Ritor1
parents:
diff changeset
943 DECLARE_INTERFACE_(IDirect3DRMFace2, IDirect3DRMObject)
Ritor1
parents:
diff changeset
944 {
Ritor1
parents:
diff changeset
945 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
946 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
947
Ritor1
parents:
diff changeset
948 /*
Ritor1
parents:
diff changeset
949 * IDirect3DRMFace methods
Ritor1
parents:
diff changeset
950 */
Ritor1
parents:
diff changeset
951 STDMETHOD(AddVertex)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
952 STDMETHOD(AddVertexAndNormalIndexed)(THIS_ DWORD vertex, DWORD normal) PURE;
Ritor1
parents:
diff changeset
953 STDMETHOD(SetColorRGB)(THIS_ D3DVALUE, D3DVALUE, D3DVALUE) PURE;
Ritor1
parents:
diff changeset
954 STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
955 STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE3) PURE;
Ritor1
parents:
diff changeset
956 STDMETHOD(SetTextureCoordinates)(THIS_ DWORD vertex, D3DVALUE u, D3DVALUE v) PURE;
Ritor1
parents:
diff changeset
957 STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL2) PURE;
Ritor1
parents:
diff changeset
958 STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE;
Ritor1
parents:
diff changeset
959
Ritor1
parents:
diff changeset
960 STDMETHOD(GetVertex)(THIS_ DWORD index, D3DVECTOR *vertex, D3DVECTOR *normal) PURE;
Ritor1
parents:
diff changeset
961 STDMETHOD(GetVertices)(THIS_ DWORD *vertex_count, D3DVECTOR *coords, D3DVECTOR *normals);
Ritor1
parents:
diff changeset
962 STDMETHOD(GetTextureCoordinates)(THIS_ DWORD vertex, D3DVALUE *u, D3DVALUE *v) PURE;
Ritor1
parents:
diff changeset
963 STDMETHOD(GetTextureTopology)(THIS_ BOOL *wrap_u, BOOL *wrap_v) PURE;
Ritor1
parents:
diff changeset
964 STDMETHOD(GetNormal)(THIS_ D3DVECTOR *) PURE;
Ritor1
parents:
diff changeset
965 STDMETHOD(GetTexture)(THIS_ LPDIRECT3DRMTEXTURE3 *) PURE;
Ritor1
parents:
diff changeset
966 STDMETHOD(GetMaterial)(THIS_ LPDIRECT3DRMMATERIAL2 *) PURE;
Ritor1
parents:
diff changeset
967
Ritor1
parents:
diff changeset
968 STDMETHOD_(int, GetVertexCount)(THIS) PURE;
Ritor1
parents:
diff changeset
969 STDMETHOD_(int, GetVertexIndex)(THIS_ DWORD which) PURE;
Ritor1
parents:
diff changeset
970 STDMETHOD_(int, GetTextureCoordinateIndex)(THIS_ DWORD which) PURE;
Ritor1
parents:
diff changeset
971 STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE;
Ritor1
parents:
diff changeset
972 };
Ritor1
parents:
diff changeset
973
Ritor1
parents:
diff changeset
974 #undef INTERFACE
Ritor1
parents:
diff changeset
975 #define INTERFACE IDirect3DRMMeshBuilder
Ritor1
parents:
diff changeset
976
Ritor1
parents:
diff changeset
977 DECLARE_INTERFACE_(IDirect3DRMMeshBuilder, IDirect3DRMVisual)
Ritor1
parents:
diff changeset
978 {
Ritor1
parents:
diff changeset
979 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
980 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
981
Ritor1
parents:
diff changeset
982 /*
Ritor1
parents:
diff changeset
983 * IDirect3DRMMeshBuilder methods
Ritor1
parents:
diff changeset
984 */
Ritor1
parents:
diff changeset
985 STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg) PURE;
Ritor1
parents:
diff changeset
986 STDMETHOD(Save)(THIS_ const char *filename, D3DRMXOFFORMAT, D3DRMSAVEOPTIONS save) PURE;
Ritor1
parents:
diff changeset
987 STDMETHOD(Scale)(THIS_ D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
Ritor1
parents:
diff changeset
988 STDMETHOD(Translate)(THIS_ D3DVALUE tx, D3DVALUE ty, D3DVALUE tz) PURE;
Ritor1
parents:
diff changeset
989 STDMETHOD(SetColorSource)(THIS_ D3DRMCOLORSOURCE) PURE;
Ritor1
parents:
diff changeset
990 STDMETHOD(GetBox)(THIS_ D3DRMBOX *) PURE;
Ritor1
parents:
diff changeset
991 STDMETHOD(GenerateNormals)(THIS) PURE;
Ritor1
parents:
diff changeset
992 STDMETHOD_(D3DRMCOLORSOURCE, GetColorSource)(THIS) PURE;
Ritor1
parents:
diff changeset
993
Ritor1
parents:
diff changeset
994 STDMETHOD(AddMesh)(THIS_ LPDIRECT3DRMMESH) PURE;
Ritor1
parents:
diff changeset
995 STDMETHOD(AddMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER) PURE;
Ritor1
parents:
diff changeset
996 STDMETHOD(AddFrame)(THIS_ LPDIRECT3DRMFRAME) PURE;
Ritor1
parents:
diff changeset
997 STDMETHOD(AddFace)(THIS_ LPDIRECT3DRMFACE) PURE;
Ritor1
parents:
diff changeset
998 STDMETHOD(AddFaces)
Ritor1
parents:
diff changeset
999 ( THIS_ DWORD vcount, D3DVECTOR *vertices, DWORD ncount, D3DVECTOR *normals,
Ritor1
parents:
diff changeset
1000 DWORD *data, LPDIRECT3DRMFACEARRAY*
Ritor1
parents:
diff changeset
1001 ) PURE;
Ritor1
parents:
diff changeset
1002 STDMETHOD(ReserveSpace)(THIS_ DWORD vertex_Count, DWORD normal_count, DWORD face_count) PURE;
Ritor1
parents:
diff changeset
1003 STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
Ritor1
parents:
diff changeset
1004 STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
1005 STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
Ritor1
parents:
diff changeset
1006 STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL) PURE;
Ritor1
parents:
diff changeset
1007 STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE;
Ritor1
parents:
diff changeset
1008 STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE;
Ritor1
parents:
diff changeset
1009 STDMETHOD(SetPerspective)(THIS_ BOOL) PURE;
Ritor1
parents:
diff changeset
1010 STDMETHOD(SetVertex)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
1011 STDMETHOD(SetNormal)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
1012 STDMETHOD(SetTextureCoordinates)(THIS_ DWORD index, D3DVALUE u, D3DVALUE v) PURE;
Ritor1
parents:
diff changeset
1013 STDMETHOD(SetVertexColor)(THIS_ DWORD index, D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
1014 STDMETHOD(SetVertexColorRGB)(THIS_ DWORD index, D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
Ritor1
parents:
diff changeset
1015
Ritor1
parents:
diff changeset
1016 STDMETHOD(GetFaces)(THIS_ LPDIRECT3DRMFACEARRAY*) PURE;
Ritor1
parents:
diff changeset
1017 STDMETHOD(GetVertices)
Ritor1
parents:
diff changeset
1018 ( THIS_ DWORD *vcount, D3DVECTOR *vertices, DWORD *ncount, D3DVECTOR *normals, DWORD *face_data_size, DWORD *face_data
Ritor1
parents:
diff changeset
1019 ) PURE;
Ritor1
parents:
diff changeset
1020 STDMETHOD(GetTextureCoordinates)(THIS_ DWORD index, D3DVALUE *u, D3DVALUE *v) PURE;
Ritor1
parents:
diff changeset
1021
Ritor1
parents:
diff changeset
1022 STDMETHOD_(int, AddVertex)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
1023 STDMETHOD_(int, AddNormal)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
1024 STDMETHOD(CreateFace)(THIS_ LPDIRECT3DRMFACE*) PURE;
Ritor1
parents:
diff changeset
1025 STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE;
Ritor1
parents:
diff changeset
1026 STDMETHOD_(BOOL, GetPerspective)(THIS) PURE;
Ritor1
parents:
diff changeset
1027 STDMETHOD_(int, GetFaceCount)(THIS) PURE;
Ritor1
parents:
diff changeset
1028 STDMETHOD_(int, GetVertexCount)(THIS) PURE;
Ritor1
parents:
diff changeset
1029 STDMETHOD_(D3DCOLOR, GetVertexColor)(THIS_ DWORD index) PURE;
Ritor1
parents:
diff changeset
1030
Ritor1
parents:
diff changeset
1031 STDMETHOD(CreateMesh)(THIS_ LPDIRECT3DRMMESH*) PURE;
Ritor1
parents:
diff changeset
1032 };
Ritor1
parents:
diff changeset
1033
Ritor1
parents:
diff changeset
1034 #undef INTERFACE
Ritor1
parents:
diff changeset
1035 #define INTERFACE IDirect3DRMMeshBuilder2
Ritor1
parents:
diff changeset
1036
Ritor1
parents:
diff changeset
1037 DECLARE_INTERFACE_(IDirect3DRMMeshBuilder2, IDirect3DRMMeshBuilder)
Ritor1
parents:
diff changeset
1038 {
Ritor1
parents:
diff changeset
1039 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1040 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
1041
Ritor1
parents:
diff changeset
1042 /*
Ritor1
parents:
diff changeset
1043 * IDirect3DRMMeshBuilder methods
Ritor1
parents:
diff changeset
1044 */
Ritor1
parents:
diff changeset
1045 STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg) PURE;
Ritor1
parents:
diff changeset
1046 STDMETHOD(Save)(THIS_ const char *filename, D3DRMXOFFORMAT, D3DRMSAVEOPTIONS save) PURE;
Ritor1
parents:
diff changeset
1047 STDMETHOD(Scale)(THIS_ D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
Ritor1
parents:
diff changeset
1048 STDMETHOD(Translate)(THIS_ D3DVALUE tx, D3DVALUE ty, D3DVALUE tz) PURE;
Ritor1
parents:
diff changeset
1049 STDMETHOD(SetColorSource)(THIS_ D3DRMCOLORSOURCE) PURE;
Ritor1
parents:
diff changeset
1050 STDMETHOD(GetBox)(THIS_ D3DRMBOX *) PURE;
Ritor1
parents:
diff changeset
1051 STDMETHOD(GenerateNormals)(THIS) PURE;
Ritor1
parents:
diff changeset
1052 STDMETHOD_(D3DRMCOLORSOURCE, GetColorSource)(THIS) PURE;
Ritor1
parents:
diff changeset
1053
Ritor1
parents:
diff changeset
1054 STDMETHOD(AddMesh)(THIS_ LPDIRECT3DRMMESH) PURE;
Ritor1
parents:
diff changeset
1055 STDMETHOD(AddMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER) PURE;
Ritor1
parents:
diff changeset
1056 STDMETHOD(AddFrame)(THIS_ LPDIRECT3DRMFRAME) PURE;
Ritor1
parents:
diff changeset
1057 STDMETHOD(AddFace)(THIS_ LPDIRECT3DRMFACE) PURE;
Ritor1
parents:
diff changeset
1058 STDMETHOD(AddFaces)
Ritor1
parents:
diff changeset
1059 ( THIS_ DWORD vcount, D3DVECTOR *vertices, DWORD ncount, D3DVECTOR *normals,
Ritor1
parents:
diff changeset
1060 DWORD *data, LPDIRECT3DRMFACEARRAY*
Ritor1
parents:
diff changeset
1061 ) PURE;
Ritor1
parents:
diff changeset
1062 STDMETHOD(ReserveSpace)(THIS_ DWORD vertex_Count, DWORD normal_count, DWORD face_count) PURE;
Ritor1
parents:
diff changeset
1063 STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
Ritor1
parents:
diff changeset
1064 STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
1065 STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
Ritor1
parents:
diff changeset
1066 STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL) PURE;
Ritor1
parents:
diff changeset
1067 STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE;
Ritor1
parents:
diff changeset
1068 STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE;
Ritor1
parents:
diff changeset
1069 STDMETHOD(SetPerspective)(THIS_ BOOL) PURE;
Ritor1
parents:
diff changeset
1070 STDMETHOD(SetVertex)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
1071 STDMETHOD(SetNormal)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
1072 STDMETHOD(SetTextureCoordinates)(THIS_ DWORD index, D3DVALUE u, D3DVALUE v) PURE;
Ritor1
parents:
diff changeset
1073 STDMETHOD(SetVertexColor)(THIS_ DWORD index, D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
1074 STDMETHOD(SetVertexColorRGB)(THIS_ DWORD index, D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
Ritor1
parents:
diff changeset
1075
Ritor1
parents:
diff changeset
1076 STDMETHOD(GetFaces)(THIS_ LPDIRECT3DRMFACEARRAY*) PURE;
Ritor1
parents:
diff changeset
1077 STDMETHOD(GetVertices)
Ritor1
parents:
diff changeset
1078 ( THIS_ DWORD *vcount, D3DVECTOR *vertices, DWORD *ncount, D3DVECTOR *normals, DWORD *face_data_size, DWORD *face_data
Ritor1
parents:
diff changeset
1079 ) PURE;
Ritor1
parents:
diff changeset
1080 STDMETHOD(GetTextureCoordinates)(THIS_ DWORD index, D3DVALUE *u, D3DVALUE *v) PURE;
Ritor1
parents:
diff changeset
1081
Ritor1
parents:
diff changeset
1082 STDMETHOD_(int, AddVertex)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
1083 STDMETHOD_(int, AddNormal)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
1084 STDMETHOD(CreateFace)(THIS_ LPDIRECT3DRMFACE*) PURE;
Ritor1
parents:
diff changeset
1085 STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE;
Ritor1
parents:
diff changeset
1086 STDMETHOD_(BOOL, GetPerspective)(THIS) PURE;
Ritor1
parents:
diff changeset
1087 STDMETHOD_(int, GetFaceCount)(THIS) PURE;
Ritor1
parents:
diff changeset
1088 STDMETHOD_(int, GetVertexCount)(THIS) PURE;
Ritor1
parents:
diff changeset
1089 STDMETHOD_(D3DCOLOR, GetVertexColor)(THIS_ DWORD index) PURE;
Ritor1
parents:
diff changeset
1090
Ritor1
parents:
diff changeset
1091 STDMETHOD(CreateMesh)(THIS_ LPDIRECT3DRMMESH*) PURE;
Ritor1
parents:
diff changeset
1092
Ritor1
parents:
diff changeset
1093 /*
Ritor1
parents:
diff changeset
1094 * IDirect3DRMMeshBuilder2 methods
Ritor1
parents:
diff changeset
1095 */
Ritor1
parents:
diff changeset
1096 STDMETHOD(GenerateNormals2)(THIS_ D3DVALUE crease, DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
1097 STDMETHOD(GetFace)(THIS_ DWORD index, LPDIRECT3DRMFACE*) PURE;
Ritor1
parents:
diff changeset
1098 };
Ritor1
parents:
diff changeset
1099
Ritor1
parents:
diff changeset
1100 #undef INTERFACE
Ritor1
parents:
diff changeset
1101 #define INTERFACE IDirect3DRMMeshBuilder3
Ritor1
parents:
diff changeset
1102
Ritor1
parents:
diff changeset
1103 DECLARE_INTERFACE_(IDirect3DRMMeshBuilder3, IDirect3DRMVisual)
Ritor1
parents:
diff changeset
1104 {
Ritor1
parents:
diff changeset
1105 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1106 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
1107
Ritor1
parents:
diff changeset
1108 /*
Ritor1
parents:
diff changeset
1109 * IDirect3DRMMeshBuilder3 methods
Ritor1
parents:
diff changeset
1110 */
Ritor1
parents:
diff changeset
1111 STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURE3CALLBACK, LPVOID lpArg) PURE;
Ritor1
parents:
diff changeset
1112 STDMETHOD(Save)(THIS_ const char *filename, D3DRMXOFFORMAT, D3DRMSAVEOPTIONS save) PURE;
Ritor1
parents:
diff changeset
1113 STDMETHOD(Scale)(THIS_ D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
Ritor1
parents:
diff changeset
1114 STDMETHOD(Translate)(THIS_ D3DVALUE tx, D3DVALUE ty, D3DVALUE tz) PURE;
Ritor1
parents:
diff changeset
1115 STDMETHOD(SetColorSource)(THIS_ D3DRMCOLORSOURCE) PURE;
Ritor1
parents:
diff changeset
1116 STDMETHOD(GetBox)(THIS_ D3DRMBOX *) PURE;
Ritor1
parents:
diff changeset
1117 STDMETHOD(GenerateNormals)(THIS_ D3DVALUE crease, DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
1118 STDMETHOD_(D3DRMCOLORSOURCE, GetColorSource)(THIS) PURE;
Ritor1
parents:
diff changeset
1119
Ritor1
parents:
diff changeset
1120 STDMETHOD(AddMesh)(THIS_ LPDIRECT3DRMMESH) PURE;
Ritor1
parents:
diff changeset
1121 STDMETHOD(AddMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER3, DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
1122 STDMETHOD(AddFrame)(THIS_ LPDIRECT3DRMFRAME3) PURE;
Ritor1
parents:
diff changeset
1123 STDMETHOD(AddFace)(THIS_ LPDIRECT3DRMFACE2) PURE;
Ritor1
parents:
diff changeset
1124 STDMETHOD(AddFaces)
Ritor1
parents:
diff changeset
1125 ( THIS_ DWORD vcount, D3DVECTOR *vertices, DWORD ncount, D3DVECTOR *normals,
Ritor1
parents:
diff changeset
1126 DWORD *data, LPDIRECT3DRMFACEARRAY*
Ritor1
parents:
diff changeset
1127 ) PURE;
Ritor1
parents:
diff changeset
1128 STDMETHOD(ReserveSpace)(THIS_ DWORD vertex_Count, DWORD normal_count, DWORD face_count) PURE;
Ritor1
parents:
diff changeset
1129 STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
Ritor1
parents:
diff changeset
1130 STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
1131 STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE3) PURE;
Ritor1
parents:
diff changeset
1132 STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL2) PURE;
Ritor1
parents:
diff changeset
1133 STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE;
Ritor1
parents:
diff changeset
1134 STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE;
Ritor1
parents:
diff changeset
1135 STDMETHOD(SetPerspective)(THIS_ BOOL) PURE;
Ritor1
parents:
diff changeset
1136 STDMETHOD(SetVertex)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
1137 STDMETHOD(SetNormal)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
1138 STDMETHOD(SetTextureCoordinates)(THIS_ DWORD index, D3DVALUE u, D3DVALUE v) PURE;
Ritor1
parents:
diff changeset
1139 STDMETHOD(SetVertexColor)(THIS_ DWORD index, D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
1140 STDMETHOD(SetVertexColorRGB)(THIS_ DWORD index, D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
Ritor1
parents:
diff changeset
1141 STDMETHOD(GetFaces)(THIS_ LPDIRECT3DRMFACEARRAY*) PURE;
Ritor1
parents:
diff changeset
1142 STDMETHOD(GetGeometry)
Ritor1
parents:
diff changeset
1143 ( THIS_ DWORD *vcount, D3DVECTOR *vertices, DWORD *ncount, D3DVECTOR *normals, DWORD *face_data_size, DWORD *face_data
Ritor1
parents:
diff changeset
1144 ) PURE;
Ritor1
parents:
diff changeset
1145 STDMETHOD(GetTextureCoordinates)(THIS_ DWORD index, D3DVALUE *u, D3DVALUE *v) PURE;
Ritor1
parents:
diff changeset
1146 STDMETHOD_(int, AddVertex)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
1147 STDMETHOD_(int, AddNormal)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
1148 STDMETHOD(CreateFace)(THIS_ LPDIRECT3DRMFACE2 *) PURE;
Ritor1
parents:
diff changeset
1149 STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE;
Ritor1
parents:
diff changeset
1150 STDMETHOD_(BOOL, GetPerspective)(THIS) PURE;
Ritor1
parents:
diff changeset
1151 STDMETHOD_(int, GetFaceCount)(THIS) PURE;
Ritor1
parents:
diff changeset
1152 STDMETHOD_(int, GetVertexCount)(THIS) PURE;
Ritor1
parents:
diff changeset
1153 STDMETHOD_(D3DCOLOR, GetVertexColor)(THIS_ DWORD index) PURE;
Ritor1
parents:
diff changeset
1154 STDMETHOD(CreateMesh)(THIS_ LPDIRECT3DRMMESH*) PURE;
Ritor1
parents:
diff changeset
1155 STDMETHOD(GetFace)(THIS_ DWORD index, LPDIRECT3DRMFACE2 *) PURE;
Ritor1
parents:
diff changeset
1156 STDMETHOD(GetVertex)(THIS_ DWORD dwIndex, LPD3DVECTOR lpVector) PURE;
Ritor1
parents:
diff changeset
1157 STDMETHOD(GetNormal)(THIS_ DWORD dwIndex, LPD3DVECTOR lpVector) PURE;
Ritor1
parents:
diff changeset
1158 STDMETHOD(DeleteVertices)(THIS_ DWORD dwIndexFirst, DWORD dwCount) PURE;
Ritor1
parents:
diff changeset
1159 STDMETHOD(DeleteNormals)(THIS_ DWORD dwIndexFirst, DWORD dwCount) PURE;
Ritor1
parents:
diff changeset
1160 STDMETHOD(DeleteFace)(THIS_ LPDIRECT3DRMFACE2) PURE;
Ritor1
parents:
diff changeset
1161 STDMETHOD(Empty)(THIS_ DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
1162 STDMETHOD(Optimize)(THIS_ DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
1163 STDMETHOD(AddFacesIndexed)(THIS_ DWORD dwFlags, DWORD *lpdwvIndices, DWORD *dwIndexFirst, DWORD *dwCount) PURE;
Ritor1
parents:
diff changeset
1164 STDMETHOD(CreateSubMesh)(THIS_ LPUNKNOWN *) PURE;
Ritor1
parents:
diff changeset
1165 STDMETHOD(GetParentMesh)(THIS_ DWORD, LPUNKNOWN *) PURE;
Ritor1
parents:
diff changeset
1166 STDMETHOD(GetSubMeshes)(THIS_ LPDWORD lpdwCount, LPUNKNOWN *) PURE;
Ritor1
parents:
diff changeset
1167 STDMETHOD(DeleteSubMesh)(THIS_ LPUNKNOWN) PURE;
Ritor1
parents:
diff changeset
1168 STDMETHOD(Enable)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
1169 STDMETHOD(GetEnable)(THIS_ DWORD *) PURE;
Ritor1
parents:
diff changeset
1170 STDMETHOD(AddTriangles)(THIS_ DWORD dwFlags, DWORD dwFormat,
Ritor1
parents:
diff changeset
1171 DWORD dwVertexCount, LPVOID lpvData) PURE;
Ritor1
parents:
diff changeset
1172 STDMETHOD(SetVertices)(THIS_ DWORD dwIndexFirst, DWORD dwCount, LPD3DVECTOR) PURE;
Ritor1
parents:
diff changeset
1173 STDMETHOD(GetVertices)(THIS_ DWORD dwIndexFirst, LPDWORD lpdwCount, LPD3DVECTOR) PURE;
Ritor1
parents:
diff changeset
1174 STDMETHOD(SetNormals)(THIS_ DWORD dwIndexFirst, DWORD dwCount, LPD3DVECTOR) PURE;
Ritor1
parents:
diff changeset
1175 STDMETHOD(GetNormals)(THIS_ DWORD dwIndexFirst, LPDWORD lpdwCount, LPD3DVECTOR) PURE;
Ritor1
parents:
diff changeset
1176 STDMETHOD_(int, GetNormalCount)(THIS) PURE;
Ritor1
parents:
diff changeset
1177 };
Ritor1
parents:
diff changeset
1178
Ritor1
parents:
diff changeset
1179 #undef INTERFACE
Ritor1
parents:
diff changeset
1180 #define INTERFACE IDirect3DRMLight
Ritor1
parents:
diff changeset
1181
Ritor1
parents:
diff changeset
1182 DECLARE_INTERFACE_(IDirect3DRMLight, IDirect3DRMObject)
Ritor1
parents:
diff changeset
1183 {
Ritor1
parents:
diff changeset
1184 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1185 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
1186
Ritor1
parents:
diff changeset
1187 /*
Ritor1
parents:
diff changeset
1188 * IDirect3DRMLight methods
Ritor1
parents:
diff changeset
1189 */
Ritor1
parents:
diff changeset
1190 STDMETHOD(SetType)(THIS_ D3DRMLIGHTTYPE) PURE;
Ritor1
parents:
diff changeset
1191 STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
1192 STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
Ritor1
parents:
diff changeset
1193 STDMETHOD(SetRange)(THIS_ D3DVALUE) PURE;
Ritor1
parents:
diff changeset
1194 STDMETHOD(SetUmbra)(THIS_ D3DVALUE) PURE;
Ritor1
parents:
diff changeset
1195 STDMETHOD(SetPenumbra)(THIS_ D3DVALUE) PURE;
Ritor1
parents:
diff changeset
1196 STDMETHOD(SetConstantAttenuation)(THIS_ D3DVALUE) PURE;
Ritor1
parents:
diff changeset
1197 STDMETHOD(SetLinearAttenuation)(THIS_ D3DVALUE) PURE;
Ritor1
parents:
diff changeset
1198 STDMETHOD(SetQuadraticAttenuation)(THIS_ D3DVALUE) PURE;
Ritor1
parents:
diff changeset
1199
Ritor1
parents:
diff changeset
1200 STDMETHOD_(D3DVALUE, GetRange)(THIS) PURE;
Ritor1
parents:
diff changeset
1201 STDMETHOD_(D3DVALUE, GetUmbra)(THIS) PURE;
Ritor1
parents:
diff changeset
1202 STDMETHOD_(D3DVALUE, GetPenumbra)(THIS) PURE;
Ritor1
parents:
diff changeset
1203 STDMETHOD_(D3DVALUE, GetConstantAttenuation)(THIS) PURE;
Ritor1
parents:
diff changeset
1204 STDMETHOD_(D3DVALUE, GetLinearAttenuation)(THIS) PURE;
Ritor1
parents:
diff changeset
1205 STDMETHOD_(D3DVALUE, GetQuadraticAttenuation)(THIS) PURE;
Ritor1
parents:
diff changeset
1206 STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE;
Ritor1
parents:
diff changeset
1207 STDMETHOD_(D3DRMLIGHTTYPE, GetType)(THIS) PURE;
Ritor1
parents:
diff changeset
1208
Ritor1
parents:
diff changeset
1209 STDMETHOD(SetEnableFrame)(THIS_ LPDIRECT3DRMFRAME) PURE;
Ritor1
parents:
diff changeset
1210 STDMETHOD(GetEnableFrame)(THIS_ LPDIRECT3DRMFRAME*) PURE;
Ritor1
parents:
diff changeset
1211 };
Ritor1
parents:
diff changeset
1212
Ritor1
parents:
diff changeset
1213 #undef INTERFACE
Ritor1
parents:
diff changeset
1214 #define INTERFACE IDirect3DRMTexture
Ritor1
parents:
diff changeset
1215
Ritor1
parents:
diff changeset
1216 DECLARE_INTERFACE_(IDirect3DRMTexture, IDirect3DRMVisual)
Ritor1
parents:
diff changeset
1217 {
Ritor1
parents:
diff changeset
1218 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1219 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
1220
Ritor1
parents:
diff changeset
1221 /*
Ritor1
parents:
diff changeset
1222 * IDirect3DRMTexture methods
Ritor1
parents:
diff changeset
1223 */
Ritor1
parents:
diff changeset
1224 STDMETHOD(InitFromFile)(THIS_ const char *filename) PURE;
Ritor1
parents:
diff changeset
1225 STDMETHOD(InitFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS) PURE;
Ritor1
parents:
diff changeset
1226 STDMETHOD(InitFromResource)(THIS_ HRSRC) PURE;
Ritor1
parents:
diff changeset
1227 STDMETHOD(Changed)(THIS_ BOOL pixels, BOOL palette) PURE;
Ritor1
parents:
diff changeset
1228
Ritor1
parents:
diff changeset
1229 STDMETHOD(SetColors)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
1230 STDMETHOD(SetShades)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
1231 STDMETHOD(SetDecalSize)(THIS_ D3DVALUE width, D3DVALUE height) PURE;
Ritor1
parents:
diff changeset
1232 STDMETHOD(SetDecalOrigin)(THIS_ LONG x, LONG y) PURE;
Ritor1
parents:
diff changeset
1233 STDMETHOD(SetDecalScale)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
1234 STDMETHOD(SetDecalTransparency)(THIS_ BOOL) PURE;
Ritor1
parents:
diff changeset
1235 STDMETHOD(SetDecalTransparentColor)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
1236
Ritor1
parents:
diff changeset
1237 STDMETHOD(GetDecalSize)(THIS_ D3DVALUE *width_return, D3DVALUE *height_return) PURE;
Ritor1
parents:
diff changeset
1238 STDMETHOD(GetDecalOrigin)(THIS_ LONG *x_return, LONG *y_return) PURE;
Ritor1
parents:
diff changeset
1239
Ritor1
parents:
diff changeset
1240 STDMETHOD_(D3DRMIMAGE *, GetImage)(THIS) PURE;
Ritor1
parents:
diff changeset
1241 STDMETHOD_(DWORD, GetShades)(THIS) PURE;
Ritor1
parents:
diff changeset
1242 STDMETHOD_(DWORD, GetColors)(THIS) PURE;
Ritor1
parents:
diff changeset
1243 STDMETHOD_(DWORD, GetDecalScale)(THIS) PURE;
Ritor1
parents:
diff changeset
1244 STDMETHOD_(BOOL, GetDecalTransparency)(THIS) PURE;
Ritor1
parents:
diff changeset
1245 STDMETHOD_(D3DCOLOR, GetDecalTransparentColor)(THIS) PURE;
Ritor1
parents:
diff changeset
1246 };
Ritor1
parents:
diff changeset
1247
Ritor1
parents:
diff changeset
1248 #undef INTERFACE
Ritor1
parents:
diff changeset
1249 #define INTERFACE IDirect3DRMTexture2
Ritor1
parents:
diff changeset
1250
Ritor1
parents:
diff changeset
1251 DECLARE_INTERFACE_(IDirect3DRMTexture2, IDirect3DRMTexture)
Ritor1
parents:
diff changeset
1252 {
Ritor1
parents:
diff changeset
1253 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1254 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
1255
Ritor1
parents:
diff changeset
1256 /*
Ritor1
parents:
diff changeset
1257 * IDirect3DRMTexture methods
Ritor1
parents:
diff changeset
1258 */
Ritor1
parents:
diff changeset
1259 STDMETHOD(InitFromFile)(THIS_ const char *filename) PURE;
Ritor1
parents:
diff changeset
1260 STDMETHOD(InitFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS) PURE;
Ritor1
parents:
diff changeset
1261 STDMETHOD(InitFromResource)(THIS_ HRSRC) PURE;
Ritor1
parents:
diff changeset
1262 STDMETHOD(Changed)(THIS_ BOOL pixels, BOOL palette) PURE;
Ritor1
parents:
diff changeset
1263
Ritor1
parents:
diff changeset
1264 STDMETHOD(SetColors)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
1265 STDMETHOD(SetShades)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
1266 STDMETHOD(SetDecalSize)(THIS_ D3DVALUE width, D3DVALUE height) PURE;
Ritor1
parents:
diff changeset
1267 STDMETHOD(SetDecalOrigin)(THIS_ LONG x, LONG y) PURE;
Ritor1
parents:
diff changeset
1268 STDMETHOD(SetDecalScale)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
1269 STDMETHOD(SetDecalTransparency)(THIS_ BOOL) PURE;
Ritor1
parents:
diff changeset
1270 STDMETHOD(SetDecalTransparentColor)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
1271
Ritor1
parents:
diff changeset
1272 STDMETHOD(GetDecalSize)(THIS_ D3DVALUE *width_return, D3DVALUE *height_return) PURE;
Ritor1
parents:
diff changeset
1273 STDMETHOD(GetDecalOrigin)(THIS_ LONG *x_return, LONG *y_return) PURE;
Ritor1
parents:
diff changeset
1274
Ritor1
parents:
diff changeset
1275 STDMETHOD_(D3DRMIMAGE *, GetImage)(THIS) PURE;
Ritor1
parents:
diff changeset
1276 STDMETHOD_(DWORD, GetShades)(THIS) PURE;
Ritor1
parents:
diff changeset
1277 STDMETHOD_(DWORD, GetColors)(THIS) PURE;
Ritor1
parents:
diff changeset
1278 STDMETHOD_(DWORD, GetDecalScale)(THIS) PURE;
Ritor1
parents:
diff changeset
1279 STDMETHOD_(BOOL, GetDecalTransparency)(THIS) PURE;
Ritor1
parents:
diff changeset
1280 STDMETHOD_(D3DCOLOR, GetDecalTransparentColor)(THIS) PURE;
Ritor1
parents:
diff changeset
1281
Ritor1
parents:
diff changeset
1282 /*
Ritor1
parents:
diff changeset
1283 * IDirect3DRMTexture2 methods
Ritor1
parents:
diff changeset
1284 */
Ritor1
parents:
diff changeset
1285 STDMETHOD(InitFromImage)(THIS_ LPD3DRMIMAGE) PURE;
Ritor1
parents:
diff changeset
1286 STDMETHOD(InitFromResource2)(THIS_ HMODULE hModule, LPCTSTR strName, LPCTSTR strType) PURE;
Ritor1
parents:
diff changeset
1287 STDMETHOD(GenerateMIPMap)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
1288 };
Ritor1
parents:
diff changeset
1289
Ritor1
parents:
diff changeset
1290 #undef INTERFACE
Ritor1
parents:
diff changeset
1291 #define INTERFACE IDirect3DRMTexture3
Ritor1
parents:
diff changeset
1292
Ritor1
parents:
diff changeset
1293 DECLARE_INTERFACE_(IDirect3DRMTexture3, IDirect3DRMVisual)
Ritor1
parents:
diff changeset
1294 {
Ritor1
parents:
diff changeset
1295 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1296 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
1297
Ritor1
parents:
diff changeset
1298 /*
Ritor1
parents:
diff changeset
1299 * IDirect3DRMTexture3 methods
Ritor1
parents:
diff changeset
1300 */
Ritor1
parents:
diff changeset
1301 STDMETHOD(InitFromFile)(THIS_ const char *filename) PURE;
Ritor1
parents:
diff changeset
1302 STDMETHOD(InitFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS) PURE;
Ritor1
parents:
diff changeset
1303 STDMETHOD(InitFromResource)(THIS_ HRSRC) PURE;
Ritor1
parents:
diff changeset
1304 STDMETHOD(Changed)(THIS_ DWORD dwFlags, DWORD dwcRects, LPRECT pRects) PURE;
Ritor1
parents:
diff changeset
1305 STDMETHOD(SetColors)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
1306 STDMETHOD(SetShades)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
1307 STDMETHOD(SetDecalSize)(THIS_ D3DVALUE width, D3DVALUE height) PURE;
Ritor1
parents:
diff changeset
1308 STDMETHOD(SetDecalOrigin)(THIS_ LONG x, LONG y) PURE;
Ritor1
parents:
diff changeset
1309 STDMETHOD(SetDecalScale)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
1310 STDMETHOD(SetDecalTransparency)(THIS_ BOOL) PURE;
Ritor1
parents:
diff changeset
1311 STDMETHOD(SetDecalTransparentColor)(THIS_ D3DCOLOR) PURE;
Ritor1
parents:
diff changeset
1312
Ritor1
parents:
diff changeset
1313 STDMETHOD(GetDecalSize)(THIS_ D3DVALUE *width_return, D3DVALUE *height_return) PURE;
Ritor1
parents:
diff changeset
1314 STDMETHOD(GetDecalOrigin)(THIS_ LONG *x_return, LONG *y_return) PURE;
Ritor1
parents:
diff changeset
1315
Ritor1
parents:
diff changeset
1316 STDMETHOD_(D3DRMIMAGE *, GetImage)(THIS) PURE;
Ritor1
parents:
diff changeset
1317 STDMETHOD_(DWORD, GetShades)(THIS) PURE;
Ritor1
parents:
diff changeset
1318 STDMETHOD_(DWORD, GetColors)(THIS) PURE;
Ritor1
parents:
diff changeset
1319 STDMETHOD_(DWORD, GetDecalScale)(THIS) PURE;
Ritor1
parents:
diff changeset
1320 STDMETHOD_(BOOL, GetDecalTransparency)(THIS) PURE;
Ritor1
parents:
diff changeset
1321 STDMETHOD_(D3DCOLOR, GetDecalTransparentColor)(THIS) PURE;
Ritor1
parents:
diff changeset
1322 STDMETHOD(InitFromImage)(THIS_ LPD3DRMIMAGE) PURE;
Ritor1
parents:
diff changeset
1323 STDMETHOD(InitFromResource2)(THIS_ HMODULE hModule, LPCTSTR strName, LPCTSTR strType) PURE;
Ritor1
parents:
diff changeset
1324 STDMETHOD(GenerateMIPMap)(THIS_ DWORD) PURE;
Ritor1
parents:
diff changeset
1325 STDMETHOD(GetSurface)(THIS_ DWORD dwFlags, LPDIRECTDRAWSURFACE* lplpDDS) PURE;
Ritor1
parents:
diff changeset
1326 STDMETHOD(SetCacheOptions)(THIS_ LONG lImportance, DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
1327 STDMETHOD(GetCacheOptions)(THIS_ LPLONG lplImportance, LPDWORD lpdwFlags) PURE;
Ritor1
parents:
diff changeset
1328 STDMETHOD(SetDownsampleCallback)(THIS_ D3DRMDOWNSAMPLECALLBACK pCallback, LPVOID pArg) PURE;
Ritor1
parents:
diff changeset
1329 STDMETHOD(SetValidationCallback)(THIS_ D3DRMVALIDATIONCALLBACK pCallback, LPVOID pArg) PURE;
Ritor1
parents:
diff changeset
1330 };
Ritor1
parents:
diff changeset
1331
Ritor1
parents:
diff changeset
1332
Ritor1
parents:
diff changeset
1333 #undef INTERFACE
Ritor1
parents:
diff changeset
1334 #define INTERFACE IDirect3DRMWrap
Ritor1
parents:
diff changeset
1335
Ritor1
parents:
diff changeset
1336 DECLARE_INTERFACE_(IDirect3DRMWrap, IDirect3DRMObject)
Ritor1
parents:
diff changeset
1337 {
Ritor1
parents:
diff changeset
1338 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1339 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
1340
Ritor1
parents:
diff changeset
1341 /*
Ritor1
parents:
diff changeset
1342 * IDirect3DRMWrap methods
Ritor1
parents:
diff changeset
1343 */
Ritor1
parents:
diff changeset
1344 STDMETHOD(Init)
Ritor1
parents:
diff changeset
1345 ( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME ref,
Ritor1
parents:
diff changeset
1346 D3DVALUE ox, D3DVALUE oy, D3DVALUE oz,
Ritor1
parents:
diff changeset
1347 D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
Ritor1
parents:
diff changeset
1348 D3DVALUE ux, D3DVALUE uy, D3DVALUE uz,
Ritor1
parents:
diff changeset
1349 D3DVALUE ou, D3DVALUE ov,
Ritor1
parents:
diff changeset
1350 D3DVALUE su, D3DVALUE sv
Ritor1
parents:
diff changeset
1351 ) PURE;
Ritor1
parents:
diff changeset
1352 STDMETHOD(Apply)(THIS_ LPDIRECT3DRMOBJECT) PURE;
Ritor1
parents:
diff changeset
1353 STDMETHOD(ApplyRelative)(THIS_ LPDIRECT3DRMFRAME frame, LPDIRECT3DRMOBJECT) PURE;
Ritor1
parents:
diff changeset
1354 };
Ritor1
parents:
diff changeset
1355
Ritor1
parents:
diff changeset
1356 #undef INTERFACE
Ritor1
parents:
diff changeset
1357 #define INTERFACE IDirect3DRMMaterial
Ritor1
parents:
diff changeset
1358
Ritor1
parents:
diff changeset
1359 DECLARE_INTERFACE_(IDirect3DRMMaterial, IDirect3DRMObject)
Ritor1
parents:
diff changeset
1360 {
Ritor1
parents:
diff changeset
1361 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1362 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
1363
Ritor1
parents:
diff changeset
1364 /*
Ritor1
parents:
diff changeset
1365 * IDirect3DRMMaterial methods
Ritor1
parents:
diff changeset
1366 */
Ritor1
parents:
diff changeset
1367 STDMETHOD(SetPower)(THIS_ D3DVALUE power) PURE;
Ritor1
parents:
diff changeset
1368 STDMETHOD(SetSpecular)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE;
Ritor1
parents:
diff changeset
1369 STDMETHOD(SetEmissive)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE;
Ritor1
parents:
diff changeset
1370
Ritor1
parents:
diff changeset
1371 STDMETHOD_(D3DVALUE, GetPower)(THIS) PURE;
Ritor1
parents:
diff changeset
1372 STDMETHOD(GetSpecular)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE;
Ritor1
parents:
diff changeset
1373 STDMETHOD(GetEmissive)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE;
Ritor1
parents:
diff changeset
1374 };
Ritor1
parents:
diff changeset
1375
Ritor1
parents:
diff changeset
1376
Ritor1
parents:
diff changeset
1377 #undef INTERFACE
Ritor1
parents:
diff changeset
1378 #define INTERFACE IDirect3DRMMaterial2
Ritor1
parents:
diff changeset
1379
Ritor1
parents:
diff changeset
1380 DECLARE_INTERFACE_(IDirect3DRMMaterial2, IDirect3DRMObject)
Ritor1
parents:
diff changeset
1381 {
Ritor1
parents:
diff changeset
1382 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1383 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
1384
Ritor1
parents:
diff changeset
1385 /*
Ritor1
parents:
diff changeset
1386 * IDirect3DRMMaterial2 methods
Ritor1
parents:
diff changeset
1387 */
Ritor1
parents:
diff changeset
1388 STDMETHOD(SetPower)(THIS_ D3DVALUE power) PURE;
Ritor1
parents:
diff changeset
1389 STDMETHOD(SetSpecular)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE;
Ritor1
parents:
diff changeset
1390 STDMETHOD(SetEmissive)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE;
Ritor1
parents:
diff changeset
1391 STDMETHOD_(D3DVALUE, GetPower)(THIS) PURE;
Ritor1
parents:
diff changeset
1392 STDMETHOD(GetSpecular)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE;
Ritor1
parents:
diff changeset
1393 STDMETHOD(GetEmissive)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE;
Ritor1
parents:
diff changeset
1394 STDMETHOD(GetAmbient)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE;
Ritor1
parents:
diff changeset
1395 STDMETHOD(SetAmbient)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE;
Ritor1
parents:
diff changeset
1396 };
Ritor1
parents:
diff changeset
1397
Ritor1
parents:
diff changeset
1398
Ritor1
parents:
diff changeset
1399 #undef INTERFACE
Ritor1
parents:
diff changeset
1400 #define INTERFACE IDirect3DRMAnimation
Ritor1
parents:
diff changeset
1401
Ritor1
parents:
diff changeset
1402 DECLARE_INTERFACE_(IDirect3DRMAnimation, IDirect3DRMObject)
Ritor1
parents:
diff changeset
1403 {
Ritor1
parents:
diff changeset
1404 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1405 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
1406
Ritor1
parents:
diff changeset
1407 /*
Ritor1
parents:
diff changeset
1408 * IDirect3DRMAnimation methods
Ritor1
parents:
diff changeset
1409 */
Ritor1
parents:
diff changeset
1410 STDMETHOD(SetOptions)(THIS_ D3DRMANIMATIONOPTIONS flags) PURE;
Ritor1
parents:
diff changeset
1411 STDMETHOD(AddRotateKey)(THIS_ D3DVALUE time, D3DRMQUATERNION *q) PURE;
Ritor1
parents:
diff changeset
1412 STDMETHOD(AddPositionKey)(THIS_ D3DVALUE time, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
1413 STDMETHOD(AddScaleKey)(THIS_ D3DVALUE time, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
1414 STDMETHOD(DeleteKey)(THIS_ D3DVALUE time) PURE;
Ritor1
parents:
diff changeset
1415 STDMETHOD(SetFrame)(THIS_ LPDIRECT3DRMFRAME frame) PURE;
Ritor1
parents:
diff changeset
1416 STDMETHOD(SetTime)(THIS_ D3DVALUE time) PURE;
Ritor1
parents:
diff changeset
1417
Ritor1
parents:
diff changeset
1418 STDMETHOD_(D3DRMANIMATIONOPTIONS, GetOptions)(THIS) PURE;
Ritor1
parents:
diff changeset
1419 };
Ritor1
parents:
diff changeset
1420
Ritor1
parents:
diff changeset
1421 #undef INTERFACE
Ritor1
parents:
diff changeset
1422 #define INTERFACE IDirect3DRMAnimation2
Ritor1
parents:
diff changeset
1423
Ritor1
parents:
diff changeset
1424 DECLARE_INTERFACE_(IDirect3DRMAnimation2, IDirect3DRMObject)
Ritor1
parents:
diff changeset
1425 {
Ritor1
parents:
diff changeset
1426 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1427 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
1428
Ritor1
parents:
diff changeset
1429 /*
Ritor1
parents:
diff changeset
1430 * IDirect3DRMAnimation2 methods
Ritor1
parents:
diff changeset
1431 */
Ritor1
parents:
diff changeset
1432 STDMETHOD(SetOptions)(THIS_ D3DRMANIMATIONOPTIONS flags) PURE;
Ritor1
parents:
diff changeset
1433 STDMETHOD(AddRotateKey)(THIS_ D3DVALUE time, D3DRMQUATERNION *q) PURE;
Ritor1
parents:
diff changeset
1434 STDMETHOD(AddPositionKey)(THIS_ D3DVALUE time, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
1435 STDMETHOD(AddScaleKey)(THIS_ D3DVALUE time, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
Ritor1
parents:
diff changeset
1436 STDMETHOD(DeleteKey)(THIS_ D3DVALUE time) PURE;
Ritor1
parents:
diff changeset
1437 STDMETHOD(SetFrame)(THIS_ LPDIRECT3DRMFRAME3 frame) PURE;
Ritor1
parents:
diff changeset
1438 STDMETHOD(SetTime)(THIS_ D3DVALUE time) PURE;
Ritor1
parents:
diff changeset
1439
Ritor1
parents:
diff changeset
1440 STDMETHOD_(D3DRMANIMATIONOPTIONS, GetOptions)(THIS) PURE;
Ritor1
parents:
diff changeset
1441 STDMETHOD(GetFrame)(THIS_ LPDIRECT3DRMFRAME3 *lpD3DFrame) PURE;
Ritor1
parents:
diff changeset
1442 STDMETHOD(DeleteKeyByID)(THIS_ DWORD dwID) PURE;
Ritor1
parents:
diff changeset
1443 STDMETHOD(AddKey)(THIS_ LPD3DRMANIMATIONKEY lpKey) PURE;
Ritor1
parents:
diff changeset
1444 STDMETHOD(ModifyKey)(THIS_ LPD3DRMANIMATIONKEY lpKey) PURE;
Ritor1
parents:
diff changeset
1445 STDMETHOD(GetKeys)(THIS_ D3DVALUE dvTimeMin,
Ritor1
parents:
diff changeset
1446 D3DVALUE dvTimeMax, LPDWORD lpdwNumKeys,
Ritor1
parents:
diff changeset
1447 LPD3DRMANIMATIONKEY lpKey);
Ritor1
parents:
diff changeset
1448 };
Ritor1
parents:
diff changeset
1449
Ritor1
parents:
diff changeset
1450 #undef INTERFACE
Ritor1
parents:
diff changeset
1451 #define INTERFACE IDirect3DRMAnimationSet
Ritor1
parents:
diff changeset
1452
Ritor1
parents:
diff changeset
1453 DECLARE_INTERFACE_(IDirect3DRMAnimationSet, IDirect3DRMObject)
Ritor1
parents:
diff changeset
1454 {
Ritor1
parents:
diff changeset
1455 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1456 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
1457
Ritor1
parents:
diff changeset
1458 /*
Ritor1
parents:
diff changeset
1459 * IDirect3DRMAnimationSet methods
Ritor1
parents:
diff changeset
1460 */
Ritor1
parents:
diff changeset
1461 STDMETHOD(AddAnimation)(THIS_ LPDIRECT3DRMANIMATION aid) PURE;
Ritor1
parents:
diff changeset
1462 STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg, LPDIRECT3DRMFRAME parent)PURE;
Ritor1
parents:
diff changeset
1463 STDMETHOD(DeleteAnimation)(THIS_ LPDIRECT3DRMANIMATION aid) PURE;
Ritor1
parents:
diff changeset
1464 STDMETHOD(SetTime)(THIS_ D3DVALUE time) PURE;
Ritor1
parents:
diff changeset
1465 };
Ritor1
parents:
diff changeset
1466
Ritor1
parents:
diff changeset
1467 #undef INTERFACE
Ritor1
parents:
diff changeset
1468 #define INTERFACE IDirect3DRMAnimationSet2
Ritor1
parents:
diff changeset
1469
Ritor1
parents:
diff changeset
1470 DECLARE_INTERFACE_(IDirect3DRMAnimationSet2, IDirect3DRMObject)
Ritor1
parents:
diff changeset
1471 {
Ritor1
parents:
diff changeset
1472 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1473 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
1474
Ritor1
parents:
diff changeset
1475 /*
Ritor1
parents:
diff changeset
1476 * IDirect3DRMAnimationSet2 methods
Ritor1
parents:
diff changeset
1477 */
Ritor1
parents:
diff changeset
1478 STDMETHOD(AddAnimation)(THIS_ LPDIRECT3DRMANIMATION2 aid) PURE;
Ritor1
parents:
diff changeset
1479 STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURE3CALLBACK, LPVOID lpArg, LPDIRECT3DRMFRAME3 parent)PURE;
Ritor1
parents:
diff changeset
1480 STDMETHOD(DeleteAnimation)(THIS_ LPDIRECT3DRMANIMATION2 aid) PURE;
Ritor1
parents:
diff changeset
1481 STDMETHOD(SetTime)(THIS_ D3DVALUE time) PURE;
Ritor1
parents:
diff changeset
1482 STDMETHOD(GetAnimations)(THIS_ LPDIRECT3DRMANIMATIONARRAY *) PURE;
Ritor1
parents:
diff changeset
1483 };
Ritor1
parents:
diff changeset
1484
Ritor1
parents:
diff changeset
1485
Ritor1
parents:
diff changeset
1486 #undef INTERFACE
Ritor1
parents:
diff changeset
1487 #define INTERFACE IDirect3DRMUserVisual
Ritor1
parents:
diff changeset
1488
Ritor1
parents:
diff changeset
1489 DECLARE_INTERFACE_(IDirect3DRMUserVisual, IDirect3DRMVisual)
Ritor1
parents:
diff changeset
1490 {
Ritor1
parents:
diff changeset
1491 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1492 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
1493
Ritor1
parents:
diff changeset
1494 /*
Ritor1
parents:
diff changeset
1495 * IDirect3DRMUserVisual methods
Ritor1
parents:
diff changeset
1496 */
Ritor1
parents:
diff changeset
1497 STDMETHOD(Init)(THIS_ D3DRMUSERVISUALCALLBACK fn, void *arg) PURE;
Ritor1
parents:
diff changeset
1498 };
Ritor1
parents:
diff changeset
1499
Ritor1
parents:
diff changeset
1500 #undef INTERFACE
Ritor1
parents:
diff changeset
1501 #define INTERFACE IDirect3DRMArray
Ritor1
parents:
diff changeset
1502
Ritor1
parents:
diff changeset
1503 DECLARE_INTERFACE_(IDirect3DRMArray, IUnknown)
Ritor1
parents:
diff changeset
1504 {
Ritor1
parents:
diff changeset
1505 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1506
Ritor1
parents:
diff changeset
1507 STDMETHOD_(DWORD, GetSize)(THIS) PURE;
Ritor1
parents:
diff changeset
1508 /* No GetElement method as it would get overloaded
Ritor1
parents:
diff changeset
1509 * in derived classes, and overloading is
Ritor1
parents:
diff changeset
1510 * a no-no in COM
Ritor1
parents:
diff changeset
1511 */
Ritor1
parents:
diff changeset
1512 };
Ritor1
parents:
diff changeset
1513
Ritor1
parents:
diff changeset
1514 #undef INTERFACE
Ritor1
parents:
diff changeset
1515 #define INTERFACE IDirect3DRMObjectArray
Ritor1
parents:
diff changeset
1516
Ritor1
parents:
diff changeset
1517 DECLARE_INTERFACE_(IDirect3DRMObjectArray, IDirect3DRMArray)
Ritor1
parents:
diff changeset
1518 {
Ritor1
parents:
diff changeset
1519 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1520
Ritor1
parents:
diff changeset
1521 STDMETHOD_(DWORD, GetSize)(THIS) PURE;
Ritor1
parents:
diff changeset
1522 STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMOBJECT *) PURE;
Ritor1
parents:
diff changeset
1523 };
Ritor1
parents:
diff changeset
1524
Ritor1
parents:
diff changeset
1525 #undef INTERFACE
Ritor1
parents:
diff changeset
1526 #define INTERFACE IDirect3DRMDeviceArray
Ritor1
parents:
diff changeset
1527
Ritor1
parents:
diff changeset
1528 DECLARE_INTERFACE_(IDirect3DRMDeviceArray, IDirect3DRMArray)
Ritor1
parents:
diff changeset
1529 {
Ritor1
parents:
diff changeset
1530 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1531
Ritor1
parents:
diff changeset
1532 STDMETHOD_(DWORD, GetSize)(THIS) PURE;
Ritor1
parents:
diff changeset
1533 STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMDEVICE *) PURE;
Ritor1
parents:
diff changeset
1534 };
Ritor1
parents:
diff changeset
1535
Ritor1
parents:
diff changeset
1536 #undef INTERFACE
Ritor1
parents:
diff changeset
1537 #define INTERFACE IDirect3DRMFrameArray
Ritor1
parents:
diff changeset
1538
Ritor1
parents:
diff changeset
1539 DECLARE_INTERFACE_(IDirect3DRMFrameArray, IDirect3DRMArray)
Ritor1
parents:
diff changeset
1540 {
Ritor1
parents:
diff changeset
1541 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1542
Ritor1
parents:
diff changeset
1543 STDMETHOD_(DWORD, GetSize)(THIS) PURE;
Ritor1
parents:
diff changeset
1544 STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMFRAME *) PURE;
Ritor1
parents:
diff changeset
1545 };
Ritor1
parents:
diff changeset
1546
Ritor1
parents:
diff changeset
1547 #undef INTERFACE
Ritor1
parents:
diff changeset
1548 #define INTERFACE IDirect3DRMViewportArray
Ritor1
parents:
diff changeset
1549
Ritor1
parents:
diff changeset
1550 DECLARE_INTERFACE_(IDirect3DRMViewportArray, IDirect3DRMArray)
Ritor1
parents:
diff changeset
1551 {
Ritor1
parents:
diff changeset
1552 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1553
Ritor1
parents:
diff changeset
1554 STDMETHOD_(DWORD, GetSize)(THIS) PURE;
Ritor1
parents:
diff changeset
1555 STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMVIEWPORT *) PURE;
Ritor1
parents:
diff changeset
1556 };
Ritor1
parents:
diff changeset
1557
Ritor1
parents:
diff changeset
1558 #undef INTERFACE
Ritor1
parents:
diff changeset
1559 #define INTERFACE IDirect3DRMVisualArray
Ritor1
parents:
diff changeset
1560
Ritor1
parents:
diff changeset
1561 DECLARE_INTERFACE_(IDirect3DRMVisualArray, IDirect3DRMArray)
Ritor1
parents:
diff changeset
1562 {
Ritor1
parents:
diff changeset
1563 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1564
Ritor1
parents:
diff changeset
1565 STDMETHOD_(DWORD, GetSize)(THIS) PURE;
Ritor1
parents:
diff changeset
1566 STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMVISUAL *) PURE;
Ritor1
parents:
diff changeset
1567 };
Ritor1
parents:
diff changeset
1568
Ritor1
parents:
diff changeset
1569 #undef INTERFACE
Ritor1
parents:
diff changeset
1570 #define INTERFACE IDirect3DRMAnimationArray
Ritor1
parents:
diff changeset
1571
Ritor1
parents:
diff changeset
1572 DECLARE_INTERFACE_(IDirect3DRMAnimationArray, IDirect3DRMArray)
Ritor1
parents:
diff changeset
1573 {
Ritor1
parents:
diff changeset
1574 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1575
Ritor1
parents:
diff changeset
1576 STDMETHOD_(DWORD, GetSize)(THIS) PURE;
Ritor1
parents:
diff changeset
1577 STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMANIMATION2 *) PURE;
Ritor1
parents:
diff changeset
1578 };
Ritor1
parents:
diff changeset
1579
Ritor1
parents:
diff changeset
1580 #undef INTERFACE
Ritor1
parents:
diff changeset
1581 #define INTERFACE IDirect3DRMPickedArray
Ritor1
parents:
diff changeset
1582
Ritor1
parents:
diff changeset
1583 DECLARE_INTERFACE_(IDirect3DRMPickedArray, IDirect3DRMArray)
Ritor1
parents:
diff changeset
1584 {
Ritor1
parents:
diff changeset
1585 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1586
Ritor1
parents:
diff changeset
1587 STDMETHOD_(DWORD, GetSize)(THIS) PURE;
Ritor1
parents:
diff changeset
1588 STDMETHOD(GetPick)(THIS_ DWORD index, LPDIRECT3DRMVISUAL *, LPDIRECT3DRMFRAMEARRAY *, LPD3DRMPICKDESC) PURE;
Ritor1
parents:
diff changeset
1589 };
Ritor1
parents:
diff changeset
1590
Ritor1
parents:
diff changeset
1591 #undef INTERFACE
Ritor1
parents:
diff changeset
1592 #define INTERFACE IDirect3DRMLightArray
Ritor1
parents:
diff changeset
1593
Ritor1
parents:
diff changeset
1594 DECLARE_INTERFACE_(IDirect3DRMLightArray, IDirect3DRMArray)
Ritor1
parents:
diff changeset
1595 {
Ritor1
parents:
diff changeset
1596 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1597
Ritor1
parents:
diff changeset
1598 STDMETHOD_(DWORD, GetSize)(THIS) PURE;
Ritor1
parents:
diff changeset
1599 STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMLIGHT *) PURE;
Ritor1
parents:
diff changeset
1600 };
Ritor1
parents:
diff changeset
1601
Ritor1
parents:
diff changeset
1602 #undef INTERFACE
Ritor1
parents:
diff changeset
1603 #define INTERFACE IDirect3DRMFaceArray
Ritor1
parents:
diff changeset
1604
Ritor1
parents:
diff changeset
1605 DECLARE_INTERFACE_(IDirect3DRMFaceArray, IDirect3DRMArray)
Ritor1
parents:
diff changeset
1606 {
Ritor1
parents:
diff changeset
1607 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1608
Ritor1
parents:
diff changeset
1609 STDMETHOD_(DWORD, GetSize)(THIS) PURE;
Ritor1
parents:
diff changeset
1610 STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMFACE *) PURE;
Ritor1
parents:
diff changeset
1611 };
Ritor1
parents:
diff changeset
1612
Ritor1
parents:
diff changeset
1613 #undef INTERFACE
Ritor1
parents:
diff changeset
1614 #define INTERFACE IDirect3DRMPicked2Array
Ritor1
parents:
diff changeset
1615
Ritor1
parents:
diff changeset
1616 DECLARE_INTERFACE_(IDirect3DRMPicked2Array, IDirect3DRMArray)
Ritor1
parents:
diff changeset
1617 {
Ritor1
parents:
diff changeset
1618 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1619
Ritor1
parents:
diff changeset
1620 STDMETHOD_(DWORD, GetSize)(THIS) PURE;
Ritor1
parents:
diff changeset
1621 STDMETHOD(GetPick)(THIS_ DWORD index, LPDIRECT3DRMVISUAL *, LPDIRECT3DRMFRAMEARRAY *, LPD3DRMPICKDESC2) PURE;
Ritor1
parents:
diff changeset
1622 };
Ritor1
parents:
diff changeset
1623
Ritor1
parents:
diff changeset
1624 #undef INTERFACE
Ritor1
parents:
diff changeset
1625 #define INTERFACE IDirect3DRMInterpolator
Ritor1
parents:
diff changeset
1626
Ritor1
parents:
diff changeset
1627 DECLARE_INTERFACE_(IDirect3DRMInterpolator, IDirect3DRMObject)
Ritor1
parents:
diff changeset
1628 {
Ritor1
parents:
diff changeset
1629 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1630 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
1631
Ritor1
parents:
diff changeset
1632 /*
Ritor1
parents:
diff changeset
1633 * IDirect3DRMInterpolator methods
Ritor1
parents:
diff changeset
1634 */
Ritor1
parents:
diff changeset
1635 STDMETHOD(AttachObject)(THIS_ LPDIRECT3DRMOBJECT) PURE;
Ritor1
parents:
diff changeset
1636 STDMETHOD(GetAttachedObjects)(THIS_ LPDIRECT3DRMOBJECTARRAY *) PURE;
Ritor1
parents:
diff changeset
1637 STDMETHOD(DetachObject)(THIS_ LPDIRECT3DRMOBJECT) PURE;
Ritor1
parents:
diff changeset
1638 STDMETHOD(SetIndex)(THIS_ D3DVALUE) PURE;
Ritor1
parents:
diff changeset
1639 STDMETHOD_(D3DVALUE, GetIndex)(THIS) PURE;
Ritor1
parents:
diff changeset
1640 STDMETHOD(Interpolate)(THIS_ D3DVALUE, LPDIRECT3DRMOBJECT, D3DRMINTERPOLATIONOPTIONS) PURE;
Ritor1
parents:
diff changeset
1641 };
Ritor1
parents:
diff changeset
1642
Ritor1
parents:
diff changeset
1643 #undef INTERFACE
Ritor1
parents:
diff changeset
1644 #define INTERFACE IDirect3DRMClippedVisual
Ritor1
parents:
diff changeset
1645
Ritor1
parents:
diff changeset
1646 DECLARE_INTERFACE_(IDirect3DRMClippedVisual, IDirect3DRMVisual)
Ritor1
parents:
diff changeset
1647 {
Ritor1
parents:
diff changeset
1648 IUNKNOWN_METHODS(PURE);
Ritor1
parents:
diff changeset
1649 IDIRECT3DRMOBJECT_METHODS(PURE);
Ritor1
parents:
diff changeset
1650
Ritor1
parents:
diff changeset
1651 /*
Ritor1
parents:
diff changeset
1652 * IDirect3DRMClippedVisual methods
Ritor1
parents:
diff changeset
1653 */
Ritor1
parents:
diff changeset
1654 STDMETHOD(Init) (THIS_ LPDIRECT3DRMVISUAL) PURE;
Ritor1
parents:
diff changeset
1655 STDMETHOD(AddPlane) (THIS_ LPDIRECT3DRMFRAME3, LPD3DVECTOR, LPD3DVECTOR, DWORD, LPDWORD) PURE;
Ritor1
parents:
diff changeset
1656 STDMETHOD(DeletePlane)(THIS_ DWORD, DWORD) PURE;
Ritor1
parents:
diff changeset
1657 STDMETHOD(GetPlaneIDs)(THIS_ LPDWORD, LPDWORD, DWORD) PURE;
Ritor1
parents:
diff changeset
1658 STDMETHOD(GetPlane) (THIS_ DWORD, LPDIRECT3DRMFRAME3, LPD3DVECTOR, LPD3DVECTOR, DWORD) PURE;
Ritor1
parents:
diff changeset
1659 STDMETHOD(SetPlane) (THIS_ DWORD, LPDIRECT3DRMFRAME3, LPD3DVECTOR, LPD3DVECTOR, DWORD) PURE;
Ritor1
parents:
diff changeset
1660 };
Ritor1
parents:
diff changeset
1661
Ritor1
parents:
diff changeset
1662 #ifdef __cplusplus
Ritor1
parents:
diff changeset
1663 };
Ritor1
parents:
diff changeset
1664 #endif
Ritor1
parents:
diff changeset
1665 #endif /* _D3DRMOBJ_H_ */
Ritor1
parents:
diff changeset
1666