File: Prog0 README Jose Renteria renteria@cse.ucsc.edu 1/8/02 PURPOSE: This is a SMALL start-up program for prog0 using fltk. I have referenced some code from Eric Schmitt, Krishna Roskin, Doanna Weissgerber. GETTING STARTED: Copy this entire directory into your own workspace. (Again, it's small) The prog0 start-up program has sliders, buttons, a menu with menu options, and a browser. The program is designed to load-in and rotate the enterprise. The enterprise is not loaded until the load button is hit and a file is selected. gui.cxx and gui.h: are generated files using fluid. Fluid is the similar to fdesign for forms. Make sure fluid is in your path (/usr/local/bin). To modify you interface type fluid gui.fl RUNNING THE STARTUP: Load Button: - brings up a browser to choose a file - if a file is chosen calls the load() function (note: currently the enterprise coor and poly files are hard coded and will load up regardless of file selection.) Quit Button: - causes the quit_cb() to be invoked CGL_Window: - gl_window overloaded from the Fl_Gl_Window - do your GL drawing here in drawPicture(). - you may also want to carefully check out draw() Menu: - quit_file_menu_item: prints the string to show you the label of the menuitem then get same function as quit button Sliders: - x, y, and z invoke rotatex(), rotatey(), and rotatez() defined in gl_window.h -zoom invoke zoom() defined in gl_window.h Have fun, -Jose