Ian wrote > All, > > Some "flower arranging" on Greg's version - adding adjustable FPS > target, and a checkbox for selecting the idle loop on/off. > > Probably has bugs, and only tested on WinXP so far, but seems to work as > expected. Needs more tidying - in parcticular the FixedFPS and IdleFPS > methods duplicate a small chunk of code needlessly... > > Note that with the timers used to set the FPS on Windows, I see distinct > values of "attainable" FPS, so there is some sort of interaction with > what we are doing and the Windows timer logic, I think. AFAIK linux and > OSX seem to be fine in this respect. > > I have no idea what... > ------------------------------------------------------------------------------------
Ian, I tried to compile your prog in MinGW with gcc 4.6.1 and sadly it doesn't compile. The following is the output.. $ fltk-config --use-gl --compile fl_gears.cxx g++ -I/usr/local/include -I/usr/local/include/FL/images -mwindows -DWIN32 -DUSE_OPENGL32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -o 'fl_gears' 'fl_gears.cxx' -mwindows /usr/local/lib/libfltk_gl.a -lglu32 -lopengl32 /usr/local/lib/libfltk.a -lole32 -luuid -lcomctl32 fl_gears.cxx: In function 'void cb_set_idle(Fl_Check_Button*, void*)': fl_gears.cxx:66:15: error: 'static void MyGlWindow::FixedFPS(void*)' is private fl_gears.cxx:385:31: error: within this context fl_gears.cxx:58:15: error: 'static void MyGlWindow::IdleFPS(void*)' is private fl_gears.cxx:386:25: error: within this context fl_gears.cxx:58:15: error: 'static void MyGlWindow::IdleFPS(void*)' is private fl_gears.cxx:390:28: error: within this context fl_gears.cxx:66:15: error: 'static void MyGlWindow::FixedFPS(void*)' is private fl_gears.cxx:391:43: error: within this context My C++ isn't what it should be and I've failed to fix it. Either that or I'm just too tired (yaaaaaaawnnnn) Brian _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk