Lines Matching defs:mapName
171 * @param mapName A freely chosen map name that can be later retrieved as a Texture. The first map name supplied will be the master map.
174 public boolean addTexture(Texture texture, String mapName) {
180 return addImage(texture.getImage(), name, mapName, null);
189 * @param mapName A freely chosen map name that can be later retrieved as a Texture.
192 public void addTexture(Texture texture, String mapName, Texture masterTexture) {
197 addTexture(texture, mapName, sourceTextureName);
204 * @param mapName A freely chosen map name that can be later retrieved as a Texture.
207 public void addTexture(Texture texture, String mapName, String sourceTextureName) {
213 addImage(texture.getImage(), name, mapName, sourceTextureName);
231 private boolean addImage(Image image, String name, String mapName, String sourceTextureName) {
233 rootMapName = mapName;
235 if (sourceTextureName == null && !rootMapName.equals(mapName)) {
242 if (!mapName.equals(mapNameMap.get(name))) {
243 logger.log(Level.WARNING, "Same texture " + name + " is used in different maps! (" + mapName + " and " + mapNameMap.get(name) + "). Location will be based on location in " + mapNameMap.get(name) + "!");
244 drawImage(image, location.getX(), location.getY(), mapName);
262 throw new IllegalStateException(mapName + " " + name + " does not fit " + rootMapName + " tile size. Make sure all textures (diffuse, normal, specular) for one model are the same size.");
265 mapNameMap.put(name, mapName);
267 drawImage(image, location.getX(), location.getY(), mapName);
271 private void drawImage(Image source, int x, int y, String mapName) {
275 byte[] image = images.get(mapName);
278 images.put(mapName, image);
392 * @param mapName
395 public Texture getAtlasTexture(String mapName) {
399 byte[] image = images.get(mapName);
543 private static Texture getMaterialTexture(Geometry geometry, String mapName) {
545 if (mat == null || mat.getParam(mapName) == null || !(mat.getParam(mapName) instanceof MatParamTexture)) {
548 MatParamTexture param = (MatParamTexture) mat.getParam(mapName);