I want to exact screen coordinate for a given world coordinate. When you click on the viewport using glutMouseFunc you will get the screen coordinate. But I want to write my own code for the generating the screen coordinates for a given world coordinates instead of using glutMouseFunc(). How to do that.
void worldToscreenCoordinate(worldx, worldy,worldy)