VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/d3drmwin.h@ 96080

最後變更 在這個檔案從96080是 53206,由 vboxsync 提交於 10 年 前

Devices/vmsvga: header fixes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 5.3 KB
 
1/*
2 * Copyright (C) 2010 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 * Oracle 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, Oracle 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 __D3DRMWIN_H__
29#define __D3DRMWIN_H__
30
31#include <d3drm.h>
32#include <ddraw.h>
33#include <d3d.h>
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39/*****************************************************************************
40 * Direct3DRMWinDevice interface GUID
41 */
42
43DEFINE_GUID(IID_IDirect3DRMWinDevice, 0xc5016cc0, 0xd273, 0x11ce, 0xac, 0x48, 0x00, 0x00, 0xc0, 0x38, 0x25, 0xa1);
44
45typedef struct IDirect3DRMWinDevice *LPDIRECT3DRMWINDEVICE, **LPLPDIRECT3DRMWINDEVICE;
46
47/*****************************************************************************
48 * IDirect3DRMWinDevice interface
49 */
50#define INTERFACE IDirect3DRMWinDevice
51DECLARE_INTERFACE_(IDirect3DRMWinDevice,IDirect3DRMObject)
52{
53 /*** IUnknown methods ***/
54 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
55 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
56 STDMETHOD_(ULONG,Release)(THIS) PURE;
57 /*** IDirect3DRMObject methods ***/
58 STDMETHOD(Clone)(THIS_ IUnknown *outer, REFIID iid, void **out) PURE;
59 STDMETHOD(AddDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK cb, void *ctx) PURE;
60 STDMETHOD(DeleteDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK cb, void *ctx) PURE;
61 STDMETHOD(SetAppData)(THIS_ DWORD data) PURE;
62 STDMETHOD_(DWORD, GetAppData)(THIS) PURE;
63 STDMETHOD(SetName)(THIS_ const char *name) PURE;
64 STDMETHOD(GetName)(THIS_ DWORD *size, char *name) PURE;
65 STDMETHOD(GetClassName)(THIS_ DWORD *size, char *name) PURE;
66 /*** IDirect3DRMWinDevice methods ***/
67 STDMETHOD(HandlePaint)(THIS_ HDC) PURE;
68 STDMETHOD(HandleActivate)(THIS_ WORD) PURE;
69};
70#undef INTERFACE
71
72#if !defined(__cplusplus) || defined(CINTERFACE)
73/*** IUnknown methods ***/
74#define IDirect3DRMWinDevice_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
75#define IDirect3DRMWinDevice_AddRef(p) (p)->lpVtbl->AddRef(p)
76#define IDirect3DRMWinDevice_Release(p) (p)->lpVtbl->Release(p)
77/*** IDirect3DRMObject methods ***/
78#define IDirect3DRMWinDevice_Clone(p,a,b,c) (p)->lpVtbl->Clone(p,a,b,c)
79#define IDirect3DRMWinDevice_AddDestroyCallback(p,a,b) (p)->lpVtbl->AddDestroyCallback(p,a,b)
80#define IDirect3DRMWinDevice_DeleteDestroyCallback(p,a,b) (p)->lpVtbl->DeleteDestroyCallback(p,a,b)
81#define IDirect3DRMWinDevice_SetAppData(p,a) (p)->lpVtbl->SetAppData(p,a)
82#define IDirect3DRMWinDevice_GetAppData(p) (p)->lpVtbl->GetAppData(p)
83#define IDirect3DRMWinDevice_SetName(p,a) (p)->lpVtbl->SetName(p,a)
84#define IDirect3DRMWinDevice_GetName(p,a,b) (p)->lpVtbl->GetName(p,a,b)
85#define IDirect3DRMWinDevice_GetClassName(p,a,b) (p)->lpVtbl->GetClassName(p,a,b)
86/*** IDirect3DRMWinDevice methods ***/
87#define IDirect3DRMWinDevice_HandlePaint(p,a) (p)->lpVtbl->HandlePaint(p,a)
88#define IDirect3DRMWinDevice_HandleActivate(p,a) (p)->lpVtbl->HandleActivate(p,a)
89#else
90/*** IUnknown methods ***/
91#define IDirect3DRMWinDevice_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
92#define IDirect3DRMWinDevice_AddRef(p) (p)->AddRef()
93#define IDirect3DRMwinDevice_Release(p) (p)->Release()
94/*** IDirect3DRMObject methods ***/
95#define IDirect3DRMWinDevice_Clone(p,a,b,c) (p)->Clone(a,b,c)
96#define IDirect3DRMWinDevice_AddDestroyCallback(p,a,b) (p)->AddDestroyCallback(a,b)
97#define IDirect3DRMWinDevice_DeleteDestroyCallback(p,a,b) (p)->DeleteDestroyCallback(a,b)
98#define IDirect3DRMWinDevice_SetAppData(p,a) (p)->SetAppData(a)
99#define IDirect3DRMWinDevice_GetAppData(p) (p)->GetAppData()
100#define IDirect3DRMWinDevice_SetName(p,a) (p)->SetName(a)
101#define IDirect3DRMWinDevice_GetName(p,a,b) (p)->GetName(a,b)
102#define IDirect3DRMWinDevice_GetClassName(p,a,b) (p)->GetClassName(a,b)
103/*** IDirect3DRMWinDevice methods ***/
104#define IDirect3DRMWinDevice_HandlePaint(p,a) (p)->HandlePaint(a)
105#define IDirect3DRMWinDevice_HandleActivate(p,a) (p)->HandleActivate(a)
106#endif
107
108#ifdef __cplusplus
109}
110#endif
111
112#endif /* __D3DRMWIN_H__ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette