|
|
|
@@ -1,4 +1,4 @@ |
|
|
|
/* $Id: points.c,v 1.11.2.1 2000/08/16 17:25:40 brianp Exp $ */ |
|
|
|
/* $Id: points.c,v 1.11.2.2 2000/11/08 16:41:17 brianp Exp $ */ |
|
|
|
|
|
|
|
/* |
|
|
|
* Mesa 3-D graphics library |
|
|
|
@@ -161,7 +161,7 @@ size1_ci_points( GLcontext *ctx, GLuint first, GLuint last ) |
|
|
|
GLuint i; |
|
|
|
|
|
|
|
win = &VB->Win.data[first][0]; |
|
|
|
for (i = first; i <= last; i++) { |
|
|
|
for (i = first; i < last; i++) { |
|
|
|
if (VB->ClipMask[i] == 0) { |
|
|
|
pbx[pbcount] = (GLint) win[0]; |
|
|
|
pby[pbcount] = (GLint) win[1]; |
|
|
|
@@ -187,7 +187,7 @@ size1_rgba_points( GLcontext *ctx, GLuint first, GLuint last ) |
|
|
|
struct pixel_buffer *PB = ctx->PB; |
|
|
|
GLuint i; |
|
|
|
|
|
|
|
for (i = first; i <= last; i++) { |
|
|
|
for (i = first; i < last; i++) { |
|
|
|
if (VB->ClipMask[i] == 0) { |
|
|
|
GLint x, y, z; |
|
|
|
GLint red, green, blue, alpha; |
|
|
|
@@ -221,7 +221,7 @@ general_ci_points( GLcontext *ctx, GLuint first, GLuint last ) |
|
|
|
GLint radius = isize >> 1; |
|
|
|
GLuint i; |
|
|
|
|
|
|
|
for (i = first; i <= last; i++) { |
|
|
|
for (i = first; i < last; i++) { |
|
|
|
if (VB->ClipMask[i] == 0) { |
|
|
|
GLint x0, x1, y0, y1; |
|
|
|
GLint ix, iy; |
|
|
|
@@ -270,7 +270,7 @@ general_rgba_points( GLcontext *ctx, GLuint first, GLuint last ) |
|
|
|
GLint radius = isize >> 1; |
|
|
|
GLuint i; |
|
|
|
|
|
|
|
for (i = first; i <= last; i++) { |
|
|
|
for (i = first; i < last; i++) { |
|
|
|
if (VB->ClipMask[i] == 0) { |
|
|
|
GLint x0, x1, y0, y1; |
|
|
|
GLint ix, iy; |
|
|
|
@@ -323,7 +323,7 @@ textured_rgba_points( GLcontext *ctx, GLuint first, GLuint last ) |
|
|
|
struct pixel_buffer *PB = ctx->PB; |
|
|
|
GLuint i; |
|
|
|
|
|
|
|
for (i = first; i <= last; i++) { |
|
|
|
for (i = first; i < last; i++) { |
|
|
|
if (VB->ClipMask[i] == 0) { |
|
|
|
GLint x0, x1, y0, y1; |
|
|
|
GLint ix, iy, radius; |
|
|
|
@@ -410,7 +410,7 @@ multitextured_rgba_points( GLcontext *ctx, GLuint first, GLuint last ) |
|
|
|
struct pixel_buffer *PB = ctx->PB; |
|
|
|
GLuint i; |
|
|
|
|
|
|
|
for (i = first; i <= last; i++) { |
|
|
|
for (i = first; i < last; i++) { |
|
|
|
if (VB->ClipMask[i] == 0) { |
|
|
|
GLint x0, x1, y0, y1; |
|
|
|
GLint ix, iy; |
|
|
|
@@ -551,7 +551,7 @@ antialiased_rgba_points( GLcontext *ctx, GLuint first, GLuint last ) |
|
|
|
GLuint i; |
|
|
|
|
|
|
|
if (ctx->Texture.ReallyEnabled) { |
|
|
|
for (i = first; i <= last; i++) { |
|
|
|
for (i = first; i < last; i++) { |
|
|
|
if (VB->ClipMask[i] == 0) { |
|
|
|
GLint x, y; |
|
|
|
GLint red, green, blue, alpha; |
|
|
|
@@ -667,7 +667,7 @@ antialiased_rgba_points( GLcontext *ctx, GLuint first, GLuint last ) |
|
|
|
} |
|
|
|
else { |
|
|
|
/* Not texture mapped */ |
|
|
|
for (i=first;i<=last;i++) { |
|
|
|
for (i=first;i<last;i++) { |
|
|
|
if (VB->ClipMask[i]==0) { |
|
|
|
GLint xmin, ymin, xmax, ymax; |
|
|
|
GLint x, y, z; |
|
|
|
@@ -738,7 +738,7 @@ dist3(GLfloat *out, GLuint first, GLuint last, |
|
|
|
const GLfloat *p = VEC_ELT(v, GLfloat, first); |
|
|
|
GLuint i; |
|
|
|
|
|
|
|
for (i = first ; i <= last ; i++, STRIDE_F(p, stride) ) { |
|
|
|
for (i = first ; i < last ; i++, STRIDE_F(p, stride) ) { |
|
|
|
GLfloat dist = GL_SQRT(p[0]*p[0]+p[1]*p[1]+p[2]*p[2]); |
|
|
|
out[i] = 1.0F / (ctx->Point.Params[0] + |
|
|
|
dist * (ctx->Point.Params[1] + |
|
|
|
@@ -755,7 +755,7 @@ dist2(GLfloat *out, GLuint first, GLuint last, |
|
|
|
const GLfloat *p = VEC_ELT(v, GLfloat, first); |
|
|
|
GLuint i; |
|
|
|
|
|
|
|
for (i = first ; i <= last ; i++, STRIDE_F(p, stride) ) { |
|
|
|
for (i = first ; i < last ; i++, STRIDE_F(p, stride) ) { |
|
|
|
GLfloat dist = GL_SQRT(p[0]*p[0]+p[1]*p[1]); |
|
|
|
out[i] = 1.0F / (ctx->Point.Params[0] + |
|
|
|
dist * (ctx->Point.Params[1] + |
|
|
|
@@ -795,7 +795,7 @@ clip_dist(GLfloat *out, GLuint first, GLuint last, |
|
|
|
const GLfloat *from = (GLfloat *)clip_vec->start; |
|
|
|
const GLuint stride = clip_vec->stride; |
|
|
|
|
|
|
|
for (i = first ; i <= last ; i++ ) |
|
|
|
for (i = first ; i < last ; i++ ) |
|
|
|
{ |
|
|
|
GLfloat dist = win[i][2]; |
|
|
|
out[i] = 1/(ctx->Point.Params[0]+ |
|
|
|
@@ -824,7 +824,7 @@ dist_atten_general_ci_points( GLcontext *ctx, GLuint first, GLuint last ) |
|
|
|
else |
|
|
|
clip_dist( dist, first, last, ctx, VB->ClipPtr ); |
|
|
|
|
|
|
|
for (i=first;i<=last;i++) { |
|
|
|
for (i=first;i<last;i++) { |
|
|
|
if (VB->ClipMask[i]==0) { |
|
|
|
GLint x0, x1, y0, y1; |
|
|
|
GLint ix, iy; |
|
|
|
@@ -886,7 +886,7 @@ dist_atten_general_rgba_points( GLcontext *ctx, GLuint first, GLuint last ) |
|
|
|
else |
|
|
|
clip_dist( dist, first, last, ctx, VB->ClipPtr ); |
|
|
|
|
|
|
|
for (i=first;i<=last;i++) { |
|
|
|
for (i=first;i<last;i++) { |
|
|
|
if (VB->ClipMask[i]==0) { |
|
|
|
GLint x0, x1, y0, y1; |
|
|
|
GLint ix, iy; |
|
|
|
@@ -956,7 +956,7 @@ dist_atten_textured_rgba_points( GLcontext *ctx, GLuint first, GLuint last ) |
|
|
|
else |
|
|
|
clip_dist( dist, first, last, ctx, VB->ClipPtr ); |
|
|
|
|
|
|
|
for (i=first;i<=last;i++) { |
|
|
|
for (i=first;i<last;i++) { |
|
|
|
if (VB->ClipMask[i]==0) { |
|
|
|
GLint x0, x1, y0, y1; |
|
|
|
GLint ix, iy; |
|
|
|
@@ -1104,7 +1104,7 @@ dist_atten_antialiased_rgba_points( GLcontext *ctx, GLuint first, GLuint last ) |
|
|
|
clip_dist( dist, first, last, ctx, VB->ClipPtr ); |
|
|
|
|
|
|
|
if (ctx->Texture.ReallyEnabled) { |
|
|
|
for (i=first;i<=last;i++) { |
|
|
|
for (i=first;i<last;i++) { |
|
|
|
if (VB->ClipMask[i]==0) { |
|
|
|
GLfloat radius, rmin, rmax, rmin2, rmax2, cscale, alphaf; |
|
|
|
GLint xmin, ymin, xmax, ymax; |
|
|
|
@@ -1232,7 +1232,7 @@ dist_atten_antialiased_rgba_points( GLcontext *ctx, GLuint first, GLuint last ) |
|
|
|
} |
|
|
|
else { |
|
|
|
/* Not texture mapped */ |
|
|
|
for (i = first; i <= last; i++) { |
|
|
|
for (i = first; i < last; i++) { |
|
|
|
if (VB->ClipMask[i] == 0) { |
|
|
|
GLfloat radius, rmin, rmax, rmin2, rmax2, cscale, alphaf; |
|
|
|
GLint xmin, ymin, xmax, ymax; |