99 register GLuint i,
m, stipple, highbit=0x80000000;
101 stipple =
ctx->PolygonStipple[
y % 32];
105 if ((
m & stipple)==0) {
141 else if (
x>=
ctx->Buffer->Width) {
148 if (
x+i<0 || x+i>=
ctx->Buffer->Width) {
190 if (
ctx->Scissor.Enabled) {
201 if (
ctx->Stencil.Enabled) {
209 else if (
ctx->Depth.Test) {
211 if ((*
ctx->Driver.DepthTestSpan)(
ctx,
n,
x,
y,
z,
mask )==0)
return;
226 if (
ctx->Color.SWLogicOpEnabled) {
229 if (
ctx->Color.SWmasking) {
241 if (
ctx->Color.SWLogicOpEnabled) {
244 if (
ctx->Color.SWmasking) {
274 if (
ctx->Scissor.Enabled)
287 if (
ctx->Stencil.Enabled)
297 else if (
ctx->Depth.Test)
311 ||
ctx->Color.SWLogicOpEnabled ||
ctx->Color.SWmasking)
331 if (
ctx->Color.SWLogicOpEnabled)
336 if (
ctx->Color.SWmasking)
352 if (
ctx->Color.SWLogicOpEnabled) {
355 if (
ctx->Color.SWmasking) {
420 ||
ctx->Texture.Enabled)) {
425 if (
ctx->Scissor.Enabled) {
439 if (
ctx->Color.AlphaEnabled) {
446 if (
ctx->Stencil.Enabled) {
455 else if (
ctx->Depth.Test) {
472 if (
ctx->Color.SWLogicOpEnabled) {
475 else if (
ctx->Color.BlendEnabled) {
480 if (
ctx->Color.SWmasking) {
498 if (
ctx->Color.SWLogicOpEnabled) {
501 else if (
ctx->Color.BlendEnabled) {
504 if (
ctx->Color.SWmasking) {
510 ctx->Buffer->Alpha =
ctx->Buffer->BackAlpha;
512 ctx->Buffer->Alpha =
ctx->Buffer->FrontAlpha;
552 if (
ctx->Scissor.Enabled) {
566 if (
ctx->Color.AlphaEnabled) {
577 if (
ctx->Stencil.Enabled) {
586 else if (
ctx->Depth.Test) {
602 if (
ctx->Color.BlendEnabled ||
ctx->Color.SWLogicOpEnabled
603 ||
ctx->Color.SWmasking) {
614 if (
ctx->Color.SWLogicOpEnabled) {
617 else if (
ctx->Color.BlendEnabled) {
622 if (
ctx->Color.SWmasking) {
644 if (
ctx->Color.SWLogicOpEnabled) {
647 else if (
ctx->Color.BlendEnabled) {
650 if (
ctx->Color.SWmasking) {
657 ctx->Buffer->Alpha =
ctx->Buffer->BackAlpha;
660 ctx->Buffer->Alpha =
ctx->Buffer->FrontAlpha;
675 ctx->Buffer->Alpha =
ctx->Buffer->BackAlpha;
678 ctx->Buffer->Alpha =
ctx->Buffer->FrontAlpha;
747 ||
ctx->Texture.Enabled)) {
752 if (
ctx->Scissor.Enabled) {
766 if (
ctx->Color.AlphaEnabled) {
773 if (
ctx->Stencil.Enabled) {
782 else if (
ctx->Depth.Test) {
799 if (
ctx->Color.SWLogicOpEnabled) {
802 else if (
ctx->Color.BlendEnabled) {
806 if (
ctx->Color.SWmasking) {
824 if (
ctx->Color.SWLogicOpEnabled) {
827 else if (
ctx->Color.BlendEnabled) {
830 if (
ctx->Color.SWmasking) {
837 ctx->Buffer->Alpha =
ctx->Buffer->BackAlpha;
839 ctx->Buffer->Alpha =
ctx->Buffer->FrontAlpha;
911 (*
ctx->Driver.ReadIndexSpan)(
ctx,
n,
x,
y, indx );
924 (*
ctx->Driver.ReadIndexSpan)(
ctx,
n,
x,
y, indx+
i );
GLint gl_alpha_test(GLcontext *ctx, GLuint n, const GLubyte alpha[], GLubyte mask[])
void gl_read_alpha_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLubyte alpha[])
void gl_write_alpha_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLubyte alpha[], GLubyte mask[])
void gl_write_mono_alpha_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLubyte alpha, GLubyte mask[])
void gl_blend_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLubyte red[], GLubyte green[], GLubyte blue[], GLubyte alpha[], GLubyte mask[])
void gl_texture_pixels(GLcontext *ctx, GLuint n, const GLfloat s[], const GLfloat t[], const GLfloat r[], const GLfloat lambda[], GLubyte red[], GLubyte green[], GLubyte blue[], GLubyte alpha[])
#define FRONT_AND_BACK_BIT
void gl_fog_color_pixels(GLcontext *ctx, GLuint n, const GLdepth z[], GLubyte red[], GLubyte green[], GLubyte blue[], GLubyte alpha[])
void gl_fog_index_pixels(GLcontext *ctx, GLuint n, const GLdepth z[], GLuint index[])
GLint GLint GLint GLint GLint x
GLclampf GLclampf GLclampf alpha
GLint GLint GLint GLint GLint GLint y
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
void gl_logicop_rgba_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLubyte red[], GLubyte green[], GLubyte blue[], GLubyte alpha[], GLubyte mask[])
void gl_logicop_ci_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLuint index[], GLubyte mask[])
#define MEMSET(DST, VAL, N)
#define MEMCPY(DST, SRC, BYTES)
void gl_mask_index_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLuint index[])
void gl_mask_color_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLubyte red[], GLubyte green[], GLubyte blue[], GLubyte alpha[])
GLint gl_scissor_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLubyte mask[])
void gl_write_texture_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLdepth z[], GLfloat s[], GLfloat t[], GLfloat u[], GLfloat lambda[], GLubyte r[], GLubyte g[], GLubyte b[], GLubyte a[], GLenum primitive)
void gl_read_color_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLubyte red[], GLubyte green[], GLubyte blue[], GLubyte alpha[])
void gl_write_monoindex_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLdepth z[], GLuint index, GLenum primitive)
void gl_write_color_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLdepth z[], GLubyte r[], GLubyte g[], GLubyte b[], GLubyte a[], GLenum primitive)
void gl_read_index_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLuint indx[])
void gl_write_index_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLdepth z[], GLuint index[], GLenum primitive)
static GLuint clip_span(GLcontext *ctx, GLint n, GLint x, GLint y, GLubyte mask[])
static void stipple_polygon_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLubyte mask[])
void gl_write_monocolor_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLdepth z[], GLint r, GLint g, GLint b, GLint a, GLenum primitive)
GLint gl_stencil_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLubyte mask[])
void gl_depth_stencil_span(GLcontext *ctx, GLuint n, GLint x, GLint y, const GLdepth z[], GLubyte mask[])