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

Java Type类代码示例

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

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



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

示例1: main

import com.jme3.system.JmeContext.Type; //导入依赖的package包/类
public static void main(String[] args){
    TestRenderToMemory app = new TestRenderToMemory();
    app.setPauseOnLostFocus(false);
    AppSettings settings = new AppSettings(true);
    settings.setResolution(1, 1);
    app.setSettings(settings);
    app.start(Type.OffscreenSurface);
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:9,代码来源:TestRenderToMemory.java


示例2: initialize

import com.jme3.system.JmeContext.Type; //导入依赖的package包/类
@Override
public void initialize() {
    super.initialize();

    guiNode.setQueueBucket(Bucket.Gui);
    guiNode.setCullHint(CullHint.Never);
    loadFPSText();
    loadStatsView();
    viewPort.attachScene(rootNode);
    guiViewPort.attachScene(guiNode);

    if (inputManager != null) {
        flyCam = new FlyByCamera(cam);
        flyCam.setMoveSpeed(1f);
        flyCam.registerWithInput(inputManager);

        if (context.getType() == Type.Display) {
            inputManager.addMapping(INPUT_MAPPING_EXIT, new KeyTrigger(KeyInput.KEY_ESCAPE));
        }

        inputManager.addMapping(INPUT_MAPPING_CAMERA_POS, new KeyTrigger(KeyInput.KEY_C));
        inputManager.addMapping(INPUT_MAPPING_MEMORY, new KeyTrigger(KeyInput.KEY_M));
        inputManager.addListener(actionListener, INPUT_MAPPING_EXIT,
                INPUT_MAPPING_CAMERA_POS, INPUT_MAPPING_MEMORY);
    }

    // call user code
    simpleInitApp();
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:30,代码来源:SimpleApplication.java


示例3: initialize

import com.jme3.system.JmeContext.Type; //导入依赖的package包/类
@Override
public void initialize()
{
	super.initialize();

	multiplicityRootNode.setQueueBucket(Bucket.Gui);
	multiplicityRootNode.setCullHint(CullHint.Never);
	loadFPSText();
	loadStatsView();
	viewPort.attachScene(rootNode);
	guiViewPort.attachScene(multiplicityRootNode);

	if (inputManager != null)
	{
		if (context.getType() == Type.Display)
		{
			inputManager.addMapping("SIMPLEAPP_Exit", new KeyTrigger(KeyInput.KEY_ESCAPE));
		}

		inputManager.addMapping("SIMPLEAPP_CameraPos", new KeyTrigger(KeyInput.KEY_C));
		inputManager.addMapping("SIMPLEAPP_Memory", new KeyTrigger(KeyInput.KEY_M));
		inputManager.addListener(actionListener, "SIMPLEAPP_Exit", "SIMPLEAPP_CameraPos", "SIMPLEAPP_Memory");
	}

	// call user code
	simpleInitApp();
}
 
开发者ID:synergynet,项目名称:synergynet3.1,代码行数:28,代码来源:JMEAppRoot.java


示例4: main

import com.jme3.system.JmeContext.Type; //导入依赖的package包/类
public static void main(String[] args) {
        testMain = new TestMain();
        testMain.start(JmeContext.Type.Headless);
//        try {
//            System.out.println("Creating application..");
//        Application app = new Application();
//        System.out.println("Starting application in LWJGL mode..");
//        app.start();
//        System.out.println("Waiting 5 seconds");
//        Thread.sleep(5000);
//        System.out.println("Closing application..");
//        app.stop();
//
//        Thread.sleep(2000);
//        System.out.println("Starting in fullscreen mode");
//        app = new Application();
//        AppSettings settings = new AppSettings(true);
//        settings.setFullscreen(true);
//        settings.setResolution(-1,-1); // current width/height
//        app.setSettings(settings);
//        app.start();
//        Thread.sleep(5000);
//        app.stop();
//
//        Thread.sleep(2000);
//        System.out.println("Creating offscreen buffer application");
//        app = new Application();
//        app.start(Type.OffscreenSurface);
//        Thread.sleep(3000);
//        System.out.println("Destroying offscreen buffer");
//        app.stop();
//        
//        }
//        catch (InterruptedException e){
//            System.err.println("InterruptedException: " + e.getMessage());
//        }
    }
 
开发者ID:devinbost,项目名称:jMathGame3d,代码行数:38,代码来源:TestMain.java


示例5: initialize

import com.jme3.system.JmeContext.Type; //导入依赖的package包/类
@Override
public void initialize() {
	bulletAppState = new BulletAppState();
	bulletAppState.startPhysics();

	super.initialize();

	guiNode.setQueueBucket(Bucket.Gui);
	guiNode.setCullHint(CullHint.Never);
	initTexts();
	loadStatsView();
	viewPort.attachScene(rootNode);
	guiViewPort.attachScene(guiNode);

	if (inputManager != null) {
		flyCam = new AzertyFlyByCamera(cam);
		flyCam.setMoveSpeed(1f);
		flyCam.registerWithInput(inputManager);

		if (context.getType() == Type.Display) {
			inputManager.addMapping("SIMPLEAPP_Exit", new KeyTrigger(KeyInput.KEY_ESCAPE));
		}

		inputManager.addMapping("SIMPLEAPP_CameraPos", new KeyTrigger(KeyInput.KEY_C));
		inputManager.addMapping("SIMPLEAPP_Memory", new KeyTrigger(KeyInput.KEY_M));
		inputManager.addListener(actionListener, "SIMPLEAPP_Exit", "SIMPLEAPP_CameraPos", "SIMPLEAPP_Memory");
	}

	// call user code
	simpleInitApp();
	stateManager.attach(bulletAppState);
	getPhysicsSpace().addTickListener(this);
}
 
开发者ID:methusalah,项目名称:OpenRTS,代码行数:34,代码来源:OpenRTSApplication.java


示例6: newContext

import com.jme3.system.JmeContext.Type; //导入依赖的package包/类
public JmeContext newContext(AppSettings settings, Type contextType) {
    initialize(settings);
    if (settings.getRenderer().startsWith("LiveWallpaper")) {
        
    }
    return new GdxContext();
}
 
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:8,代码来源:JmeSystemDelegateImpl.java


示例7: newContext

import com.jme3.system.JmeContext.Type; //导入依赖的package包/类
public static JmeContext newContext(AppSettings settings, Type contextType) {
    initialize(settings);
    if (settings.getRenderer().startsWith("LiveWallpaper")) {
        
    }
    return new OGLESContext();
}
 
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:8,代码来源:JmeSystem.java


示例8: main

import com.jme3.system.JmeContext.Type; //导入依赖的package包/类
public static void main(String[] args) throws InterruptedException{
    System.out.println("Creating application..");
    Application app = new Application();
    System.out.println("Starting application in LWJGL mode..");
    app.start();
    System.out.println("Waiting 5 seconds");
    Thread.sleep(5000);
    System.out.println("Closing application..");
    app.stop();

    Thread.sleep(2000);
    System.out.println("Starting in fullscreen mode");
    app = new Application();
    AppSettings settings = new AppSettings(true);
    settings.setFullscreen(true);
    settings.setResolution(-1,-1); // current width/height
    app.setSettings(settings);
    app.start();
    Thread.sleep(5000);
    app.stop();

    Thread.sleep(2000);
    System.out.println("Creating offscreen buffer application");
    app = new Application();
    app.start(Type.OffscreenSurface);
    Thread.sleep(3000);
    System.out.println("Destroying offscreen buffer");
    app.stop();
}
 
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:30,代码来源:TestApplication.java


示例9: initialize

import com.jme3.system.JmeContext.Type; //导入依赖的package包/类
@Override
public void initialize() {
    super.initialize();

    guiNode.setQueueBucket(Bucket.Gui);
    guiNode.setCullHint(CullHint.Never);
    loadFPSText();
    loadStatsView();
    viewPort.attachScene(rootNode);
    guiViewPort.attachScene(guiNode);

    if (inputManager != null) {
        flyCam = new FlyByCamera(cam);
        flyCam.setMoveSpeed(1f);
        flyCam.registerWithInput(inputManager);

        if (context.getType() == Type.Display) {
            inputManager.addMapping(INPUT_MAPPING_EXIT, new KeyTrigger(KeyInput.KEY_ESCAPE));
        }

        inputManager.addMapping(INPUT_MAPPING_CAMERA_POS, new KeyTrigger(KeyInput.KEY_C));
        inputManager.addMapping(INPUT_MAPPING_MEMORY, new KeyTrigger(KeyInput.KEY_M));
        inputManager.addMapping(INPUT_MAPPING_HIDE_STATS, new KeyTrigger(KeyInput.KEY_F5));
        inputManager.addListener(actionListener, INPUT_MAPPING_EXIT,
                INPUT_MAPPING_CAMERA_POS, INPUT_MAPPING_MEMORY, INPUT_MAPPING_HIDE_STATS);
        
    }

    // call user code
    simpleInitApp();
}
 
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:32,代码来源:SimpleApplication.java


示例10: initAudio

import com.jme3.system.JmeContext.Type; //导入依赖的package包/类
private void initAudio(){
    if (settings.getAudioRenderer() != null && context.getType() != Type.Headless){
        audioRenderer = JmeSystem.newAudioRenderer(settings);
        audioRenderer.initialize();
        AudioContext.setAudioRenderer(audioRenderer);

        listener = new Listener();
        audioRenderer.setListener(listener);
    }
}
 
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:11,代码来源:Application.java


示例11: getType

import com.jme3.system.JmeContext.Type; //导入依赖的package包/类
@Override
public Type getType() {
    return Type.Canvas;
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:5,代码来源:LwjglCanvas.java


示例12: getType

import com.jme3.system.JmeContext.Type; //导入依赖的package包/类
public Type getType() {
    return Type.Display;
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:4,代码来源:LwjglDisplay.java


示例13: start

import com.jme3.system.JmeContext.Type; //导入依赖的package包/类
@Override
public void start(Type contextType) {
    defaultFakeError();
}
 
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:5,代码来源:FakeApplication.java


示例14: start

import com.jme3.system.JmeContext.Type; //导入依赖的package包/类
/**
 * Starts the application in {@link Type#Display display} mode.
 * 
 * @see #start(com.jme3.system.JmeContext.Type) 
 */
public void start(){
    start(JmeContext.Type.Display);
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:9,代码来源:Application.java


示例15: getType

import com.jme3.system.JmeContext.Type; //导入依赖的package包/类
/**
 * @return Type.Display or Type.Canvas
 */
public abstract Type getType();
 
开发者ID:mleoking,项目名称:PhET,代码行数:5,代码来源:LwjglAbstractDisplay.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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