Add files via upload
This commit is contained in:
parent
238c4f5844
commit
e6e07074b0
@ -876,22 +876,22 @@ void draw_billiard() /* draws the billiard boundary */
|
|||||||
init_billiard_color();
|
init_billiard_color();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* draw shooter position for laser pattern */
|
// /* draw shooter position for laser pattern */
|
||||||
if (CIRCLE_PATTERN == C_LASER)
|
// if (CIRCLE_PATTERN == C_LASER)
|
||||||
{
|
// {
|
||||||
hsl_to_rgb(0.0, 0.9, 0.5, rgb);
|
// hsl_to_rgb(0.0, 0.9, 0.5, rgb);
|
||||||
glColor3f(rgb[0], rgb[1], rgb[2]);
|
// glColor3f(rgb[0], rgb[1], rgb[2]);
|
||||||
|
//
|
||||||
glBegin(GL_LINE_LOOP);
|
// glBegin(GL_LINE_LOOP);
|
||||||
for (i=0; i<=NSEG; i++)
|
// for (i=0; i<=NSEG; i++)
|
||||||
{
|
// {
|
||||||
phi = (double)i*DPI/(double)NSEG;
|
// phi = (double)i*DPI/(double)NSEG;
|
||||||
x = X_SHOOTER + circlerad[ncircles-1]*cos(phi);
|
// x = X_SHOOTER + circlerad[ncircles-1]*cos(phi);
|
||||||
y = Y_SHOOTER + circlerad[ncircles-1]*sin(phi);
|
// y = Y_SHOOTER + circlerad[ncircles-1]*sin(phi);
|
||||||
glVertex2d(x, y);
|
// glVertex2d(x, y);
|
||||||
}
|
// }
|
||||||
glEnd ();
|
// glEnd ();
|
||||||
}
|
// }
|
||||||
|
|
||||||
init_billiard_color();
|
init_billiard_color();
|
||||||
|
|
||||||
@ -3172,11 +3172,11 @@ int color[NPARTMAX];
|
|||||||
|
|
||||||
|
|
||||||
/* set dummy coordinates if circles are absorbing */
|
/* set dummy coordinates if circles are absorbing */
|
||||||
if (ABSORBING_CIRCLES)
|
// if (ABSORBING_CIRCLES)
|
||||||
{
|
// {
|
||||||
config[0] = -1.0;
|
// config[0] = -1.0;
|
||||||
config[1] = PI;
|
// config[1] = PI;
|
||||||
}
|
// }
|
||||||
|
|
||||||
return(nscat[ntmin]);
|
return(nscat[ntmin]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user