Subversion Repositories Kolibri OS

Rev

Rev 878 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
808 serge 1
 
877 serge 2
#define PX_DESTROY             2
3
#define PX_CLEAR               3
879 serge 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
808 serge 11
 
868 serge 12
 
877 serge 13
 
808 serge 14
15
 
16
{
17
  int x;
876 serge 18
  int y;
19
}pt_t;
20
817 serge 21
 
876 serge 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
  unsigned  pitch;
47
  void      *mapped;
48
  u32_t     handle;
49
}pixmap_t;
50
51
 
52
 
53
{
54
  unsigned  width;
55
  unsigned  height;
56
  u32_t     format;
57
  u32_t     flags;
58
59
 
60
  void      *mapped;
61
62
 
63
  void      *local;
64
}local_pixmap_t;
65
66
 
67
 
68
69
 
70
{
71
  local_pixmap_t  *dstpix;
72
73
 
879 serge 74
}io_clear_t;
75
76
 
77
{
78
  local_pixmap_t  *dstpix;
79
80
 
876 serge 81
  {
82
    int x0;
83
    int y0;
84
  };
85
  union
86
  {
87
    struct
88
    {
89
      int x1;
90
      int y1;
91
    };
92
    struct
93
    {
94
      int w;
95
      int h;
96
    };
97
  };
98
  color_t color;
817 serge 99
  color_t border;
878 serge 100
}io_draw_t;
879 serge 101
808 serge 102
 
103
{
104
  local_pixmap_t  *dstpix;
876 serge 105
817 serge 106
 
808 serge 107
  int y;
108
  int w;
109
  int h;
110
111
 
112
  color_t fcolor;
113
114
 
115
  u32_t   bmp1;
116
  color_t border;
879 serge 117
}io_fill_t;
118
808 serge 119
 
120
{
121
  local_pixmap_t  *dstpix;
876 serge 122
  int        dst_x;
817 serge 123
  int        dst_y;
124
815 serge 125
 
876 serge 126
  int        src_x;
817 serge 127
  int        src_y;
128
  int        w;
129
  int        h;
130
815 serge 131
 
879 serge 132
}io_blit_t;
133
815 serge 134
 
808 serge 135
 
879 serge 136
808 serge 137
 
879 serge 138
808 serge 139
 
879 serge 140
813 serge 141
 
879 serge 142
813 serge 143
 
879 serge 144
815 serge 145
 
879 serge 146
817 serge 147
 
879 serge 148
808 serge 149
 
879 serge 150