Henri Verbeet : dxgi: Add the IDXGISurface interface.
Alexandre Julliard
julliard at winehq.org
Sat Oct 18 13:38:19 CDT 2008
Module: wine
Branch: master
Commit: 9cdbffcce4c6e5c5d374dca642941adbc4d6978c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9cdbffcce4c6e5c5d374dca642941adbc4d6978c
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Fri Oct 17 15:09:45 2008 +0200
dxgi: Add the IDXGISurface interface.
---
include/dxgi.idl | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/include/dxgi.idl b/include/dxgi.idl
index e82c5be..7c7a3e9 100644
--- a/include/dxgi.idl
+++ b/include/dxgi.idl
@@ -18,6 +18,18 @@
import "dxgitype.idl";
+typedef struct DXGI_SURFACE_DESC {
+ UINT Width;
+ UINT Height;
+ DXGI_FORMAT Format;
+ DXGI_SAMPLE_DESC SampleDesc;
+} DXGI_SURFACE_DESC;
+
+typedef struct DXGI_MAPPED_RECT {
+ INT Pitch;
+ BYTE *pBits;
+} DXGI_MAPPED_RECT;
+
[
object,
local,
@@ -57,3 +69,21 @@ interface IDXGIDeviceSubObject : IDXGIObject
[out] void **device
);
}
+
+[
+ object,
+ local,
+ uuid(cafcb56c-6ac3-4889-bf47-9e23bbd260ec)
+]
+interface IDXGISurface : IDXGIDeviceSubObject
+{
+ HRESULT GetDesc(
+ [out] DXGI_SURFACE_DESC *desc
+ );
+ HRESULT Map(
+ [out] DXGI_MAPPED_RECT *mapped_rect,
+ [in] UINT flags
+ );
+ HRESULT Unmap(
+ );
+}
More information about the wine-cvs
mailing list