示例#1
0
 public static BufferedImage terrainGetTexture(
     Terrain terrain, int width, int height, String map) {
   MatParam matParam = terrain.getMaterial().getParam(map);
   if (matParam == null) {
     return null;
   }
   Texture tex = (Texture) matParam.getValue();
   if (tex == null) {
     return null;
   }
   Image i = tex.getImage();
   if (i == null) {
     return null;
   }
   return scaleImage(ImageToAwt.convert(i, true, true, 0), width, height);
 }