我们将在本文中描述最重要的对象,还有一些对象未作说明 —— 主要是执行重置状态这类任务的 helper 对象 —— 留给您在闲暇时进行探索。
We describe the most important objects in this article, but leave some out -- mostly helper objects that perform tasks such as status resets -- for you to discover at your leisure.
例如,在处理一些跨线程数据时,某线程可能被中断,并且可能没有机会将一切重置为有效状态。
For example, a thread might be interrupted while manipulating some cross-thread data and might not have an opportunity to reset everything to a valid state.
随后,主循环在每次循环时都检查事件、重置绘图状态、绘出圆形的“门户”窗口,然后以动画形式将其失真返回当前时帧。
Then, each pass of the main loop checks for events, resets the draw state, draws the circular "portal" windows, then animates their distortion back to the current time frame.
应用推荐