Mercurial > sdl-ios-xcode
comparison src/video/SDL_draw.h @ 2899:a0c837a16e4c
Added ARGB optimized case for Mac OS X
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 21 Dec 2008 08:55:06 +0000 |
parents | e40448bc7727 |
children | 3a9636c83849 |
comparison
equal
deleted
inserted
replaced
2898:e40448bc7727 | 2899:a0c837a16e4c |
---|---|
161 #define DRAW_SETPIXELXY_ADD_RGB888(x, y) \ | 161 #define DRAW_SETPIXELXY_ADD_RGB888(x, y) \ |
162 DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ADD_RGB888) | 162 DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ADD_RGB888) |
163 | 163 |
164 #define DRAW_SETPIXELXY_MOD_RGB888(x, y) \ | 164 #define DRAW_SETPIXELXY_MOD_RGB888(x, y) \ |
165 DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_MOD_RGB888) | 165 DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_MOD_RGB888) |
166 | |
167 /* | |
168 * Define draw operators for ARGB8888 | |
169 */ | |
170 | |
171 #define DRAW_SETPIXEL_ARGB8888 \ | |
172 DRAW_SETPIXEL(ARGB8888_FROM_RGBA(*pixel, sr, sg, sb, sa)) | |
173 | |
174 #define DRAW_SETPIXEL_BLEND_ARGB8888 \ | |
175 DRAW_SETPIXEL_BLEND(RGBA_FROM_ARGB8888(*pixel, sr, sg, sb, sa), \ | |
176 ARGB8888_FROM_RGBA(*pixel, sr, sg, sb, sa)) | |
177 | |
178 #define DRAW_SETPIXEL_ADD_ARGB8888 \ | |
179 DRAW_SETPIXEL_ADD(RGBA_FROM_ARGB8888(*pixel, sr, sg, sb, sa), \ | |
180 ARGB8888_FROM_RGBA(*pixel, sr, sg, sb, sa)) | |
181 | |
182 #define DRAW_SETPIXEL_MOD_ARGB8888 \ | |
183 DRAW_SETPIXEL_MOD(RGBA_FROM_ARGB8888(*pixel, sr, sg, sb, sa), \ | |
184 ARGB8888_FROM_RGBA(*pixel, sr, sg, sb, sa)) | |
185 | |
186 #define DRAW_SETPIXELXY_ARGB8888(x, y) \ | |
187 DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ARGB8888) | |
188 | |
189 #define DRAW_SETPIXELXY_BLEND_ARGB8888(x, y) \ | |
190 DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_BLEND_ARGB8888) | |
191 | |
192 #define DRAW_SETPIXELXY_ADD_ARGB8888(x, y) \ | |
193 DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ADD_ARGB8888) | |
194 | |
195 #define DRAW_SETPIXELXY_MOD_ARGB8888(x, y) \ | |
196 DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_MOD_ARGB8888) | |
166 | 197 |
167 /* | 198 /* |
168 * Define draw operators for general RGB | 199 * Define draw operators for general RGB |
169 */ | 200 */ |
170 | 201 |