• Home
  • Raw
  • Download

Lines Matching full:point

3  * Point operations.
39 * Set current point size.
40 * \param size point diameter in pixels
54 if (ctx->Point.Size == size) in _mesa_PointSize()
58 ctx->Point.Size = size; in _mesa_PointSize()
107 /* Drivers that support point sprites must also support point parameters. in _mesa_PointParameterfv()
108 * If point parameters aren't supported, then this function shouldn't even in _mesa_PointParameterfv()
123 if (TEST_EQ_3V(ctx->Point.Params, params)) in _mesa_PointParameterfv()
126 COPY_3V(ctx->Point.Params, params); in _mesa_PointParameterfv()
127 ctx->Point._Attenuated = (ctx->Point.Params[0] != 1.0 || in _mesa_PointParameterfv()
128 ctx->Point.Params[1] != 0.0 || in _mesa_PointParameterfv()
129 ctx->Point.Params[2] != 0.0); in _mesa_PointParameterfv()
131 if (ctx->Point._Attenuated) in _mesa_PointParameterfv()
142 if (ctx->Point.MinSize == params[0]) in _mesa_PointParameterfv()
145 ctx->Point.MinSize = params[0]; in _mesa_PointParameterfv()
153 if (ctx->Point.MaxSize == params[0]) in _mesa_PointParameterfv()
156 ctx->Point.MaxSize = params[0]; in _mesa_PointParameterfv()
164 if (ctx->Point.Threshold == params[0]) in _mesa_PointParameterfv()
167 ctx->Point.Threshold = params[0]; in _mesa_PointParameterfv()
181 if (ctx->Point.SpriteRMode == value) in _mesa_PointParameterfv()
184 ctx->Point.SpriteRMode = value; in _mesa_PointParameterfv()
193 /* GL_POINT_SPRITE_COORD_ORIGIN was added to point sprites when the in _mesa_PointParameterfv()
204 if (ctx->Point.SpriteOrigin == value) in _mesa_PointParameterfv()
207 ctx->Point.SpriteOrigin = value; in _mesa_PointParameterfv()
229 * Initialize the context point state.
233 * Initializes __struct gl_contextRec::Point and point related constants in
241 ctx->Point.SmoothFlag = GL_FALSE; in _mesa_init_point()
242 ctx->Point.Size = 1.0; in _mesa_init_point()
243 ctx->Point.Params[0] = 1.0; in _mesa_init_point()
244 ctx->Point.Params[1] = 0.0; in _mesa_init_point()
245 ctx->Point.Params[2] = 0.0; in _mesa_init_point()
246 ctx->Point._Attenuated = GL_FALSE; in _mesa_init_point()
247 ctx->Point.MinSize = 0.0; in _mesa_init_point()
248 ctx->Point.MaxSize in _mesa_init_point()
250 ctx->Point.Threshold = 1.0; in _mesa_init_point()
255 * POINT_SMOOTH and POINT_SPRITE, and all associated state. Point in _mesa_init_point()
262 ctx->Point.PointSprite = (ctx->API == API_OPENGL_CORE); in _mesa_init_point()
264 ctx->Point.SpriteRMode = GL_ZERO; /* GL_NV_point_sprite (only!) */ in _mesa_init_point()
265 ctx->Point.SpriteOrigin = GL_UPPER_LEFT; /* GL_ARB_point_sprite */ in _mesa_init_point()
266 for (i = 0; i < Elements(ctx->Point.CoordReplace); i++) { in _mesa_init_point()
267 ctx->Point.CoordReplace[i] = GL_FALSE; /* GL_ARB/NV_point_sprite */ in _mesa_init_point()