Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3c759894
Commit
3c759894
authored
Aug 30, 2013
by
Michael Müller
Committed by
Alexandre Julliard
Sep 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Add headers for IDirect3DSwapChain9Ex interface.
parent
8aa205fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
8 deletions
+79
-8
d3d9.h
include/d3d9.h
+69
-8
d3d9types.h
include/d3d9types.h
+10
-0
No files found.
include/d3d9.h
View file @
3c759894
...
@@ -394,17 +394,17 @@ DECLARE_INTERFACE_(IDirect3DVolume9,IUnknown)
...
@@ -394,17 +394,17 @@ DECLARE_INTERFACE_(IDirect3DVolume9,IUnknown)
DECLARE_INTERFACE_
(
IDirect3DSwapChain9
,
IUnknown
)
DECLARE_INTERFACE_
(
IDirect3DSwapChain9
,
IUnknown
)
{
{
/*** IUnknown methods ***/
/*** IUnknown methods ***/
STDMETHOD_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DSwapChain9 methods ***/
/*** IDirect3DSwapChain9 methods ***/
STDMETHOD
(
Present
)(
THIS_
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
Present
)(
THIS_
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
GetFrontBufferData
)(
THIS_
struct
IDirect3DSurface9
*
pDestSurface
)
PURE
;
STDMETHOD
(
GetFrontBufferData
)(
THIS_
struct
IDirect3DSurface9
*
pDestSurface
)
PURE
;
STDMETHOD
(
GetBackBuffer
)(
THIS_
UINT
iBackBuffer
,
D3DBACKBUFFER_TYPE
Type
,
struct
IDirect3DSurface9
**
ppBackBuffer
)
PURE
;
STDMETHOD
(
GetBackBuffer
)(
THIS_
UINT
iBackBuffer
,
D3DBACKBUFFER_TYPE
Type
,
struct
IDirect3DSurface9
**
ppBackBuffer
)
PURE
;
STDMETHOD
(
GetRasterStatus
)(
THIS_
D3DRASTER_STATUS
*
pRasterStatus
)
PURE
;
STDMETHOD
(
GetRasterStatus
)(
THIS_
D3DRASTER_STATUS
*
pRasterStatus
)
PURE
;
STDMETHOD
(
GetDisplayMode
)(
THIS_
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD
(
GetDisplayMode
)(
THIS_
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetPresentParameters
)(
THIS_
D3DPRESENT_PARAMETERS
*
pPresentationParameters
)
PURE
;
STDMETHOD
(
GetPresentParameters
)(
THIS_
D3DPRESENT_PARAMETERS
*
pPresentationParameters
)
PURE
;
};
};
#undef INTERFACE
#undef INTERFACE
...
@@ -437,6 +437,67 @@ DECLARE_INTERFACE_(IDirect3DSwapChain9,IUnknown)
...
@@ -437,6 +437,67 @@ DECLARE_INTERFACE_(IDirect3DSwapChain9,IUnknown)
#endif
#endif
/*****************************************************************************
/*****************************************************************************
* IDirect3DSwapChain9Ex interface
*/
#define INTERFACE IDirect3DSwapChain9Ex
DECLARE_INTERFACE_
(
IDirect3DSwapChain9Ex
,
IDirect3DSwapChain9
)
{
/*** IUnknown methods ***/
STDMETHOD_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DSwapChain9 methods ***/
STDMETHOD
(
Present
)(
THIS_
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
GetFrontBufferData
)(
THIS_
struct
IDirect3DSurface9
*
pDestSurface
)
PURE
;
STDMETHOD
(
GetBackBuffer
)(
THIS_
UINT
iBackBuffer
,
D3DBACKBUFFER_TYPE
Type
,
struct
IDirect3DSurface9
**
ppBackBuffer
)
PURE
;
STDMETHOD
(
GetRasterStatus
)(
THIS_
D3DRASTER_STATUS
*
pRasterStatus
)
PURE
;
STDMETHOD
(
GetDisplayMode
)(
THIS_
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetPresentParameters
)(
THIS_
D3DPRESENT_PARAMETERS
*
pPresentationParameters
)
PURE
;
/*** IDirect3DSwapChain9Ex methods ***/
STDMETHOD
(
GetLastPresentCount
)(
THIS_
UINT
*
pLastPresentCount
)
PURE
;
STDMETHOD
(
GetPresentStats
)(
THIS_
D3DPRESENTSTATS
*
pPresentationStatistics
)
PURE
;
STDMETHOD
(
GetDisplayModeEx
)(
THIS_
D3DDISPLAYMODEEX
*
pMode
,
D3DDISPLAYROTATION
*
pRotation
)
PURE
;
};
#undef INTERFACE
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
#define IDirect3DSwapChain9Ex_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IDirect3DSwapChain9Ex_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IDirect3DSwapChain9Ex_Release(p) (p)->lpVtbl->Release(p)
/*** IDirect3DSwapChain9 methods ***/
#define IDirect3DSwapChain9Ex_Present(p,a,b,c,d,e) (p)->lpVtbl->Present(p,a,b,c,d,e)
#define IDirect3DSwapChain9Ex_GetFrontBufferData(p,a) (p)->lpVtbl->GetFrontBufferData(p,a)
#define IDirect3DSwapChain9EX_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)
#define IDirect3DSwapChain9EX_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a)
#define IDirect3DSwapChain9Ex_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
#define IDirect3DSwapChain9Ex_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
#define IDirect3DSwapChain9Ex_GetPresentParameters(p,a) (p)->lpVtbl->GetPresentParameters(p,a)
/*** IDirect3DSwapChain9Ex methods ***/
#define IDirect3DSwapChain9Ex_GetLastPresentCount(p,a) (p)->lpVtbl->GetLastPresentCount(p,a)
#define IDirect3DSwapChain9Ex_GetPresentStats(p,a) (p)->lpVtbl->GetPresentStats(p,a)
#define IDirect3DSwapChain9Ex_GetDisplayModeEx(p,a,b) (p)->lpVtbl->GetDisplayModeEx(p,a,b)
#else
/*** IUnknown methods ***/
#define IDirect3DSwapChain9Ex_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
#define IDirect3DSwapChain9Ex_AddRef(p) (p)->AddRef()
#define IDirect3DSwapChain9Ex_Release(p) (p)->Release()
/*** IDirect3DSwapChain9 methods ***/
#define IDirect3DSwapChain9Ex_Present(p,a,b,c,d,e) (p)->Present(a,b,c,d,e)
#define IDirect3DSwapChain9Ex_GetFrontBufferData(p,a) (p)->GetFrontBufferData(a)
#define IDirect3DSwapChain9Ex_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c)
#define IDirect3DSwapChain9Ex_GetRasterStatus(p,a) (p)->GetRasterStatus(a)
#define IDirect3DSwapChain9Ex_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
#define IDirect3DSwapChain9Ex_GetDevice(p,a) (p)->GetDevice(a)
#define IDirect3DSwapChain9Ex_GetPresentParameters(p,a) (p)->GetPresentParameters(a)
/*** IDirect3DSwapChain9Ex methods ***/
#define IDirect3DSwapChain9Ex_GetLastPresentCount(p,a) (p)->GetLastPresentCount(a)
#define IDirect3DSwapChain9Ex_GetPresentStats(p,a) (p)->GetPresentStats(a)
#define IDirect3DSwapChain9Ex_GetDisplayModeEx(p,a,b) (p)->GetDisplayModeEx(a,b)
#endif
/*****************************************************************************
* IDirect3DResource9 interface
* IDirect3DResource9 interface
*/
*/
#define INTERFACE IDirect3DResource9
#define INTERFACE IDirect3DResource9
...
...
include/d3d9types.h
View file @
3c759894
...
@@ -1559,6 +1559,16 @@ typedef enum _D3DCOMPOSERECTSOP{
...
@@ -1559,6 +1559,16 @@ typedef enum _D3DCOMPOSERECTSOP{
D3DCOMPOSERECTS_NEG
,
D3DCOMPOSERECTS_NEG
,
D3DCOMPOSERECTS_FORCE_DWORD
=
0x7fffffff
D3DCOMPOSERECTS_FORCE_DWORD
=
0x7fffffff
}
D3DCOMPOSERECTSOP
;
}
D3DCOMPOSERECTSOP
;
typedef
struct
_D3DPRESENTSTATS
{
UINT
PresentCount
;
UINT
PresentRefreshCount
;
UINT
SyncRefreshCount
;
LARGE_INTEGER
SyncQPCTime
;
LARGE_INTEGER
SyncGPUTime
;
}
D3DPRESENTSTATS
;
#endif
/* D3D_DISABLE_9EX */
#endif
/* D3D_DISABLE_9EX */
typedef
enum
_D3DSHADER_COMPARISON
typedef
enum
_D3DSHADER_COMPARISON
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment