本文整理匯總了Java中com.jme3.system.AppSettings.setRenderer方法的典型用法代碼示例。如果您正苦於以下問題:Java AppSettings.setRenderer方法的具體用法?Java AppSettings.setRenderer怎麽用?Java AppSettings.setRenderer使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.jme3.system.AppSettings
的用法示例。
在下文中一共展示了AppSettings.setRenderer方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
/**
* @param args
*/
public static void main(String[] args) {
JOryx oryx = new JOryx();
singleton = oryx;
AppSettings a = new AppSettings(true);
SettingsState ss = SettingsState.getSingleton();
ss.loadSettings();
a.setTitle("Realm of the Mad God");
a.setWidth(ss.width);
a.setHeight(ss.height);
a.setFullscreen(ss.fullscreen);
a.setRenderer(AppSettings.LWJGL_OPENGL1);
oryx.setSettings(a);
oryx.setPauseOnLostFocus(false);
oryx.start();
}
示例2: initAudioPlayer
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
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);
}
示例3: AudioApp
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public AudioApp(){
AppSettings settings = new AppSettings(true);
settings.setRenderer(null); // force dummy renderer (?)
settings.setAudioRenderer(AppSettings.LWJGL_OPENAL);
audioRenderer = JmeSystem.newAudioRenderer(settings);
audioRenderer.initialize();
assetManager = new DesktopAssetManager(true);
listener = new Listener();
audioRenderer.setListener(listener);
}
示例4: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
OpenGL_3 app = new OpenGL_3();
AppSettings aps = new AppSettings(true);
aps.setRenderer(AppSettings.LWJGL_OPENGL3);
app.setSettings(aps);
app.start();
}
示例5: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
OpenGL_2 app = new OpenGL_2();
AppSettings aps = new AppSettings(true);
aps.setRenderer(AppSettings.LWJGL_OPENGL2);
app.setSettings(aps);
app.start();
}
示例6: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
OpenGL_1 app = new OpenGL_1();
AppSettings aps = new AppSettings(true);
aps.setRenderer(AppSettings.LWJGL_OPENGL1);
app.setSettings(aps);
app.start();
}