CCTouch .... ConvertTOGL()

CCTouch* touch = (CCTouch*)( touches~~>anyObject );
CCPoint location = touch~~>locationInView();
location = CCDirector::sharedDirector()->convertToGL(location);

ConvertTOGL()

Could anybody explain me what is that method for and why is neccesary to use!?

Thanks

locationInView = current screen coordinates,
convert to GL = coordinates that that screen position equates to in your game’s opengl context.
This may be different, depending on what resolution your game is, if it is rotated, ect.

in xcode you can command-click on functions like that to see what they do.

thanks you , you really helped me!