In that case youd either have to use glut or sdl for easy window handling. However if the objective is pure opengl from the ground up you'll unfortunately have to write code for each of those platforms. Good luck - some of the code you have to interface with can be a little archaic at times....