comctl32/listview: Convert forwarded header notifications to ANSI if NFR_ANSI is...
[wine.git] / include / d3drmobj.h
blobab37ebc9a15f2afa6b862590d1581b468fb7cb52
1 /*
2 * Copyright (C) 2008 Vijay Kiran Kamuju
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.
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.
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
19 #ifndef __D3DRMOBJ_H__
20 #define __D3DRMOBJ_H__
22 #include <objbase.h>
23 #define VIRTUAL
24 #include <d3drmdef.h>
25 #include <d3d.h>
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
31 /*****************************************************************************
32 * Predeclare the interfaces
35 DEFINE_GUID(IID_IDirect3DRMObject, 0xeb16cb00, 0xd271, 0x11ce, 0xac, 0x48, 0x00, 0x00, 0xc0, 0x38, 0x25, 0xa1);
36 DEFINE_GUID(IID_IDirect3DRMVisual, 0xeb16cb04, 0xd271, 0x11ce, 0xac, 0x48, 0x00, 0x00, 0xc0, 0x38, 0x25, 0xa1);
38 typedef struct IDirect3DRMObject *LPDIRECT3DRMOBJECT, **LPLPDIRECT3DRMOBJECT;
39 typedef struct IDirect3DRMVisual *LPDIRECT3DRMVISUAL, **LPLPDIRECT3DRMVISUAL;
41 /* ********************************************************************
42 Types and structures
43 ******************************************************************** */
45 typedef void (__cdecl *D3DRMOBJECTCALLBACK)(LPDIRECT3DRMOBJECT obj, LPVOID arg);
47 typedef struct _D3DRMPICKDESC
49 ULONG ulFaceIdx;
50 LONG lGroupIdx;
51 D3DVECTOR vPosition;
52 } D3DRMPICKDESC, *LPD3DRMPICKDESC;
54 typedef struct _D3DRMPICKDESC2
56 ULONG ulFaceIdx;
57 LONG lGroupIdx;
58 D3DVECTOR vPosition;
59 D3DVALUE tu;
60 D3DVALUE tv;
61 D3DVECTOR dvNormal;
62 D3DCOLOR dcColor;
63 } D3DRMPICKDESC2, *LPD3DRMPICKDESC2;
65 /*****************************************************************************
66 * IDirect3DRMObject interface
68 #ifdef WINE_NO_UNICODE_MACROS
69 #undef GetClassName
70 #endif
71 #define INTERFACE IDirect3DRMObject
72 DECLARE_INTERFACE_(IDirect3DRMObject,IUnknown)
74 /*** IUnknown methods ***/
75 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
76 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
77 STDMETHOD_(ULONG,Release)(THIS) PURE;
78 /*** IDirect3DRMObject methods ***/
79 STDMETHOD(Clone)(THIS_ LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE;
80 STDMETHOD(AddDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) PURE;
81 STDMETHOD(DeleteDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) PURE;
82 STDMETHOD(SetAppData)(THIS_ DWORD data) PURE;
83 STDMETHOD_(DWORD, GetAppData)(THIS) PURE;
84 STDMETHOD(SetName)(THIS_ LPCSTR) PURE;
85 STDMETHOD(GetName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE;
86 STDMETHOD(GetClassName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE;
88 #undef INTERFACE
90 #if !defined(__cplusplus) || defined(CINTERFACE)
91 /*** IUnknown methods ***/
92 #define IDirect3DRMObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
93 #define IDirect3DRMObject_AddRef(p) (p)->lpVtbl->AddRef(p)
94 #define IDirect3DRMObject_Release(p) (p)->lpVtbl->Release(p)
95 /*** IDirect3DRMObject methods ***/
96 #define IDirect3DRMObject_Clone(p,a,b,c) (p)->lpVtbl->Clone(p,a,b,c)
97 #define IDirect3DRMObject_AddDestroyCallback(p,a,b) (p)->lpVtbl->AddDestroyCallback(p,a,b)
98 #define IDirect3DRMObject_DeleteDestroyCallback(p,a,b) (p)->lpVtbl->DeleteDestroyCallback(p,a,b)
99 #define IDirect3DRMObject_SetAppData(p,a) (p)->lpVtbl->SetAppData(p,a)
100 #define IDirect3DRMObject_GetAppData(p) (p)->lpVtbl->GetAppData(p)
101 #define IDirect3DRMObject_SetName(p,a) (p)->lpVtbl->SetName(p,a)
102 #define IDirect3DRMObject_GetName(p,a,b) (p)->lpVtbl->GetName(p,a,b)
103 #define IDirect3DRMObject_GetClassName(p,a,b) (p)->lpVtbl->GetClassName(p,a,b)
104 #else
105 /*** IUnknown methods ***/
106 #define IDirect3DRMObject_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
107 #define IDirect3DRMObject_AddRef(p) (p)->AddRef()
108 #define IDirect3DRMObject_Release(p) (p)->Release()
109 /*** IDirect3DRMObject methods ***/
110 #define IDirect3DRMObject_Clone(p,a,b,c) (p)->Clone(a,b,c)
111 #define IDirect3DRMObject_AddDestroyCallback(p,a,b) (p)->AddDestroyCallback(a,b)
112 #define IDirect3DRMObject_DeleteDestroyCallback(p,a,b) (p)->DeleteDestroyCallback(a,b)
113 #define IDirect3DRMObject_SetAppData(p,a) (p)->SetAppData(a)
114 #define IDirect3DRMObject_GetAppData(p) (p)->GetAppData()
115 #define IDirect3DRMObject_SetName(p,a) (p)->SetName(a)
116 #define IDirect3DRMObject_GetName(p,a,b) (p)->GetName(a,b)
117 #define IDirect3DRMObject_GetClassName(p,a,b) (p)->GetClassName(a,b)
118 #endif
120 /*****************************************************************************
121 * IDirect3DRMVisual interface
123 #define INTERFACE IDirect3DRMVisual
124 DECLARE_INTERFACE_(IDirect3DRMVisual,IDirect3DRMObject)
126 /*** IUnknown methods ***/
127 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
128 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
129 STDMETHOD_(ULONG,Release)(THIS) PURE;
130 /*** IDirect3DRMObject methods ***/
131 STDMETHOD(Clone)(THIS_ LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE;
132 STDMETHOD(AddDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) PURE;
133 STDMETHOD(DeleteDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) PURE;
134 STDMETHOD(SetAppData)(THIS_ DWORD data) PURE;
135 STDMETHOD_(DWORD, GetAppData)(THIS) PURE;
136 STDMETHOD(SetName)(THIS_ LPCSTR) PURE;
137 STDMETHOD(GetName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE;
138 STDMETHOD(GetClassName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE;
140 #undef INTERFACE
142 #if !defined(__cplusplus) || defined(CINTERFACE)
143 /*** IUnknown methods ***/
144 #define IDirect3DRMVisual_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
145 #define IDirect3DRMVisual_AddRef(p) (p)->lpVtbl->AddRef(p)
146 #define IDirect3DRMVisual_Release(p) (p)->lpVtbl->Release(p)
147 /*** IDirect3DRMObject methods ***/
148 #define IDirect3DRMVisual_Clone(p,a,b,c) (p)->lpVtbl->Clone(p,a,b,c)
149 #define IDirect3DRMVisual_AddDestroyCallback(p,a,b) (p)->lpVtbl->AddDestroyCallback(p,a,b)
150 #define IDirect3DRMVisual_DeleteDestroyCallback(p,a,b) (p)->lpVtbl->DeleteDestroyCallback(p,a,b)
151 #define IDirect3DRMVisual_SetAppData(p,a) (p)->lpVtbl->SetAppData(p,a)
152 #define IDirect3DRMVisual_GetAppData(p) (p)->lpVtbl->GetAppData(p)
153 #define IDirect3DRMVisual_SetName(p,a) (p)->lpVtbl->SetName(p,a)
154 #define IDirect3DRMVisual_GetName(p,a,b) (p)->lpVtbl->GetName(p,a,b)
155 #define IDirect3DRMVisual_GetClassName(p,a,b) (p)->lpVtbl->GetClassName(p,a,b)
156 #else
157 /*** IUnknown methods ***/
158 #define IDirect3DRMVisual_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
159 #define IDirect3DRMVisual_AddRef(p) (p)->AddRef()
160 #define IDirect3DRMVisual_Release(p) (p)->Release()
161 /*** IDirect3DRMObject methods ***/
162 #define IDirect3DRMVisual_Clone(p,a,b,c) (p)->Clone(a,b,c)
163 #define IDirect3DRMVisual_AddDestroyCallback(p,a,b) (p)->AddDestroyCallback(a,b)
164 #define IDirect3DRMVisual_DeleteDestroyCallback(p,a,b) (p)->DeleteDestroyCallback(a,b)
165 #define IDirect3DRMVisual_SetAppData(p,a) (p)->SetAppData(a)
166 #define IDirect3DRMVisual_GetAppData(p) (p)->GetAppData()
167 #define IDirect3DRMVisual_SetName(p,a) (p)->SetName(a)
168 #define IDirect3DRMVisual_GetName(p,a,b) (p)->GetName(a,b)
169 #define IDirect3DRMVisual_GetClassName(p,a,b) (p)->GetClassName(a,b)
170 #endif
172 #ifdef __cplusplus
174 #endif
176 #endif /* __D3DRMOBJ_H__ */