• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java StatsAppState类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.jme3.app.StatsAppState的典型用法代码示例。如果您正苦于以下问题:Java StatsAppState类的具体用法?Java StatsAppState怎么用?Java StatsAppState使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



StatsAppState类属于com.jme3.app包,在下文中一共展示了StatsAppState类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: SceneApplication

import com.jme3.app.StatsAppState; //导入依赖的package包/类
public SceneApplication() {
    super(new StatsAppState());
    AppSettings newSetting = new AppSettings(true);
    newSetting.setFrameRate(30);
    newSetting.setCustomRenderer(AwtPanelsContext.class);
    setSettings(newSetting);
    setPauseOnLostFocus(false);
    setShowSettings(false);
}
 
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:10,代码来源:SceneApplication.java


示例2: simpleUpdate

import com.jme3.app.StatsAppState; //导入依赖的package包/类
@Override
	public void simpleUpdate(float tpf) {
		if (RECORDING && stateManager.getState(StatsAppState.class) != null) {
			stateManager.getState(StatsAppState.class).setEnabled(false);
		}
		
		float timestep = RECORDING ? tpf : 0.1f;
		boundaryTools.applyDirichlet(density, flags, FlagGrid.CellType.TypeInflow, 1.0f);

		advection.advect(velocity, density, timestep, 1);
		advection.advect(velocity, velocity, timestep, 1);
		
		buoyancy.addBuoynacy(flags, density, velocity, gravity, timestep);
		
//		System.out.println("Pre-Pressure");
//		debugTools.printGrid2D(velocity);
		pressureProjection.project(velocity);
//		System.out.println("Post-Pressure");
//		debugTools.printGrid2D(velocity);
//		pressureProjection.debugPrintDivergence(velocity);
		
		clCommandQueue.finish();
		debugTools.fillTextureWithDensity2D(density, densityTexture);
		clCommandQueue.finish();
		
//		try {
//			Thread.sleep(100);
//		} catch (InterruptedException ex) {
//			Logger.getLogger(TestFluids2D.class.getName()).log(Level.SEVERE, null, ex);
//		}
//		stop();
//		System.out.println();
//		System.out.println();

		if (RECORDING) {
			System.out.println(".");
		}
	}
 
开发者ID:shamanDevel,项目名称:jME3-OpenCL-Library,代码行数:39,代码来源:TestFluids2D_old.java


示例3: Main

import com.jme3.app.StatsAppState; //导入依赖的package包/类
public Main() {
    super( new StatsAppState(), 
           new HudState(), 
           new CameraMovementState(),
           new SelectionState(),
           AppMode.getInstance(),
           new ScreenshotAppState("ScriptMonkey", System.currentTimeMillis()) );
}
 
开发者ID:jMonkeyEngine-Contributions,项目名称:Lemur,代码行数:9,代码来源:Main.java


示例4: simpleInitApp

import com.jme3.app.StatsAppState; //导入依赖的package包/类
@Override
public void simpleInitApp() {
    stateManager.detach(stateManager.getState(FlyCamAppState.class));
    stateManager.detach(stateManager.getState(ResetStatsState.class));
    stateManager.detach(stateManager.getState(DebugKeysAppState.class));
    stateManager.detach(stateManager.getState(StatsAppState.class));
    final Node jaime = LoadModel();
    setupLights();
    setupCamera();
    setupFloor();
    setupCinematic(jaime);
    setupInput();
}
 
开发者ID:xbuf,项目名称:jme3_xbuf,代码行数:14,代码来源:TestJaimeJ3o.java


示例5: simpleInitApp

import com.jme3.app.StatsAppState; //导入依赖的package包/类
@Override
public void simpleInitApp() {
    assetManager.registerLoader(XbufLoader.class, "xbuf");

    stateManager.detach(stateManager.getState(FlyCamAppState.class));
    stateManager.detach(stateManager.getState(ResetStatsState.class));
    stateManager.detach(stateManager.getState(DebugKeysAppState.class));
    stateManager.detach(stateManager.getState(StatsAppState.class));
    final Node jaime = LoadModel();
    setupLights();
    setupCamera();
    setupFloor();
    setupCinematic(jaime);
    setupInput();
}
 
开发者ID:xbuf,项目名称:jme3_xbuf,代码行数:16,代码来源:TestJaimeXbuf.java


示例6: simpleInitApp

import com.jme3.app.StatsAppState; //导入依赖的package包/类
@Override
public void simpleInitApp() {
    Init.initialize(this);
    
    // 载入字体
    BitmapFont chFont = assetManager.loadFont("data/font/chinese.fnt");
    LuoYing.setFont(chFont);
    
    // 2.UI配置
    UIConfig uiconfig = new UIConfigImpl(getAssetManager());
    UIFactory.registerUIConfig(uiconfig);
    
    // ======== start init
    // 4.UI事件,
    UIState viewState = UIState.getInstance();
    // 注册APP及GUI Root
    viewState.register(this); 
    stateManager.attach(viewState);
    
    // 5.FPS信息
    stateManager.attach(new FpsState());
    
    // 6.Debug 信息
    stateView = stateManager.getState(StatsAppState.class);
    if (stateView != null) {
        stateManager.detach(stateView);
    }
    stateView = new CustomStatsAppState();
    stateManager.attach(stateView);
    setDebugView(Config.debug);
    
    // 7.基本设定
    getInputManager().setCursorVisible(true);
    getFlyByCamera().setEnabled(false);
    
    if (Config.debug) {
        TestFactory.preTest();
    }
    
    // start state
    changeStartState();
}
 
开发者ID:huliqing,项目名称:LuoYing,代码行数:43,代码来源:Start.java


示例7: simpleInitApp

import com.jme3.app.StatsAppState; //导入依赖的package包/类
@Override
    public void simpleInitApp() {
        StatsAppState stats = this.stateManager.getState(StatsAppState.class);
        if (stats != null) {
            stateManager.detach(stats);
        }
//        stateManager.attach(new EditorStatsAppState()); // remove
        stateManager.attach(new FpsAppState());
        inputManager.setCursorVisible(true);
        viewPort.setBackgroundColor(ColorRGBA.DarkGray);
        flyCam.setEnabled(false);
        cam.setFrustumFar(100000);
        
        // 初始化
        Manager.initialize(this);
        
        // 注册事件
        JmeEventAppState jeas = JmeEvent.getJmeEventAppState();
        jeas.setInputManager(inputManager);
        stateManager.attach(jeas);
        
        // 快捷键保存,一般优先级应该比其它操作都要高
        EventListener el = (Event e) -> {
            if (e.isMatch()) {
                save();
                e.setConsumed(true);
            }
        };
        JmeEvent save1 = new JmeEvent("save1").bindKey(KeyInput.KEY_S, true).bindKey(KeyInput.KEY_LCONTROL, true).setPrior(9);
        JmeEvent save2 = new JmeEvent("save2").bindKey(KeyInput.KEY_S, true).bindKey(KeyInput.KEY_RCONTROL, true).setPrior(9);
        JmeEvent save3 = new JmeEvent("save3").bindKey(KeyInput.KEY_S, false).bindKey(KeyInput.KEY_LCONTROL, true).setPrior(9);
        JmeEvent save4 = new JmeEvent("save4").bindKey(KeyInput.KEY_S, false).bindKey(KeyInput.KEY_RCONTROL, true).setPrior(9);
        save1.addListener(el);
        save2.addListener(el);
        // save3,save4是空事件,为了避免和ScaleTool的按键冲突。
        // ScaleTool的开关及自由缩放键默认是绑定到bindKey(KeyInput.KEY_S, false/true).
        save3.addListener(e -> {
            if (e.isMatch()) e.setConsumed(true);
        });
        save4.addListener(e -> {
            if (e.isMatch()) e.setConsumed(true);
        });
        save1.initialize();
        save2.initialize();
        save3.initialize();
        save4.initialize();
        initialized = true;
        
    }
 
开发者ID:huliqing,项目名称:LuoYing,代码行数:50,代码来源:Editor.java


示例8: CameraDemo

import com.jme3.app.StatsAppState; //导入依赖的package包/类
public CameraDemo() {
    super(new StatsAppState(), new CameraMovementState());
}
 
开发者ID:jMonkeyEngine-Contributions,项目名称:Lemur,代码行数:4,代码来源:CameraDemo.java


示例9: Main

import com.jme3.app.StatsAppState; //导入依赖的package包/类
public Main() {
    super(new StatsAppState(), new CameraMovementState(), new CameraToggleState());
}
 
开发者ID:jMonkeyEngine-Contributions,项目名称:Lemur,代码行数:4,代码来源:Main.java


示例10: DecoratorDemo

import com.jme3.app.StatsAppState; //导入依赖的package包/类
public DecoratorDemo() {
    super(new StatsAppState(), new CameraMovementState(), new CameraToggleState());
}
 
开发者ID:jMonkeyEngine-Contributions,项目名称:Lemur,代码行数:4,代码来源:DecoratorDemo.java


示例11: PickDemo

import com.jme3.app.StatsAppState; //导入依赖的package包/类
public PickDemo() {
    super(new StatsAppState(), new CameraMovementState(), new CameraToggleState());
}
 
开发者ID:jMonkeyEngine-Contributions,项目名称:Lemur,代码行数:4,代码来源:PickDemo.java


示例12: DeformationDemo

import com.jme3.app.StatsAppState; //导入依赖的package包/类
public DeformationDemo() {
    super(new StatsAppState(), new CameraMovementState(), new CameraToggleState());
}
 
开发者ID:jMonkeyEngine-Contributions,项目名称:Lemur,代码行数:4,代码来源:DeformationDemo.java


示例13: ProtoDemo

import com.jme3.app.StatsAppState; //导入依赖的package包/类
public ProtoDemo() {
    super(new StatsAppState(), new DebugKeysAppState(), new BasicProfilerState(false),
          new OptionPanelState("glass"),
          new ScreenshotAppState("", System.currentTimeMillis())); 
}
 
开发者ID:jMonkeyEngine-Contributions,项目名称:Lemur,代码行数:6,代码来源:ProtoDemo.java


示例14: ClientMain

import com.jme3.app.StatsAppState; //导入依赖的package包/类
public ClientMain() {
    super(new StatsAppState());
}
 
开发者ID:TripleSnail,项目名称:Arkhados,代码行数:4,代码来源:ClientMain.java



注:本文中的com.jme3.app.StatsAppState类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java JConstructor类代码示例发布时间:2022-05-23
下一篇:
Java EncodingAlgorithmAttributes类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap