Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1029 serge 1
 
2
#define PX_DESTROY             2
3
#define PX_CLEAR               3
4
#define PX_DRAW_RECT           4
5
#define PX_FILL_RECT           5
6
#define PX_LINE                6
7
#define PX_BLIT                7
8
#define PX_BLIT_TRANSPARENT    8
9
#define PX_BLIT_ALPHA          9
10
11
 
12
 
13
 
14
15
 
16
{
17
  int x;
18
  int y;
19
}pt_t;
20
21
 
22
23
 
24
{
25
  int xmin;
26
  int ymin;
27
  int xmax;
28
  int ymax;
29
}clip_t, *PTRclip;
30
31
 
32
#define CLIP_BOTTOM       2
33
#define CLIP_RIGHT        4
34
#define CLIP_LEFT         8
35
36
 
37
38
 
39
40
 
41
{
42
  unsigned   width;
43
  unsigned   height;
44
  u32_t      format;
45
  u32_t      flags;
46
  size_t     pitch;
47
  void      *mapped;
48
49
 
50
}pixmap_t;
51
52
 
53
 
54
{
55
  unsigned   width;
56
  unsigned   height;
57
  u32_t      format;
58
  u32_t      flags;
59
  size_t     pitch;
60
  void      *mapped;
61
62
 
63
  addr_t    local;
64
}local_pixmap_t;
65
66
 
67
#define  PX_MEM_LOCAL     1
68
#define  PX_MEM_GART      2
69
70
 
71
72
 
73
74
 
75
{
76
  local_pixmap_t  *dstpix;
77
78
 
79
}io_clear_t;
80
81
 
82
{
83
  local_pixmap_t  *dstpix;
84
85
 
86
  {
87
    int x0;
88
    int y0;
89
  };
90
  union
91
  {
92
    struct
93
    {
94
      int x1;
95
      int y1;
96
    };
97
    struct
98
    {
99
      int w;
100
      int h;
101
    };
102
  };
103
  color_t color;
104
  color_t border;
105
}io_draw_t;
106
107
 
108
{
109
  local_pixmap_t  *dstpix;
110
111
 
112
  int y;
113
  int w;
114
  int h;
115
116
 
117
  color_t fcolor;
118
119
 
120
  u32_t   bmp1;
121
  color_t border;
122
}io_fill_t;
123
124
 
125
{
126
  local_pixmap_t  *dstpix;
127
  int        dst_x;
128
  int        dst_y;
129
130
 
131
  int        src_x;
132
  int        src_y;
133
  int        w;
134
  int        h;
135
136
 
137
    color_t    key;
138
    color_t    alpha;
139
  };
140
}io_blit_t;
141
142
 
143
 
144
145
 
146
 
147
148
 
149
150
 
151
152
 
153
154
 
155
156
 
157
158
 
159
160
 
161