Lines Matching defs:material

35 import com.jme3.material.Material;
55 * There is one geometry per different material in the sub tree.
57 * usage is like any other node except you have to call the {@link #batch()} method once all geoms have been attached to the sub scene graph and theire material set
196 Material material = entry.getKey();
200 list.add(batches.get(material).geometry);
207 batch.geometry.setMaterial(material);
214 batches.put(material, batch);
236 throw new IllegalStateException("No material is set for Geometry: " + g.getName() + " please set a material before batching");
269 * Sets the material to the all the batches of this BatchNode
270 * use setMaterial(Material material,int batchIndex) to set a material to a specific batch
272 * @param material the material to use for this geometry
275 public void setMaterial(Material material) {
277 // batch.geometry.setMaterial(material);
279 throw new UnsupportedOperationException("Unsupported for now, please set the material on the geoms before batching");
283 * Returns the material that is used for the first batch of this BatchNode
285 * use getMaterial(Material material,int batchIndex) to get a material from a specific batch
287 * @return the material that is used for the first batch of this BatchNode
289 * @see #setMaterial(com.jme3.material.Material)
296 return null;//material;
300 // * Sets the material to the a specific batch of this BatchNode
303 // * @param material the material to use for this geometry
305 // public void setMaterial(Material material,int batchIndex) {
313 // * Returns the material that is used for the first batch of this BatchNode
315 // * use getMaterial(Material material,int batchIndex) to get a material from a specific batch
317 // * @return the material that is used for the first batch of this BatchNode
319 // * @see #setMaterial(com.jme3.material.Material)
326 // return null;//material;
333 // if (material != null) {
334 // oc.write(material.getAssetName(), "materialName", null);
336 // oc.write(material, "material", null);
346 // material = null;
350 // // Attempt to load material via J3M
352 // material = im.getAssetManager().loadMaterial(matName);
359 // // If material is NULL, try to load it from the geometry
360 // if (material == null) {
361 // material = (Material) ic.readSavable("material", null);