-#ifdef STORE_RGBA_PIXEL
-
-static void
-NAME(write_rgba_span)( const GLcontext *ctx, GLuint n, GLint x, GLint y,
- CONST GLchan rgba[][4], const GLubyte mask[] )
-{
-#ifdef SPAN_VARS
- SPAN_VARS
-#endif
- GLuint i;
- INIT_PIXEL_PTR(pixel, x, y);
- if (mask) {
- for (i = 0; i < n; i++) {
- if (mask[i]) {
- STORE_RGBA_PIXEL(pixel, rgba[i][RCOMP], rgba[i][GCOMP],
- rgba[i][BCOMP], rgba[i][ACOMP]);
- }
- INC_PIXEL_PTR(pixel);
- }
- }
- else {
- for (i = 0; i < n; i++) {
- STORE_RGBA_PIXEL(pixel, rgba[i][RCOMP], rgba[i][GCOMP],
- rgba[i][BCOMP], rgba[i][ACOMP]);
- INC_PIXEL_PTR(pixel);
- }
- }
-}
-
-static void
-NAME(write_rgb_span)( const GLcontext *ctx, GLuint n, GLint x, GLint y,
- CONST GLchan rgb[][3], const GLubyte mask[] )
-{
-#ifdef SPAN_VARS
- SPAN_VARS
-#endif
- GLuint i;
- INIT_PIXEL_PTR(pixel, x, y);
- if (mask) {
- for (i = 0; i < n; i++) {
- if (mask[i]) {
- STORE_RGB_PIXEL(pixel, rgb[i][RCOMP], rgb[i][GCOMP],
- rgb[i][BCOMP]);
- }
- INC_PIXEL_PTR(pixel);
- }
- }
- else {
- for (i = 0; i < n; i++) {
- STORE_RGB_PIXEL(pixel, rgb[i][RCOMP], rgb[i][GCOMP],
- rgb[i][BCOMP]);
- INC_PIXEL_PTR(pixel);
- }
- }
-}
-
-static void
-NAME(write_monorgba_span)( const GLcontext *ctx, GLuint n, GLint x, GLint y,
- const GLchan color[4], const GLubyte mask[] )
-{
-#ifdef SPAN_VARS
- SPAN_VARS
-#endif
- GLuint i;
- INIT_PIXEL_PTR(pixel, x, y);
- if (mask) {
- for (i = 0; i < n; i++) {
- if (mask[i]) {
- STORE_RGBA_PIXEL(pixel, color[RCOMP], color[GCOMP],
- color[BCOMP], color[ACOMP]);
- }
- INC_PIXEL_PTR(pixel);
- }
- }
- else {
- for (i = 0; i < n; i++) {
- STORE_RGBA_PIXEL(pixel, color[RCOMP], color[GCOMP],
- color[BCOMP], color[ACOMP]);
- INC_PIXEL_PTR(pixel);
- }
- }
-}