Subversion Repositories Kolibri OS

Rev

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

Rev Author Line No. Line
808 serge 1
 
868 serge 2
#define DRAW_RECT    2
3
#define LINE_2P      3
4
#define BLIT         4
5
#define COMPIZ       5
6
#define PX_CREATE    6
876 serge 7
#define PIXBLIT      7
868 serge 8
#define PIXLOCK      8
9
#define PIXUNLOCK    9
10
#define PIXDESTROY  10
11
#define TRANSBLIT   11
12
808 serge 13
 
868 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
}draw_t;
808 serge 98
99
 
100
{
101
  local_pixmap_t  *dstpix;
876 serge 102
817 serge 103
 
808 serge 104
  int y;
105
  int w;
106
  int h;
107
108
 
109
  color_t fcolor;
110
111
 
112
  u32_t   bmp1;
113
}fill_t;
114
115
 
116
{
117
  int src_x;
810 serge 118
  int src_y;
119
  int dst_x;
120
  int dst_y;
121
  int w;
122
  int h;
123
}blit_t;
124
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
}pixblit_t;
815 serge 137
138
 
139
 
876 serge 140
808 serge 141
 
142
int FillRect(fill_t * fill);
143
144
 
810 serge 145
808 serge 146
 
813 serge 147
148
 
149
 
815 serge 150