Lines Matching refs:coord
318 SphereCoord coord = &ball->sphere_map[total];
325 coord->x = xx;
326 coord->y = yy;
327 coord->offset = xx + yy*diameter2;
328 coord->alpha = 256;
329 coord->f[0] = FIX16_FROM_FLOAT(rx);
330 coord->f[1] = FIX16_FROM_FLOAT(ry);
331 coord->f[2] = FIX16_FROM_FLOAT(rz);
333 coord->alpha = 256*(radius - r0);
351 coord->alpha = coord->alpha * scale;
355 coord->x = xx;
356 coord->y = yy;
357 coord->offset = xx + yy*diameter2;
358 coord->alpha = 0;
360 coord->alpha = -256*(r0 - (radius2-1.));
488 SphereCoord coord = &ball->sphere_map[nn];
491 if (coord->alpha > 0) {
493 Fix16 ax = fixedvector_dot( (Fix16Vector)&coord->f, (Fix16Vector)&faxes[0] );
494 Fix16 ay = fixedvector_dot( (Fix16Vector)&coord->f, (Fix16Vector)&faxes[1] );
495 Fix16 az = fixedvector_dot( (Fix16Vector)&coord->f, (Fix16Vector)&faxes[2] );
525 if (coord->alpha < 256) {
526 int a = coord->alpha;
529 else if (coord->alpha > 256) {
530 int a = (coord->alpha - 256);
534 else /* coord->alpha <= 0 */
538 if (coord->alpha < 0) {
539 int a = -coord->alpha;
544 pixels[coord->x + diameter*coord->y] = color;