Bare Minimum Setup?

Hey guys, I was wondering if there’s any place that has cross-platform code for bare-minimum setup of opengl w/ glut. I simply want to setup the open gl window and expand upon it.

On another note, does c or c++ have the built-in ability to read in files?

-Dogcow “moof!”

Won’t just about any tutorial based on GLUT work? NeHe for example. Just take away as much as you don’t need to create the window. The only things you really need are Init, CreateWindow, MainLoop and the display and reshape callback.

C can read files using FILE/fopen/fread/fclose and familly, and C++ has [i|o]fstream objects.