然而,因为窗口处于全屏幕方式,所以paint方法所需的开销、该方法如何处理剪裁以及其它与显示处理相关的行为都是不必要的。
However, because the window is in fullscreen mode, the overhead required for the paint method, how the method deals with clipping, and other associated display-handling behaviors are unnecessary.
然而,您将发现一个使用 BufferStrategy 和全屏幕绘制方式的完整工作示例。
You will, however, find a complete working example employing a BufferStrategy and fullscreen drawing modes.
清单5中的代码获得显示方式,随机选择一个方式进行更改,然后显示一个带有文本“Hello, World !”的全屏幕窗口。
The code in Listing 5 gets the display modes, picks one at random to change to, then displays a fullscreen window with the text "Hello, World!"
应用推荐