1 | /*
|
---|
2 | * Copyright (C) 2008 Vijay Kiran Kamuju
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef __D3DRMOBJ_H__
|
---|
29 | #define __D3DRMOBJ_H__
|
---|
30 |
|
---|
31 | #include <objbase.h>
|
---|
32 | #define VIRTUAL
|
---|
33 | #include <d3drmdef.h>
|
---|
34 | #include <d3d.h>
|
---|
35 |
|
---|
36 | #ifdef __cplusplus
|
---|
37 | extern "C" {
|
---|
38 | #endif
|
---|
39 |
|
---|
40 | /*****************************************************************************
|
---|
41 | * Predeclare the interfaces
|
---|
42 | */
|
---|
43 |
|
---|
44 | DEFINE_GUID(IID_IDirect3DRMObject, 0xeb16cb00, 0xd271, 0x11ce, 0xac, 0x48, 0x00, 0x00, 0xc0, 0x38, 0x25, 0xa1);
|
---|
45 | DEFINE_GUID(IID_IDirect3DRMVisual, 0xeb16cb04, 0xd271, 0x11ce, 0xac, 0x48, 0x00, 0x00, 0xc0, 0x38, 0x25, 0xa1);
|
---|
46 |
|
---|
47 | typedef struct IDirect3DRMObject *LPDIRECT3DRMOBJECT, **LPLPDIRECT3DRMOBJECT;
|
---|
48 | typedef struct IDirect3DRMVisual *LPDIRECT3DRMVISUAL, **LPLPDIRECT3DRMVISUAL;
|
---|
49 |
|
---|
50 | /* ********************************************************************
|
---|
51 | Types and structures
|
---|
52 | ******************************************************************** */
|
---|
53 |
|
---|
54 | typedef void (__cdecl *D3DRMOBJECTCALLBACK)(LPDIRECT3DRMOBJECT obj, LPVOID arg);
|
---|
55 |
|
---|
56 | typedef struct _D3DRMPICKDESC
|
---|
57 | {
|
---|
58 | ULONG ulFaceIdx;
|
---|
59 | LONG lGroupIdx;
|
---|
60 | D3DVECTOR vPosition;
|
---|
61 | } D3DRMPICKDESC, *LPD3DRMPICKDESC;
|
---|
62 |
|
---|
63 | typedef struct _D3DRMPICKDESC2
|
---|
64 | {
|
---|
65 | ULONG ulFaceIdx;
|
---|
66 | LONG lGroupIdx;
|
---|
67 | D3DVECTOR vPosition;
|
---|
68 | D3DVALUE tu;
|
---|
69 | D3DVALUE tv;
|
---|
70 | D3DVECTOR dvNormal;
|
---|
71 | D3DCOLOR dcColor;
|
---|
72 | } D3DRMPICKDESC2, *LPD3DRMPICKDESC2;
|
---|
73 |
|
---|
74 | /*****************************************************************************
|
---|
75 | * IDirect3DRMObject interface
|
---|
76 | */
|
---|
77 | #ifdef WINE_NO_UNICODE_MACROS
|
---|
78 | #undef GetClassName
|
---|
79 | #endif
|
---|
80 | #define INTERFACE IDirect3DRMObject
|
---|
81 | DECLARE_INTERFACE_(IDirect3DRMObject,IUnknown)
|
---|
82 | {
|
---|
83 | /*** IUnknown methods ***/
|
---|
84 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
85 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
86 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
87 | /*** IDirect3DRMObject methods ***/
|
---|
88 | STDMETHOD(Clone)(THIS_ LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE;
|
---|
89 | STDMETHOD(AddDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) PURE;
|
---|
90 | STDMETHOD(DeleteDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) PURE;
|
---|
91 | STDMETHOD(SetAppData)(THIS_ DWORD data) PURE;
|
---|
92 | STDMETHOD_(DWORD, GetAppData)(THIS) PURE;
|
---|
93 | STDMETHOD(SetName)(THIS_ LPCSTR) PURE;
|
---|
94 | STDMETHOD(GetName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE;
|
---|
95 | STDMETHOD(GetClassName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE;
|
---|
96 | };
|
---|
97 | #undef INTERFACE
|
---|
98 |
|
---|
99 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
100 | /*** IUnknown methods ***/
|
---|
101 | #define IDirect3DRMObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
102 | #define IDirect3DRMObject_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
103 | #define IDirect3DRMObject_Release(p) (p)->lpVtbl->Release(p)
|
---|
104 | /*** IDirect3DRMObject methods ***/
|
---|
105 | #define IDirect3DRMObject_Clone(p,a,b,c) (p)->lpVtbl->Clone(p,a,b,c)
|
---|
106 | #define IDirect3DRMObject_AddDestroyCallback(p,a,b) (p)->lpVtbl->AddDestroyCallback(p,a,b)
|
---|
107 | #define IDirect3DRMObject_DeleteDestroyCallback(p,a,b) (p)->lpVtbl->DeleteDestroyCallback(p,a,b)
|
---|
108 | #define IDirect3DRMObject_SetAppData(p,a) (p)->lpVtbl->SetAppData(p,a)
|
---|
109 | #define IDirect3DRMObject_GetAppData(p) (p)->lpVtbl->GetAppData(p)
|
---|
110 | #define IDirect3DRMObject_SetName(p,a) (p)->lpVtbl->SetName(p,a)
|
---|
111 | #define IDirect3DRMObject_GetName(p,a,b) (p)->lpVtbl->GetName(p,a,b)
|
---|
112 | #define IDirect3DRMObject_GetClassName(p,a,b) (p)->lpVtbl->GetClassName(p,a,b)
|
---|
113 | #else
|
---|
114 | /*** IUnknown methods ***/
|
---|
115 | #define IDirect3DRMObject_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
116 | #define IDirect3DRMObject_AddRef(p) (p)->AddRef()
|
---|
117 | #define IDirect3DRMObject_Release(p) (p)->Release()
|
---|
118 | /*** IDirect3DRMObject methods ***/
|
---|
119 | #define IDirect3DRMObject_Clone(p,a,b,c) (p)->Clone(a,b,c)
|
---|
120 | #define IDirect3DRMObject_AddDestroyCallback(p,a,b) (p)->AddDestroyCallback(a,b)
|
---|
121 | #define IDirect3DRMObject_DeleteDestroyCallback(p,a,b) (p)->DeleteDestroyCallback(a,b)
|
---|
122 | #define IDirect3DRMObject_SetAppData(p,a) (p)->SetAppData(a)
|
---|
123 | #define IDirect3DRMObject_GetAppData(p) (p)->GetAppData()
|
---|
124 | #define IDirect3DRMObject_SetName(p,a) (p)->SetName(a)
|
---|
125 | #define IDirect3DRMObject_GetName(p,a,b) (p)->GetName(a,b)
|
---|
126 | #define IDirect3DRMObject_GetClassName(p,a,b) (p)->GetClassName(a,b)
|
---|
127 | #endif
|
---|
128 |
|
---|
129 | /*****************************************************************************
|
---|
130 | * IDirect3DRMVisual interface
|
---|
131 | */
|
---|
132 | #define INTERFACE IDirect3DRMVisual
|
---|
133 | DECLARE_INTERFACE_(IDirect3DRMVisual,IDirect3DRMObject)
|
---|
134 | {
|
---|
135 | /*** IUnknown methods ***/
|
---|
136 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
137 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
138 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
139 | /*** IDirect3DRMObject methods ***/
|
---|
140 | STDMETHOD(Clone)(THIS_ LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE;
|
---|
141 | STDMETHOD(AddDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) PURE;
|
---|
142 | STDMETHOD(DeleteDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) PURE;
|
---|
143 | STDMETHOD(SetAppData)(THIS_ DWORD data) PURE;
|
---|
144 | STDMETHOD_(DWORD, GetAppData)(THIS) PURE;
|
---|
145 | STDMETHOD(SetName)(THIS_ LPCSTR) PURE;
|
---|
146 | STDMETHOD(GetName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE;
|
---|
147 | STDMETHOD(GetClassName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE;
|
---|
148 | };
|
---|
149 | #undef INTERFACE
|
---|
150 |
|
---|
151 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
152 | /*** IUnknown methods ***/
|
---|
153 | #define IDirect3DRMVisual_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
154 | #define IDirect3DRMVisual_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
155 | #define IDirect3DRMVisual_Release(p) (p)->lpVtbl->Release(p)
|
---|
156 | /*** IDirect3DRMObject methods ***/
|
---|
157 | #define IDirect3DRMVisual_Clone(p,a,b,c) (p)->lpVtbl->Clone(p,a,b,c)
|
---|
158 | #define IDirect3DRMVisual_AddDestroyCallback(p,a,b) (p)->lpVtbl->AddDestroyCallback(p,a,b)
|
---|
159 | #define IDirect3DRMVisual_DeleteDestroyCallback(p,a,b) (p)->lpVtbl->DeleteDestroyCallback(p,a,b)
|
---|
160 | #define IDirect3DRMVisual_SetAppData(p,a) (p)->lpVtbl->SetAppData(p,a)
|
---|
161 | #define IDirect3DRMVisual_GetAppData(p) (p)->lpVtbl->GetAppData(p)
|
---|
162 | #define IDirect3DRMVisual_SetName(p,a) (p)->lpVtbl->SetName(p,a)
|
---|
163 | #define IDirect3DRMVisual_GetName(p,a,b) (p)->lpVtbl->GetName(p,a,b)
|
---|
164 | #define IDirect3DRMVisual_GetClassName(p,a,b) (p)->lpVtbl->GetClassName(p,a,b)
|
---|
165 | #else
|
---|
166 | /*** IUnknown methods ***/
|
---|
167 | #define IDirect3DRMVisual_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
168 | #define IDirect3DRMVisual_AddRef(p) (p)->AddRef()
|
---|
169 | #define IDirect3DRMVisual_Release(p) (p)->Release()
|
---|
170 | /*** IDirect3DRMObject methods ***/
|
---|
171 | #define IDirect3DRMVisual_Clone(p,a,b,c) (p)->Clone(a,b,c)
|
---|
172 | #define IDirect3DRMVisual_AddDestroyCallback(p,a,b) (p)->AddDestroyCallback(a,b)
|
---|
173 | #define IDirect3DRMVisual_DeleteDestroyCallback(p,a,b) (p)->DeleteDestroyCallback(a,b)
|
---|
174 | #define IDirect3DRMVisual_SetAppData(p,a) (p)->SetAppData(a)
|
---|
175 | #define IDirect3DRMVisual_GetAppData(p) (p)->GetAppData()
|
---|
176 | #define IDirect3DRMVisual_SetName(p,a) (p)->SetName(a)
|
---|
177 | #define IDirect3DRMVisual_GetName(p,a,b) (p)->GetName(a,b)
|
---|
178 | #define IDirect3DRMVisual_GetClassName(p,a,b) (p)->GetClassName(a,b)
|
---|
179 | #endif
|
---|
180 |
|
---|
181 | #ifdef __cplusplus
|
---|
182 | };
|
---|
183 | #endif
|
---|
184 |
|
---|
185 | #endif /* __D3DRMOBJ_H__ */
|
---|