Esempio n. 1
0
 public void addObject(NameBindSceneObject o) {
   objects.add(o.data);
   objects.setName(o.data, o.name);
   if (o.data.parent == null && !o.name.equals(ROOT_NODE_NAME)) o.data.parent = ROOT_NODE_NAME;
   sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Object, o.name, true));
 }
Esempio n. 2
0
  public void addMaterial(NameBindMaterial o) {
    materials.add(o.data);
    materials.setName(o.data, o.name);

    sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Material, o.name, true));
  }
Esempio n. 3
0
  public void addTexture(NameBindTexture o) {
    textures.add(o.data);
    textures.setName(o.data, o.name);

    sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Texture, o.name, true));
  }
Esempio n. 4
0
  public void addCubemap(NameBindCubemap o) {
    cubemaps.add(o.data);
    cubemaps.setName(o.data, o.name);

    sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Cubemap, o.name, true));
  }
Esempio n. 5
0
  public void addMesh(NameBindMesh o) {
    meshes.add(o.data);
    meshes.setName(o.data, o.name);

    sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Mesh, o.name, true));
  }