enable/disable mouse visibility

hello,
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:
showcursor(FALSE);
thanks in advance for any responses.

ShowCursor works in OpenGL as well.

j