com.jme3.app.Application.getRenderer()方法的使用及代码示例

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

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

Application.getRenderer介绍

暂无

代码示例

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

/**
 * Attaches Statistics View to guiNode and displays it on the screen
 * above FPS statistics line.
 *
 */
public void loadStatsView() {
  statsView = new StatsView("Statistics View",
               app.getAssetManager(),
               app.getRenderer().getStatistics());
  // move it up so it appears above fps text
  statsView.setLocalTranslation(0, fpsText.getLineHeight(), 0);
  statsView.setEnabled(showStats);
  statsView.setCullHint(showStats ? CullHint.Never : CullHint.Always);
  guiNode.attachChild(statsView);
}

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

font = app.getAssetManager().loadFont("Interface/Fonts/Console.fnt");
bigFont = app.getAssetManager().loadFont("Interface/Fonts/Default.fnt");
prof.setRenderer(app.getRenderer());
rootLine = new StatLineView("Frame");
rootLine.attachTo(ui);

代码示例来源:origin: org.jmonkeyengine/jme3-core

/**
 * Attaches Statistics View to guiNode and displays it on the screen
 * above FPS statistics line.
 *
 */
public void loadStatsView() {
  statsView = new StatsView("Statistics View",
               app.getAssetManager(),
               app.getRenderer().getStatistics());
  // move it up so it appears above fps text
  statsView.setLocalTranslation(0, fpsText.getLineHeight(), 0);
  statsView.setEnabled(showStats);
  statsView.setCullHint(showStats ? CullHint.Never : CullHint.Always);
  guiNode.attachChild(statsView);
}

代码示例来源:origin: org.jmonkeyengine/jme3-core

font = app.getAssetManager().loadFont("Interface/Fonts/Console.fnt");
bigFont = app.getAssetManager().loadFont("Interface/Fonts/Default.fnt");
prof.setRenderer(app.getRenderer());
rootLine = new StatLineView("Frame");
rootLine.attachTo(ui);

相关文章