is there a way i can get the window size,i’m implementing a 3D game and i need to know the size of the window,and since the user can change the window size i can’t use the size of the window at the beginning

Use glutReshapeFunc :

thanks that’s just what i needed.