PDA

View Full Version : Bare Minimum Setup?



Dogcow
08-18-2003, 02:17 PM
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?

TIA,
-Dogcow "moof!"

Bob
08-19-2003, 12:06 AM
Won't just about any tutorial based on GLUT work? NeHe (http://nehe.gamedev.net) 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.