Graphics 版 (精华区)
发信人: dcs (euraka), 信区: Graphics
标 题: Motif&Opengl(10)
发信站: 紫 丁 香 (Mon Mar 29 21:46:37 1999), 转信
3.2 Timeouts
X Toolkit timeouts are similar to work procedures, but instead of being activated whenever event dispatching is idle, they are
called when a given period of time has expired. The XtAppAddTimeout and XtRemoveTimeOut routines can be used to add
and remove X Toolkit timeouts.
OpenGL programmers may find timeouts useful to maintain animation at rates slower than ``as fast as OpenGL will render.''
Timeouts can be used to give animation a sustained frame rate. Timeouts can also be used to redraw a scene with higher detail
when the user has stopped interacting with the program. For example, a 3D modeling program might redraw its model with
lighting enabled and finer tessellation after the program has been idle for two seconds. Timeouts can also be used to trigger
simple real-time state changes useful for visual simulation.
--
※ 来源:.紫 丁 香 bbs.hit.edu.cn.[FROM: 202.118.239.121]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:4.572毫秒