Home
last modified time | relevance | path

Searched refs:ball_y (Results 1 - 1 of 1) sorted by relevance

/third_party/glfw/examples/
H A Dboing.c102 GLfloat ball_y = -RADIUS; variable
273 ball_y = y - (height / 2); in set_ball_pos()
333 glTranslatef( ball_x, ball_y, 0.0 ); in DrawBoingBall()
407 if ( ball_y > BOUNCE_HEIGHT/2 ) in BounceBall()
411 if ( ball_y < -BOUNCE_HEIGHT/2*0.85 ) in BounceBall()
418 ball_y += ball_y_inc * ((float)delta_t*ANIMATION_SPEED); in BounceBall()
425 deg = (ball_y + BOUNCE_HEIGHT/2) * 90 / BOUNCE_HEIGHT; in BounceBall()

Completed in 2 milliseconds