Subversion Repositories Kolibri OS

Rev

Rev 954 | 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
 
1002 serge 67
#define  PX_MEM_LOCAL     1
68
#define  PX_MEM_GART      2
69
876 serge 70
 
1002 serge 71
876 serge 72
 
1002 serge 73
 
74
75
 
876 serge 76
{
77
  local_pixmap_t  *dstpix;
78
79
 
879 serge 80
}io_clear_t;
81
82
 
83
{
84
  local_pixmap_t  *dstpix;
85
86
 
876 serge 87
  {
88
    int x0;
89
    int y0;
90
  };
91
  union
92
  {
93
    struct
94
    {
95
      int x1;
96
      int y1;
97
    };
98
    struct
99
    {
100
      int w;
101
      int h;
102
    };
103
  };
104
  color_t color;
817 serge 105
  color_t border;
878 serge 106
}io_draw_t;
879 serge 107
808 serge 108
 
109
{
110
  local_pixmap_t  *dstpix;
876 serge 111
817 serge 112
 
808 serge 113
  int y;
114
  int w;
115
  int h;
116
117
 
118
  color_t fcolor;
119
120
 
121
  u32_t   bmp1;
122
  color_t border;
879 serge 123
}io_fill_t;
124
808 serge 125
 
126
{
127
  local_pixmap_t  *dstpix;
876 serge 128
  int        dst_x;
817 serge 129
  int        dst_y;
130
815 serge 131
 
876 serge 132
  int        src_x;
817 serge 133
  int        src_y;
134
  int        w;
135
  int        h;
136
815 serge 137
 
954 serge 138
    color_t    key;
139
    color_t    alpha;
140
  };
141
}io_blit_t;
879 serge 142
815 serge 143
 
808 serge 144
 
879 serge 145
808 serge 146
 
879 serge 147
808 serge 148
 
879 serge 149
813 serge 150
 
879 serge 151
813 serge 152
 
879 serge 153
815 serge 154
 
879 serge 155
817 serge 156
 
879 serge 157
808 serge 158
 
879 serge 159