motion ball

#include <iostream>
#include <glut.h>
using namespace std;

void Ball()
 {
	 glColor3f(0,1,0);
	glutSolidSphere(0.3f,60,30); //Draw the ball
 }

void renderScene(void)
{
	
    
    glClear(GL_COLOR_BUFFER_BIT);

	glColor3f(0,1,0);
	glPointSize(10.0);

	glBegin(GL_POINTS);
	glVertex3f(-3,0,3);    //A
        glVertex3f(-3,0,-3);   //B
	glVertex3f(3,0,-3);    //C
	glVertex3f(3,0,-3);    //D
	glEnd();

 glFlush();
}

void changeSize(int w, int h)
{
    
    if(h == 0)
        h = 1; 
  
    float ratio = 1.0 * w / h;
    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    glViewport(0, 0, w, h);
    gluPerspective(45, ratio, 1, 1000);
    glMatrixMode(GL_MODELVIEW); 
    glLoadIdentity();
    gluLookAt(0.0,  4.0,  8.0,
              0.0,  0.0, 0.0,
              0.0f, 4.0f, 0.0f);

}
int main(int argc, char *argv[])
{
	ReadFile() ;
    glutInit(&argc, argv);
    glutInitWindowPosition(100, 100);
    glutInitWindowSize(640, 480);
    glutInitDisplayMode(GLUT_RGBA | GLUT_SINGLE | GLUT_DEPTH);
    glutCreateWindow("");
    glutDisplayFunc(renderScene);
    glutReshapeFunc(changeSize);
    glutDisplayFunc(renderScene);
    glutMainLoop();
}

I want creat motion : Ball from A run to B, then run to C…, but i dont know, please help me.

What is wrong with the advice you where given in your other thread?

sorry, but i dont understand, so i question again…!

question again : fine, but do it on the same thread, please !

(locking this one)