本文整理了Java中com.jme3.system.AppSettings.setRenderer()
方法的一些代码示例,展示了AppSettings.setRenderer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AppSettings.setRenderer()
方法的具体详情如下:
包路径:com.jme3.system.AppSettings
类名称:AppSettings
方法名:setRenderer
[英]Set the graphics renderer to use, one of:
代码示例来源: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());
内容来源于网络,如有侵权,请联系作者删除!