2 * Copyright 2014 Henri Verbeet for CodeWeavers
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 __WINE_D2D1_PRIVATE_H
20 #define __WINE_D2D1_PRIVATE_H
22 #include "wine/debug.h"
31 unsigned int stack_size
;
33 D2D1_RECT_F clip_rect
;
36 struct d2d_d3d_render_target
38 ID2D1RenderTarget ID2D1RenderTarget_iface
;
42 ID3D10RenderTargetView
*view
;
43 ID3D10StateBlock
*stateblock
;
45 ID3D10InputLayout
*clear_il
;
46 unsigned int clear_vb_stride
;
47 ID3D10Buffer
*clear_vb
;
48 ID3D10VertexShader
*clear_vs
;
49 ID3D10PixelShader
*clear_ps
;
50 ID3D10RasterizerState
*clear_rs
;
52 D2D1_SIZE_U pixel_size
;
53 D2D1_MATRIX_3X2_F transform
;
54 struct d2d_clip_stack clip_stack
;
59 HRESULT
d2d_d3d_render_target_init(struct d2d_d3d_render_target
*render_target
, ID2D1Factory
*factory
,
60 IDXGISurface
*surface
, const D2D1_RENDER_TARGET_PROPERTIES
*desc
) DECLSPEC_HIDDEN
;
64 ID2D1GradientStopCollection ID2D1GradientStopCollection_iface
;
68 void d2d_gradient_init(struct d2d_gradient
*gradient
, ID2D1RenderTarget
*render_target
,
69 const D2D1_GRADIENT_STOP
*stops
, UINT32 stop_count
, D2D1_GAMMA gamma
,
70 D2D1_EXTEND_MODE extend_mode
) DECLSPEC_HIDDEN
;
74 ID2D1Brush ID2D1Brush_iface
;
78 void d2d_solid_color_brush_init(struct d2d_brush
*brush
, ID2D1RenderTarget
*render_target
,
79 const D2D1_COLOR_F
*color
, const D2D1_BRUSH_PROPERTIES
*desc
) DECLSPEC_HIDDEN
;
80 void d2d_linear_gradient_brush_init(struct d2d_brush
*brush
, ID2D1RenderTarget
*render_target
,
81 const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES
*gradient_brush_desc
, const D2D1_BRUSH_PROPERTIES
*brush_desc
,
82 ID2D1GradientStopCollection
*gradient
) DECLSPEC_HIDDEN
;
84 struct d2d_stroke_style
86 ID2D1StrokeStyle ID2D1StrokeStyle_iface
;
90 void d2d_stroke_style_init(struct d2d_stroke_style
*style
, ID2D1Factory
*factory
,
91 const D2D1_STROKE_STYLE_PROPERTIES
*desc
, const float *dashes
, UINT32 dash_count
) DECLSPEC_HIDDEN
;
93 #endif /* __WINE_D2D1_PRIVATE_H */