public static <T extends U3DTexture> void printTextureNameMap(HashMap<T, String> map) { System.out.println("Texture Names ----------------------------------"); for (U3DTexture c : map.keySet()) { System.out.println(c.getImage() + " -> " + map.get(c)); } System.out.println("----------------------------------------"); }
public static void printTextures(Collection<U3DTexture> l) { System.out.println("Textures -----------------------------"); for (U3DTexture g : l) { System.out.println(g.getImage()); } System.out.println("----------------------------------------"); }
public static HashMap<U3DTexture, byte[]> preparePNGTextures(Collection<U3DTexture> textures) { HashMap<U3DTexture, byte[]> r = new HashMap<U3DTexture, byte[]>(); for (U3DTexture tex : textures) { ImageData img = tex.getImage(); r.put(tex, preparePNGImageData(img)); } return r; }