Rev 878 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 878 | Rev 879 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #define PX_CREATE 1 |
1 | #define PX_CREATE 1 |
2 | #define PX_DESTROY 2 |
2 | #define PX_DESTROY 2 |
- | 3 | #define PX_CLEAR 3 |
|
3 | #define PX_DRAW_RECT 3 |
4 | #define PX_DRAW_RECT 4 |
4 | #define PX_FILL_RECT 4 |
5 | #define PX_FILL_RECT 5 |
5 | #define PX_LINE 5 |
6 | #define PX_LINE 6 |
6 | #define PX_BLIT 6 |
7 | #define PX_BLIT 7 |
7 | #define PX_BLIT_TRANSPARENT 7 |
8 | #define PX_BLIT_TRANSPARENT 8 |
8 | #define PX_BLIT_ALPHA 8 |
9 | #define PX_BLIT_ALPHA 9 |
Line 9... | Line -... | ||
9 | - | ||
10 | //#define BLIT 4 |
- | |
Line 11... | Line 10... | ||
11 | //#define COMPIZ 5 |
10 | |
Line 12... | Line 11... | ||
12 | 11 | ||
Line 63... | Line 62... | ||
63 | unsigned pitch_offset; |
62 | unsigned pitch_offset; |
64 | void *local; |
63 | void *local; |
65 | }local_pixmap_t; |
64 | }local_pixmap_t; |
Line 66... | Line -... | ||
66 | - | ||
67 | //int CreatePixmap(userpixmap_t *io); |
- | |
68 | //int DestroyPixmap(userpixmap_t *io); |
- | |
69 | //int LockPixmap(userpixmap_t *io); |
- | |
Line 70... | Line 65... | ||
70 | //int UnlockPixmap(userpixmap_t *io); |
65 | |
Line 71... | Line 66... | ||
71 | 66 | ||
72 | #define PX_LOCK 1 |
67 | #define PX_LOCK 1 |
73 | 68 | ||
Line -... | Line 69... | ||
- | 69 | typedef struct |
|
- | 70 | { |
|
- | 71 | local_pixmap_t *dstpix; |
|
- | 72 | ||
- | 73 | color_t color; |
|
- | 74 | }io_clear_t; |
|
- | 75 | ||
74 | typedef struct |
76 | typedef struct |
75 | { |
77 | { |
76 | local_pixmap_t *dstpix; |
78 | local_pixmap_t *dstpix; |
77 | 79 | ||
78 | struct |
80 | struct |
Line 94... | Line 96... | ||
94 | }; |
96 | }; |
95 | }; |
97 | }; |
96 | color_t color; |
98 | color_t color; |
97 | color_t border; |
99 | color_t border; |
98 | }draw_t; |
100 | }io_draw_t; |
99 | 101 | ||
Line 100... | Line 102... | ||
100 | typedef struct |
102 | typedef struct |
101 | { |
103 | { |
102 | local_pixmap_t *dstpix; |
104 | local_pixmap_t *dstpix; |
Line 110... | Line 112... | ||
110 | color_t fcolor; |
112 | color_t fcolor; |
111 | 113 | ||
Line 112... | Line 114... | ||
112 | u32_t bmp0; |
114 | u32_t bmp0; |
113 | u32_t bmp1; |
115 | u32_t bmp1; |
114 | }fill_t; |
- | |
115 | - | ||
116 | typedef struct |
- | |
117 | { |
- | |
118 | int src_x; |
116 | color_t border; |
119 | int src_y; |
- | |
120 | int dst_x; |
- | |
121 | int dst_y; |
- | |
122 | int w; |
- | |
123 | int h; |
- | |
124 | }blit_t; |
117 | }io_fill_t; |
Line 125... | Line 118... | ||
125 | 118 | ||
126 | typedef struct |
119 | typedef struct |
127 | { |
120 | { |
128 | local_pixmap_t *dstpix; |
121 | local_pixmap_t *dstpix; |
Line 133... | Line 126... | ||
133 | int src_x; |
126 | int src_x; |
134 | int src_y; |
127 | int src_y; |
135 | int w; |
128 | int w; |
136 | int h; |
129 | int h; |
137 | }pixblit_t; |
130 | |
138 | - | ||
Line -... | Line 131... | ||
- | 131 | color_t key; |
|
- | 132 | }io_blit_t; |
|
- | 133 | ||
- | 134 | ||
- | 135 | int CreatePixmap(pixmap_t *io); |
|
- | 136 | ||
- | 137 | int DestroyPixmap(pixmap_t *io); |
|
Line 139... | Line 138... | ||
139 | 138 | ||
Line 140... | Line 139... | ||
140 | int Line2P(draw_t *draw); |
139 | int ClearPixmap(io_clear_t *io); |
141 | - | ||
Line 142... | Line 140... | ||
142 | int DrawRect(draw_t * draw); |
140 | |
Line 143... | Line 141... | ||
143 | int FillRect(fill_t * fill); |
141 | int Line(io_draw_t *draw); |
Line -... | Line 142... | ||
- | 142 | ||
Line 144... | Line 143... | ||
144 | 143 | int DrawRect(io_draw_t * draw); |