d2d1_1.h: Add C declaration for ID2D1Bitmap1
Signed-off-by: ‡Ruslan Garipov <ruslanngaripov@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
diff --git a/mingw-w64-headers/include/d2d1_1.h b/mingw-w64-headers/include/d2d1_1.h
index f48ac34..747ab68 100644
--- a/mingw-w64-headers/include/d2d1_1.h
+++ b/mingw-w64-headers/include/d2d1_1.h
@@ -564,8 +564,21 @@
#else
typedef interface ID2D1Bitmap1 ID2D1Bitmap1;
-/* FIXME: Add full C declaration */
+typedef struct ID2D1Bitmap1Vtbl {
+ ID2D1BitmapVtbl Base;
+
+ STDMETHOD_(void, GetColorContext)(ID2D1Bitmap1 *This, ID2D1ColorContext **colorContext) PURE;
+ STDMETHOD_(D2D1_BITMAP_OPTIONS, GetOptions)(ID2D1Bitmap1 *This) PURE;
+ STDMETHOD(GetSurface)(ID2D1Bitmap1 *This, IDXGISurface **dxgiSurface) PURE;
+ STDMETHOD(Map)(ID2D1Bitmap1 *This, D2D1_MAP_OPTIONS options, D2D1_MAPPED_RECT *mappedRect) PURE;
+ STDMETHOD(Unmap)(ID2D1Bitmap1 *This) PURE;
+}
+ID2D1Bitmap1Vtbl;
+
+interface ID2D1Bitmap1 {
+ const ID2D1Bitmap1Vtbl *lpVtbl;
+};
#endif
DEFINE_GUID(IID_ID2D1Bitmap1, 0xa898a84c,0x3873,0x4588,0xb0,0x8b,0xeb,0xbf,0x97,0x8d,0xf0,0x41);