-/* $Id: context.c,v 1.104 2000/11/13 20:02:56 keithw Exp $ */
+/* $Id: context.c,v 1.105 2000/11/15 16:38:40 brianp Exp $ */
/*
* Mesa 3-D graphics library
/* Point group */
ctx->Point.SmoothFlag = GL_FALSE;
- ctx->Point.UserSize = 1.0;
ctx->Point.Size = 1.0;
+ ctx->Point._Size = 1.0;
ctx->Point.Params[0] = 1.0;
ctx->Point.Params[1] = 0.0;
ctx->Point.Params[2] = 0.0;
ctx->Point._Attenuated = GL_FALSE;
ctx->Point.MinSize = 0.0;
- ctx->Point.MaxSize = (GLfloat) MAX_POINT_SIZE;
+ ctx->Point.MaxSize = ctx->Const.MaxPointSize;
ctx->Point.Threshold = 1.0;
/* Polygon group */
-/* $Id: get.c,v 1.39 2000/10/30 13:32:00 keithw Exp $ */
+/* $Id: get.c,v 1.40 2000/11/15 16:38:40 brianp Exp $ */
/*
* Mesa 3-D graphics library
*params = INT_TO_BOOL(ctx->Pixel.MapStoSsize);
break;
case GL_POINT_SIZE:
- *params = FLOAT_TO_BOOL(ctx->Point.UserSize);
+ *params = FLOAT_TO_BOOL(ctx->Point.Size);
break;
case GL_POINT_SIZE_GRANULARITY:
*params = FLOAT_TO_BOOL(ctx->Const.PointSizeGranularity );
*params = (GLdouble) ctx->Pixel.MapStoSsize;
break;
case GL_POINT_SIZE:
- *params = (GLdouble) ctx->Point.UserSize;
+ *params = (GLdouble) ctx->Point.Size;
break;
case GL_POINT_SIZE_GRANULARITY:
*params = (GLdouble) ctx->Const.PointSizeGranularity;
*params = (GLfloat) ctx->Pixel.MapStoSsize;
break;
case GL_POINT_SIZE:
- *params = (GLfloat) ctx->Point.UserSize;
+ *params = (GLfloat) ctx->Point.Size;
break;
case GL_POINT_SIZE_GRANULARITY:
*params = (GLfloat) ctx->Const.PointSizeGranularity;
*params = ctx->Pixel.MapStoSsize;
break;
case GL_POINT_SIZE:
- *params = (GLint) ctx->Point.UserSize;
+ *params = (GLint) ctx->Point.Size;
break;
case GL_POINT_SIZE_GRANULARITY:
*params = (GLint) ctx->Const.PointSizeGranularity;
-/* $Id: points.c,v 1.21 2000/11/13 20:02:56 keithw Exp $ */
+/* $Id: points.c,v 1.22 2000/11/15 16:38:40 brianp Exp $ */
/*
* Mesa 3-D graphics library
return;
}
- if (ctx->Point.UserSize != size) {
- ctx->Point.UserSize = size;
- ctx->Point.Size = CLAMP(size, ctx->Const.MinPointSize, ctx->Const.MaxPointSize);
+ if (ctx->Point.Size != size) {
+ ctx->Point.Size = size;
+ ctx->Point._Size = CLAMP(size, ctx->Const.MinPointSize, ctx->Const.MaxPointSize);
ctx->_TriangleCaps &= ~DD_POINT_SIZE;
if (size != 1.0)
ctx->_TriangleCaps |= DD_POINT_SIZE;
-/* $Id: s_points.c,v 1.4 2000/11/13 20:02:57 keithw Exp $ */
+/* $Id: s_points.c,v 1.5 2000/11/15 16:38:40 brianp Exp $ */
/*
* Mesa 3-D graphics library
general_ci_point( GLcontext *ctx, SWvertex *vert )
{
struct pixel_buffer *PB = SWRAST_CONTEXT(ctx)->PB;
- const GLint isize = (GLint) (ctx->Point.Size + 0.5F);
+ const GLint isize = (GLint) (ctx->Point._Size + 0.5F);
GLint radius = isize >> 1;
GLint x0, x1, y0, y1;
general_rgba_point( GLcontext *ctx, SWvertex *vert )
{
struct pixel_buffer *PB = SWRAST_CONTEXT(ctx)->PB;
- GLint isize = (GLint) (ctx->Point.Size + 0.5F);
+ GLint isize = (GLint) (ctx->Point._Size + 0.5F);
GLint radius = isize >> 1;
GLint x0, x1, y0, y1;
GLint x = (GLint) vert->win[0];
GLint y = (GLint) vert->win[1];
GLint z = (GLint) (vert->win[2]);
- GLint isize = (GLint) (ctx->Point.Size + 0.5F);
+ GLint isize = (GLint) (ctx->Point._Size + 0.5F);
GLfixed fog = FloatToFixed( vert->fog );
GLint ix, iy;
GLfloat texcoord[MAX_TEXTURE_UNITS][4];
GLint radius, u;
- GLint isize = (GLint) (ctx->Point.Size + 0.5F);
+ GLint isize = (GLint) (ctx->Point._Size + 0.5F);
GLfixed fog = FloatToFixed( vert->fog );
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
struct pixel_buffer *PB = swrast->PB;
- const GLfloat radius = ctx->Point.Size * 0.5F;
+ const GLfloat radius = ctx->Point._Size * 0.5F;
const GLfloat rmin = radius - 0.7071F; /* 0.7071 = sqrt(2)/2 */
const GLfloat rmax = radius + 0.7071F;
const GLfloat rmin2 = MAX2(0.0, rmin * rmin);
dist_atten_general_ci_point( GLcontext *ctx, SWvertex *vert )
{
struct pixel_buffer *PB = SWRAST_CONTEXT(ctx)->PB;
- const GLfloat psize = ctx->Point.Size;
+ const GLfloat psize = ctx->Point._Size;
GLfloat dist = attenuation_distance( ctx, vert->eye );
GLint x0, x1, y0, y1;
GLint ix, iy;
dist_atten_general_rgba_point( GLcontext *ctx, SWvertex *vert )
{
struct pixel_buffer *PB = SWRAST_CONTEXT(ctx)->PB;
- const GLfloat psize = ctx->Point.Size;
+ const GLfloat psize = ctx->Point._Size;
GLfloat dist = attenuation_distance( ctx, vert->eye );
GLint x0, x1, y0, y1;
GLint ix, iy;
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
struct pixel_buffer *PB = swrast->PB;
- const GLfloat psize = ctx->Point.Size;
+ const GLfloat psize = ctx->Point._Size;
GLfloat dist = attenuation_distance( ctx, vert->eye );
const GLint x = (GLint) vert->win[0];
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
struct pixel_buffer *PB = swrast->PB;
- const GLfloat psize = ctx->Point.Size;
+ const GLfloat psize = ctx->Point._Size;
GLfloat dist = attenuation_distance( ctx, vert->eye );
if (ctx->Texture._ReallyEnabled) {
swrast->Point = textured_rgba_point;
}
}
- else if (ctx->Point.Size==1.0) {
+ else if (ctx->Point._Size == 1.0) {
/* size=1, any raster ops */
if (rgbmode)
swrast->Point = size1_rgba_point;