Home
last modified time | relevance | path

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

/third_party/glfw/examples/
H A Dboing.c104 GLfloat ball_y_inc = 2.f; variable
409 ball_y_inc = -0.75f - 1.f * (GLfloat)rand() / (GLfloat)RAND_MAX; in BounceBall()
413 ball_y_inc = 0.75f + 1.f * (GLfloat)rand() / (GLfloat)RAND_MAX; in BounceBall()
418 ball_y += ball_y_inc * ((float)delta_t*ANIMATION_SPEED); in BounceBall()
423 if ( ball_y_inc < 0 ) sign = -1.0; else sign = 1.0; in BounceBall()
429 ball_y_inc = sign * 4.f * (float) sin_deg( deg ); in BounceBall()

Completed in 2 milliseconds