java.awt.Window.createBufferStrategy()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(130)

本文整理了Java中java.awt.Window.createBufferStrategy()方法的一些代码示例,展示了Window.createBufferStrategy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.createBufferStrategy()方法的具体详情如下:
包路径:java.awt.Window
类名称:Window
方法名:createBufferStrategy

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);

相关文章

Window类方法