getting the windows under X

in microsoft windows, there was a toolkit called, glut, which set up the window for you.
is there a similar toolkit under X.
how do i program full sreen and windowed in X

Glut is cross platform, so OpenGL code that uses glut can be compiled for X too.