Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

XG.3D.GUI-FRAME-LOOP

SYNTAX

(XG.3D.GUI-FRAME-LOOP)

DESCRIPTION

This is the central driver loop for the user interface: it cycles indefinitely, directing user input to the appropriate widget and refreshing the screen, exiting when user code sets x3d-frame-loop-done non-NIL. Read the source for details -- it's only 27 lines -- but the basic sequence of actions done for each frame is:

begin-loop:
1) Exit if x3d-frame-loop-done is non-NIL (setting it NIL again).
2) Make sure the window has a 4:3 aspect ratio (user may have resized)
3) Call the user per-frame function(s) in x3d-per-frame-hook
4) Redraw whatever parts of the window need it -- details vary.
5) Direct any user input to appropriate widget.
end-loop

Go to the first, previous, next, last section, table of contents.