Beispiel #1
0
 public MeshViewModel()
 {
     _mesh     = new Mesh();
     Children  = new ObservableCollection <MeshViewModel>();
     Render    = new MeshRenderDataViewModel();
     Collision = new MeshCollisionDataViewModel();
     States    = new MeshStateDataViewModel();
 }
Beispiel #2
0
 public MeshViewModel(Mesh mesh)
 {
     _mesh     = mesh;
     Children  = new ObservableCollection <MeshViewModel>();
     Render    = new MeshRenderDataViewModel(mesh.render);
     Collision = new MeshCollisionDataViewModel(mesh.collision);
     States    = new MeshStateDataViewModel(mesh.states);
     Surfaces  = new MeshSurfacesDataViewModel(mesh.surfaces);
 }
Beispiel #3
0
 public TextureViewModel(MeshRenderDataViewModel parent, Texture texture)
 {
     _parent  = parent;
     _texture = texture;
 }
Beispiel #4
0
 public TextureViewModel(MeshRenderDataViewModel parent)
 {
     _parent  = parent;
     _texture = new Texture();
 }