Tartarus CVS: gravity2 richard

tartarus-commits-admin@lists.tartarus.org tartarus-commits-admin@lists.tartarus.org
Mon, 17 Jan 2000 01:59:17 +0000

CVSROOT:	/home/cvs
Module name:	gravity2
Changes by:	richard	00/01/17 01:59:17

Modified files:
	src            : graphics_ggi.cc graphics_gtkgl_win.cc 
	                 graphics_gtkgl_win.h physics.cc universe.cc 

Log message:
Added frame numbering system.
Use it to ensure that each frame is only drawn once, by making
universe->draw() return the frame last drawn, which should be passed
in as a parameter to the next draw call.
Want to implement an option to make sure that each frame _is_ displayed
once, if desired.  This will require some more re-organisation.

This may cause problems with the GTKGL system, if universe->draw is
called due to expose events, as well as by idle cycle calls.  Need option
to ask to redraw current frame.