本文整理了Java中java.awt.Window.createBufferStrategy()
方法的一些代码示例,展示了Window.createBufferStrategy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.createBufferStrategy()
方法的具体详情如下:
包路径:java.awt.Window
类名称:Window
方法名:createBufferStrategy
暂无
代码示例来源:origin: com.b3dgs.lionengine/lionengine-core-awt
/**
* Create the buffer strategy using default capabilities.
*
* @param component The component reference.
* @param conf The current configuration.
*/
public static void createBufferStrategy(java.awt.Window component, GraphicsConfiguration conf)
{
try
{
component.createBufferStrategy(2, conf.getBufferCapabilities());
}
catch (final AWTException exception)
{
Verbose.exception(exception);
component.createBufferStrategy(1);
}
}
代码示例来源:origin: stackoverflow.com
mainGui.setSize(300, 200);
mainGui.setVisible(true);
mainGui.createBufferStrategy(2);
running = true;
代码示例来源:origin: stackoverflow.com
createBufferStrategy(3);
return;
代码示例来源:origin: stackoverflow.com
BufferStrategy bs=frame.getBufferStrategy();
if(bs==null){
frame.createBufferStrategy(4);
return;
代码示例来源:origin: stackoverflow.com
createBufferStrategy(2);
bufferStrategy = getBufferStrategy();
代码示例来源:origin: stackoverflow.com
createBufferStrategy(2);
代码示例来源:origin: stackoverflow.com
createBufferStrategy(2);
代码示例来源:origin: stackoverflow.com
frame.setBackground(Color.BLUE);
frame.setVisible(true);
frame.createBufferStrategy(3);
代码示例来源:origin: stackoverflow.com
window.createBufferStrategy(2);
bufStrat = window.getBufferStrategy();
代码示例来源:origin: stackoverflow.com
mainFrame.createBufferStrategy(2);
mainFrame.addKeyListener(this);
代码示例来源:origin: stackoverflow.com
mainFrame.createBufferStrategy(2);
mainFrame.addKeyListener(this);
代码示例来源:origin: stackoverflow.com
mainFrame.createBufferStrategy(numBuffers);
BufferStrategy bufferStrategy = mainFrame.getBufferStrategy();
for (float lag = 2000.0f; lag > 0.00000006f; lag = lag / 1.33f) {
代码示例来源:origin: stackoverflow.com
this.setVisible(true);
this.createBufferStrategy(2);
代码示例来源:origin: stackoverflow.com
frame.setIgnoreRepaint ( true );
frame.pack ();
frame.createBufferStrategy ( 2 );
frame.setVisible ( true );
world.startActive ( frame.getBufferStrategy () );
代码示例来源:origin: stackoverflow.com
mainFrame.createBufferStrategy(numBuffers);
BufferStrategy bufferStrategy = mainFrame.getBufferStrategy();
for (float lag = 2000.0f; lag > 0.00000006f; lag = lag / 1.33f) {
代码示例来源:origin: threerings/nenya
BufferCapabilities.FlipContents.COPIED);
try {
_window.createBufferStrategy(2, cap);
} catch (AWTException ae) {
log.warning("Failed creating flip bufstrat: " + ae + ".");
_window.createBufferStrategy(2);
代码示例来源:origin: com.threerings/nenya
BufferCapabilities.FlipContents.COPIED);
try {
_window.createBufferStrategy(2, cap);
} catch (AWTException ae) {
log.warning("Failed creating flip bufstrat: " + ae + ".");
_window.createBufferStrategy(2);
内容来源于网络,如有侵权,请联系作者删除!