mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-01-25 15:13:48 +08:00
s/_backface_sign/_BackfaceSign/
This commit is contained in:
parent
e4b40a7cf1
commit
87f858dd7c
@ -605,7 +605,7 @@ static void tri_rgb_flat (GLcontext *ctx,
|
||||
m2.win[0] = v2->win[0];
|
||||
m2.win[1] = FLIP2(v2->win[1]);
|
||||
*(unsigned long *)m2.color = *(unsigned long *)v2->color;
|
||||
mga_draw_tri_rgb_flat((int)SWRAST_CONTEXT(ctx)->_backface_sign, &m0, &m1, &m2);
|
||||
mga_draw_tri_rgb_flat((int)SWRAST_CONTEXT(ctx)->_BackfaceSign, &m0, &m1, &m2);
|
||||
}
|
||||
#endif /* MATROX */
|
||||
|
||||
@ -660,7 +660,7 @@ static void tri_rgb_flat_zless (GLcontext *ctx,
|
||||
m2.win[1] = FLIP2(v2->win[1]);
|
||||
m2.win[2] = v2->win[2];
|
||||
*(unsigned long *)m2.color = *(unsigned long *)v2->color;
|
||||
mga_draw_tri_rgb_flat_zless((int)SWRAST_CONTEXT(ctx)->_backface_sign, &m0, &m1, &m2);
|
||||
mga_draw_tri_rgb_flat_zless((int)SWRAST_CONTEXT(ctx)->_BackfaceSign, &m0, &m1, &m2);
|
||||
}
|
||||
#endif /* MATROX */
|
||||
|
||||
@ -710,7 +710,7 @@ static void tri_rgb_iter (GLcontext *ctx,
|
||||
*(unsigned long *)m0.color = *(unsigned long *)v0->color;
|
||||
*(unsigned long *)m1.color = *(unsigned long *)v1->color;
|
||||
*(unsigned long *)m2.color = *(unsigned long *)v2->color;
|
||||
mga_draw_tri_rgb_iter((int)SWRAST_CONTEXT(ctx)->_backface_sign, &m0, &m1, &m2);
|
||||
mga_draw_tri_rgb_iter((int)SWRAST_CONTEXT(ctx)->_BackfaceSign, &m0, &m1, &m2);
|
||||
}
|
||||
#endif /* MATROX */
|
||||
|
||||
@ -770,7 +770,7 @@ static void tri_rgb_iter_zless (GLcontext *ctx,
|
||||
*(unsigned long *)m0.color = *(unsigned long *)v0->color;
|
||||
*(unsigned long *)m1.color = *(unsigned long *)v1->color;
|
||||
*(unsigned long *)m2.color = *(unsigned long *)v2->color;
|
||||
mga_draw_tri_rgb_iter_zless((int)SWRAST_CONTEXT(ctx)->_backface_sign, &m0, &m1, &m2);
|
||||
mga_draw_tri_rgb_iter_zless((int)SWRAST_CONTEXT(ctx)->_BackfaceSign, &m0, &m1, &m2);
|
||||
}
|
||||
#endif /* MATROX */
|
||||
|
||||
|
@ -82,7 +82,7 @@
|
||||
GLfloat texWidth[MAX_TEXTURE_COORD_UNITS];
|
||||
GLfloat texHeight[MAX_TEXTURE_COORD_UNITS];
|
||||
#endif
|
||||
GLfloat bf = SWRAST_CONTEXT(ctx)->_backface_sign;
|
||||
GLfloat bf = SWRAST_CONTEXT(ctx)->_BackfaceSign;
|
||||
|
||||
|
||||
INIT_SPAN(span, GL_POLYGON, 0, 0, SPAN_COVERAGE);
|
||||
|
@ -135,7 +135,7 @@ _swrast_update_polygon( GLcontext *ctx )
|
||||
backface_sign = 0;
|
||||
}
|
||||
|
||||
SWRAST_CONTEXT(ctx)->_backface_sign = backface_sign;
|
||||
SWRAST_CONTEXT(ctx)->_BackfaceSign = backface_sign;
|
||||
}
|
||||
|
||||
|
||||
|
@ -274,7 +274,7 @@ typedef struct
|
||||
*/
|
||||
GLuint _RasterMask;
|
||||
GLfloat _MinMagThresh[MAX_TEXTURE_IMAGE_UNITS];
|
||||
GLfloat _backface_sign;
|
||||
GLfloat _BackfaceSign;
|
||||
GLboolean _PreferPixelFog;
|
||||
GLboolean _AnyTextureCombine;
|
||||
|
||||
|
@ -60,7 +60,7 @@ GLboolean _swrast_culltriangle( GLcontext *ctx,
|
||||
GLfloat fy = v2->win[1] - v0->win[1];
|
||||
GLfloat c = ex*fy-ey*fx;
|
||||
|
||||
if (c * SWRAST_CONTEXT(ctx)->_backface_sign > 0)
|
||||
if (c * SWRAST_CONTEXT(ctx)->_BackfaceSign > 0)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
|
@ -123,7 +123,7 @@ static void NAME(GLcontext *ctx, const SWvertex *v0,
|
||||
EdgeT eMaj, eTop, eBot;
|
||||
GLfloat oneOverArea;
|
||||
const SWvertex *vMin, *vMid, *vMax; /* Y(vMin)<=Y(vMid)<=Y(vMax) */
|
||||
float bf = SWRAST_CONTEXT(ctx)->_backface_sign;
|
||||
GLfloat bf = SWRAST_CONTEXT(ctx)->_BackfaceSign;
|
||||
const GLint snapMask = ~((FIXED_ONE / (1 << SUB_PIXEL_BITS)) - 1); /* for x/y coord snapping */
|
||||
GLfixed vMin_fx, vMin_fy, vMid_fx, vMid_fy, vMax_fx, vMax_fy;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user