enable/disable mouse visibility

this seems really silly but i have begun to look into this and have not found any information on disabling the visibility of the mouse pointer in opengl programs. is there a simple solution to this? i remember on windows with directX it was:
thanks in advance for any responses.

ShowCursor works in OpenGL as well.