Subversion Repositories Kolibri OS

Rev

Rev 877 | 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_DRAW_RECT           3
4
#define PX_FILL_RECT           4
5
#define PX_LINE                5
6
#define PX_BLIT                6
7
#define PX_BLIT_TRANSPARENT    7
8
#define PX_BLIT_ALPHA          8
9
808 serge 10
 
877 serge 11
//#define COMPIZ       5
12
868 serge 13
 
877 serge 14
 
808 serge 15
16
 
17
{
18
  int x;
876 serge 19
  int y;
20
}pt_t;
21
817 serge 22
 
876 serge 23
24
 
25
{
26
  int xmin;
27
  int ymin;
28
  int xmax;
29
  int ymax;
30
}clip_t, *PTRclip;
31
32
 
33
#define CLIP_BOTTOM       2
34
#define CLIP_RIGHT        4
35
#define CLIP_LEFT         8
36
37
 
38
39
 
40
41
 
42
{
43
  unsigned  width;
44
  unsigned  height;
45
  u32_t     format;
46
  u32_t     flags;
47
  unsigned  pitch;
48
  void      *mapped;
49
  u32_t     handle;
50
}pixmap_t;
51
52
 
53
 
54
{
55
  unsigned  width;
56
  unsigned  height;
57
  u32_t     format;
58
  u32_t     flags;
59
60
 
61
  void      *mapped;
62
63
 
64
  void      *local;
65
}local_pixmap_t;
66
67
 
68
//int DestroyPixmap(userpixmap_t *io);
69
//int LockPixmap(userpixmap_t *io);
70
//int UnlockPixmap(userpixmap_t *io);
71
72
 
73
74
 
75
{
76
  local_pixmap_t  *dstpix;
77
78
 
79
  {
80
    int x0;
81
    int y0;
82
  };
83
  union
84
  {
85
    struct
86
    {
87
      int x1;
88
      int y1;
89
    };
90
    struct
91
    {
92
      int w;
93
      int h;
94
    };
95
  };
96
  color_t color;
817 serge 97
  color_t border;
878 serge 98
}draw_t;
808 serge 99
100
 
101
{
102
  local_pixmap_t  *dstpix;
876 serge 103
817 serge 104
 
808 serge 105
  int y;
106
  int w;
107
  int h;
108
109
 
110
  color_t fcolor;
111
112
 
113
  u32_t   bmp1;
114
}fill_t;
115
116
 
117
{
118
  int src_x;
810 serge 119
  int src_y;
120
  int dst_x;
121
  int dst_y;
122
  int w;
123
  int h;
124
}blit_t;
125
126
 
127
{
128
  local_pixmap_t  *dstpix;
876 serge 129
  int        dst_x;
817 serge 130
  int        dst_y;
131
815 serge 132
 
876 serge 133
  int        src_x;
817 serge 134
  int        src_y;
135
  int        w;
136
  int        h;
137
}pixblit_t;
815 serge 138
139
 
140
 
876 serge 141
808 serge 142
 
143
int FillRect(fill_t * fill);
144
145
 
810 serge 146
808 serge 147
 
813 serge 148
149
 
150
 
815 serge 151