]> git.cworth.org Git - apitrace/blob - specs/d2dbasetypes.py
Use skiplist-based FastCallSet within trace::CallSet
[apitrace] / specs / d2dbasetypes.py
1 ##########################################################################
2 #
3 # Copyright 2011 Jose Fonseca
4 # All Rights Reserved.
5 #
6 # Permission is hereby granted, free of charge, to any person obtaining a copy
7 # of this software and associated documentation files (the "Software"), to deal
8 # in the Software without restriction, including without limitation the rights
9 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 # copies of the Software, and to permit persons to whom the Software is
11 # furnished to do so, subject to the following conditions:
12 #
13 # The above copyright notice and this permission notice shall be included in
14 # all copies or substantial portions of the Software.
15 #
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 # THE SOFTWARE.
23 #
24 ##########################################################################/
25
26
27 from winapi import *
28
29
30 D3DCOLORVALUE = Struct("D3DCOLORVALUE", [
31     (FLOAT, "r"),
32     (FLOAT, "g"),
33     (FLOAT, "b"),
34     (FLOAT, "a"),
35 ])
36
37 D2D_POINT_2U = Struct("D2D_POINT_2U", [
38     (UINT32, "x"),
39     (UINT32, "y"),
40 ])
41
42 D2D_POINT_2F = Struct("D2D_POINT_2F", [
43     (FLOAT, "x"),
44     (FLOAT, "y"),
45 ])
46
47 D2D_RECT_F = Struct("D2D_RECT_F", [
48     (FLOAT, "left"),
49     (FLOAT, "top"),
50     (FLOAT, "right"),
51     (FLOAT, "bottom"),
52 ])
53
54 D2D_RECT_U = Struct("D2D_RECT_U", [
55     (UINT32, "left"),
56     (UINT32, "top"),
57     (UINT32, "right"),
58     (UINT32, "bottom"),
59 ])
60
61 D2D_SIZE_F = Struct("D2D_SIZE_F", [
62     (FLOAT, "width"),
63     (FLOAT, "height"),
64 ])
65
66 D2D_SIZE_U = Struct("D2D_SIZE_U", [
67     (UINT32, "width"),
68     (UINT32, "height"),
69 ])
70
71 D2D_COLOR_F = Alias("D2D_COLOR_F", D3DCOLORVALUE)
72 D2D_MATRIX_3X2_F = Struct("D2D_MATRIX_3X2_F", [
73     (FLOAT, "_11"),
74     (FLOAT, "_12"),
75     (FLOAT, "_21"),
76     (FLOAT, "_22"),
77     (FLOAT, "_31"),
78     (FLOAT, "_32"),
79 ])
80