當前位置: 首頁>>代碼示例>>Java>>正文


Java SimpleApplication.getRootNode方法代碼示例

本文整理匯總了Java中com.jme3.app.SimpleApplication.getRootNode方法的典型用法代碼示例。如果您正苦於以下問題:Java SimpleApplication.getRootNode方法的具體用法?Java SimpleApplication.getRootNode怎麽用?Java SimpleApplication.getRootNode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.jme3.app.SimpleApplication的用法示例。


在下文中一共展示了SimpleApplication.getRootNode方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: addDebugObject

import com.jme3.app.SimpleApplication; //導入方法依賴的package包/類
private static void addDebugObject(String debugId, Spatial spatial, boolean inGui) {
    SimpleApplication sa = (SimpleApplication) LuoYing.getApp();
    
    Node root = inGui ? sa.getGuiNode() : sa.getRootNode();
    Spatial old = root.getChild(debugId);
    if (old != null) {
        old.removeFromParent();
    }
    spatial.setName(debugId);
    root.attachChild(spatial);
}
 
開發者ID:huliqing,項目名稱:LuoYing,代碼行數:12,代碼來源:DebugDynamicUtils.java

示例2: World

import com.jme3.app.SimpleApplication; //導入方法依賴的package包/類
/**
 * Contructeur de la classe World
 */
public World(SimpleApplication app)
{
	this.app =app;
	this.rootNode = app.getRootNode();
	
}
 
開發者ID:Daepso,項目名稱:minerim,代碼行數:10,代碼來源:World.java

示例3: initializeWater

import com.jme3.app.SimpleApplication; //導入方法依賴的package包/類
public static void initializeWater(SimpleApplication simpleApplication){
    WaterFilter waterFilter = new WaterFilter(simpleApplication.getRootNode(), lightDirection);
    getFilterPostProcessor(simpleApplication).addFilter(waterFilter);
}
 
開發者ID:jMonkeyEngine-Contributions,項目名稱:cubes,代碼行數:5,代碼來源:CubesTestAssets.java

示例4: StartScreenState

import com.jme3.app.SimpleApplication; //導入方法依賴的package包/類
public StartScreenState(SimpleApplication app){
  this.rootNode     = app.getRootNode();
  this.viewPort     = app.getViewPort();
  this.guiNode      = app.getGuiNode();
  this.assetManager = app.getAssetManager();  
}
 
開發者ID:devinbost,項目名稱:jMathGame3d,代碼行數:7,代碼來源:StartScreenState.java

示例5: initialize

import com.jme3.app.SimpleApplication; //導入方法依賴的package包/類
@Override
public void initialize(AppStateManager stateManager, Application app)
{
    super.initialize(stateManager, app);
    
    initialTime = System.currentTimeMillis();
    
    simpleApp = (SimpleApplication) app;
    
    this.stateManager = simpleApp.getStateManager();
    this.assetManager = simpleApp.getAssetManager();
    this.camera = simpleApp.getCamera();
    this.flyCam = simpleApp.getFlyByCamera();
    this.inputManager = simpleApp.getInputManager();
    this.rootNode = simpleApp.getRootNode();
    this.guiNode = simpleApp.getGuiNode();
    this.viewPort = simpleApp.getViewPort();
    
    Music.setAssetManager(assetManager);
    
    showTitle();

    setCamPosition();
 
    initCave();
    
    initAtmosphere(); 
    
    initFloorLighting();
    
    initFadeFilter();
    
    initKeyboardControls();
    
    Music.playIntroTheme();
    
    spiders = new LinkedList<>();
}
 
開發者ID:abnercoimbre,項目名稱:tower-defense-cave,代碼行數:39,代碼來源:StartScreenAppState.java


注:本文中的com.jme3.app.SimpleApplication.getRootNode方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。