Lines Matching refs:to

208     CRPointState *to = &(toCtx->point);
220 if (from->pointSmooth != to->pointSmooth)
222 able[to->pointSmooth](GL_POINT_SMOOTH);
223 from->pointSmooth = to->pointSmooth;
229 if (from->pointSize != to->pointSize)
231 diff_api.PointSize (to->pointSize);
232 from->pointSize = to->pointSize;
238 if (from->minSize != to->minSize)
240 diff_api.PointParameterfARB (GL_POINT_SIZE_MIN_ARB, to->minSize);
241 from->minSize = to->minSize;
247 if (from->maxSize != to->maxSize)
249 diff_api.PointParameterfARB (GL_POINT_SIZE_MAX_ARB, to->maxSize);
250 from->maxSize = to->maxSize;
256 if (from->fadeThresholdSize != to->fadeThresholdSize)
258 diff_api.PointParameterfARB (GL_POINT_FADE_THRESHOLD_SIZE_ARB, to->fadeThresholdSize);
259 from->fadeThresholdSize = to->fadeThresholdSize;
265 if (from->spriteCoordOrigin != to->spriteCoordOrigin)
267 diff_api.PointParameterfARB (GL_POINT_SPRITE_COORD_ORIGIN, to->spriteCoordOrigin);
268 from->spriteCoordOrigin = to->spriteCoordOrigin;
274 if (from->distanceAttenuation[0] != to->distanceAttenuation[0] || from->distanceAttenuation[1] != to->distanceAttenuation[1] || from->distanceAttenuation[2] != to->distanceAttenuation[2]) {
275 diff_api.PointParameterfvARB (GL_POINT_DISTANCE_ATTENUATION_ARB, to->distanceAttenuation);
276 from->distanceAttenuation[0] = to->distanceAttenuation[0];
277 from->distanceAttenuation[1] = to->distanceAttenuation[1];
278 from->distanceAttenuation[2] = to->distanceAttenuation[2];
287 if (from->pointSprite != to->pointSprite)
289 able[to->pointSprite](GL_POINT_SPRITE_ARB);
290 from->pointSprite = to->pointSprite;
299 GLint replacement = to->coordReplacement[i];
305 from->coordReplacement[i] = to->coordReplacement[i];
319 CRPointState *to = &(toCtx->point);
331 if (from->pointSmooth != to->pointSmooth)
333 able[to->pointSmooth](GL_POINT_SMOOTH);
341 if (from->pointSize != to->pointSize)
343 diff_api.PointSize (to->pointSize);
351 if (from->minSize != to->minSize)
353 diff_api.PointParameterfARB (GL_POINT_SIZE_MIN_ARB, to->minSize);
361 if (from->maxSize != to->maxSize)
363 diff_api.PointParameterfARB (GL_POINT_SIZE_MAX_ARB, to->maxSize);
371 if (from->fadeThresholdSize != to->fadeThresholdSize)
373 diff_api.PointParameterfARB (GL_POINT_FADE_THRESHOLD_SIZE_ARB, to->fadeThresholdSize);
381 if (from->spriteCoordOrigin != to->spriteCoordOrigin)
383 diff_api.PointParameterfARB (GL_POINT_SPRITE_COORD_ORIGIN, to->spriteCoordOrigin);
391 if (from->distanceAttenuation[0] != to->distanceAttenuation[0] || from->distanceAttenuation[1] != to->distanceAttenuation[1] || from->distanceAttenuation[2] != to->distanceAttenuation[2]) {
392 diff_api.PointParameterfvARB (GL_POINT_DISTANCE_ATTENUATION_ARB, to->distanceAttenuation);
411 * to work around gpu driver bugs
413 GLint replacement = to->coordReplacement[i];
431 if (fEnabled != to->pointSprite)
433 able[to->pointSprite](GL_POINT_SPRITE_ARB);
439 else if (fEnabled != to->pointSprite)
444 able[to->pointSprite](GL_POINT_SPRITE_ARB);