meshtile.java

来自「一个JAVA程序员的游戏」· Java 代码 · 共 31 行

JAVA
31
字号
/*
 * MeshTile.java
 *
 * Created on 18. Februar 2007, 12:12
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package kanjitori.graphics.tile;

import com.jme.scene.TriMesh;
import com.jme.scene.state.RenderState;

/**
 * A mesh tile is tile which provides its geometrical data as
 * <code>TriMesh</code>. This allows to use GeometryBatches for that tile,
 * which makes things much faster. Note that the meshes have to be already 
 * in the right position, as GeometryBatch currently doesn't support rotation.
 * @author Pirx
 */
public interface MeshTile extends Tile {
    
    public TriMesh getMesh(int index);
    
    public RenderState[] getRenderStates(int index);
    
    public int getSize();
    
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?