com.jme3.system.AppSettings.setRenderer()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(137)

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

AppSettings.setRenderer介绍

[英]Set the graphics renderer to use, one of:

  • AppSettings.LWJGL_OPENGL1 - Force OpenGL1.1 compatability
  • AppSettings.LWJGL_OPENGL2 - Force OpenGL2 compatability
  • AppSettings.LWJGL_OPENGL3 - Force OpenGL3.3 compatability
  • AppSettings.LWJGL_OPENGL_ANY - Choose an appropriate OpenGL version based on system capabilities
  • null - Disable graphics rendering
    [中]设置要使用的图形渲染器,其中一个:
    *应用程序设置。LWJGL_OPENGL1-强制OPENGL1。1相容性
    *应用程序设置。LWJGL_OPENGL2-强制OPENGL2兼容性
    *应用程序设置。LWJGL_OPENGL3-强制OPENGL3。3相容性
    *应用程序设置。LWJGL_OPENGL_ANY-根据系统功能选择合适的OPENGL版本
    *null-禁用图形渲染

代码示例

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

public void setSettings(AppSettings settings) {
  this.settings.copyFrom(settings);
  this.settings.setRenderer(AppSettings.LWJGL_OPENGL2);
  if (actualContext != null){
    actualContext.setSettings(settings);
  }
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

public static void main(String[] args) {
    TestMultiPostWater app = new TestMultiPostWater();
    AppSettings s = new AppSettings(true);
    s.setRenderer(AppSettings.LWJGL_OPENGL2);
    s.setAudioRenderer(AppSettings.LWJGL_OPENAL);
//       
//        s.setRenderer("JOGL");
//        s.setAudioRenderer("JOAL");
    app.setSettings(s);

    app.start();
  }

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

public static void main(String[] args) {
  TestBetterCharacter app = new TestBetterCharacter();
  AppSettings settings = new AppSettings(true);
  settings.setRenderer(AppSettings.LWJGL_OPENGL2);
  settings.setAudioRenderer(AppSettings.LWJGL_OPENAL);
  app.setSettings(settings);
  app.start();
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

private void initAudioPlayer(){
  AppSettings settings = new AppSettings(true);
  settings.setRenderer(null); // disable rendering
  settings.setAudioRenderer("LWJGL");
  ar = JmeSystem.newAudioRenderer(settings);
  ar.initialize();
  ar.setListener(listener);
  AudioContext.setAudioRenderer(ar);
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

/**
 * @param args the command line arguments
 */
public static void main(String[] args) {
  final AppSettings settings = new AppSettings(true);
  settings.setOpenCLSupport(true);
  settings.setVSync(true);
  settings.setOpenCLPlatformChooser(CustomPlatformChooser.class);
  settings.setRenderer(AppSettings.JOGL_OPENGL_FORWARD_COMPATIBLE);
  for (int i=0; i<2; ++i) {
    new Thread() {
      public void run() {
        if (currentDeviceIndex == -1) {
          return;
        }
        TestMultipleApplications app = new TestMultipleApplications();
        app.setSettings(settings);
        app.setShowSettings(false);
        app.start();
      }
    }.start();
  }
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

settings.setRenderer(AppSettings.LWJGL_OPENGL3);
} else {
  logger.config("Using LWJGL OpenGL 2 renderer.");
  settings.setRenderer(AppSettings.LWJGL_OPENGL2);

代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-desktop

public void setSettings(AppSettings settings) {
  this.settings.copyFrom(settings);
  this.settings.setRenderer(AppSettings.LWJGL_OPENGL2);
  if (actualContext != null){
    actualContext.setSettings(settings);
  }
}

代码示例来源:origin: us.ihmc/ihmc-jmonkey-engine-toolkit

public void setSettings(AppSettings settings)
{
 this.settings.copyFrom(settings);
 this.settings.setRenderer(AppSettings.LWJGL_OPENGL2);
 if (actualContext != null)
 {
   actualContext.setSettings(settings);
 }
}

代码示例来源:origin: us.ihmc/IHMCJMonkeyEngineToolkit

public void setSettings(AppSettings settings)
{
 this.settings.copyFrom(settings);
 this.settings.setRenderer(AppSettings.LWJGL_OPENGL2);
 if (actualContext != null)
 {
   actualContext.setSettings(settings);
 }
}

代码示例来源:origin: tonihele/OpenKeeper

settings.getAppSettings().setFullscreen(fullscreen.isChecked());
settings.getAppSettings().setVSync(vsync.isChecked());
settings.getAppSettings().setRenderer((String) ogl.getSelection());
settings.getAppSettings().setSamples((Integer) aa.getSelection());
settings.setSetting(Settings.Setting.ANISOTROPY, af.getSelection());

相关文章

AppSettings类方法