wined3d: Introduce wined3d_texture_get_sub_resource_parent().
[wine.git] / include / dcommon.h
blob56445a36d87ff26232e8ad9e35da06b85772b234
1 /*
2 * Copyright 2012 Nikolay Sivov 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_DCOMMON_H
20 #define __WINE_DCOMMON_H
22 #include "dxgiformat.h"
24 typedef enum DWRITE_MEASURING_MODE
26 DWRITE_MEASURING_MODE_NATURAL,
27 DWRITE_MEASURING_MODE_GDI_CLASSIC,
28 DWRITE_MEASURING_MODE_GDI_NATURAL
29 } DWRITE_MEASURING_MODE;
31 typedef enum D2D1_ALPHA_MODE
33 D2D1_ALPHA_MODE_UNKNOWN = 0,
34 D2D1_ALPHA_MODE_PREMULTIPLIED = 1,
35 D2D1_ALPHA_MODE_STRAIGHT = 2,
36 D2D1_ALPHA_MODE_IGNORE = 3,
37 D2D1_ALPHA_MODE_FORCE_DWORD = 0xffffffff,
38 } D2D1_ALPHA_MODE;
40 typedef struct D2D1_PIXEL_FORMAT
42 DXGI_FORMAT format;
43 D2D1_ALPHA_MODE alphaMode;
44 } D2D1_PIXEL_FORMAT;
46 #endif /* __WINE_DCOMMON_H */