RSS
热门关键字:  java  Ajax  JSP  JSF  Struts
当前位置 : 首页>Java>列表

把JME程序“嵌入”到SWT界面

来源: 作者: 时间:2007-08-14 点击:
true);
    }


    @Override
    
protected void cleanup() {
        
// TODO Auto-generated method stub

    }


}


  继承MyGame,绘制简单的3D图形:
package jrkui.swtjme;

import com.jme.math.Quaternion;
import com.jme.math.Vector3f;
import com.jme.renderer.ColorRGBA;
import com.jme.scene.shape.Box;

public class Box_MyGame extends MyGame {
    
private Box box;
    
    @Override
    
protected void simpleInitGame() {
        display.getRenderer().setBackgroundColor(ColorRGBA.gray);
        box 
= new Box("Mybox"new Vector3f(0,0,0), new Vector3f(1,1,1));
        box.setLocalScale(

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
Google Adsense
相关文章