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

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

来源: 作者: 时间:2007-08-14 点击:
 (Throwable t) {
            t.printStackTrace();
        }

        Display.getCurrent().syncExec(
new Redrawer());
    }


    
protected void simpleInitGame() {
    }


    
/**
     * 初始化游戏,实际上就是设置根节点,灯光等等
     
*/

    @Override
    
protected void initGame() {
        rootNode 
= new Node("rootNode");
        ZBufferState buf 
= display.getRenderer().createZBufferState();
        buf.setEnabled(
true);
        buf.setFunction(ZBufferState.CF_LEQUAL);

        rootNode.setRenderState(buf);
        PointLight light 
= new PointLight();
        light.setDiffuse(
new ColorRGBA(1.0f1.0f1.0f1.0f));
        light.setAmbient(
new ColorRGBA(0.5f0.5f0.5f

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