Пример #1
0
 public override void Create()
 {
     MyCube                 = new TextureCubeReference();
     Path                   = new StringValue("Path");
     Path.ChangeEvent       = PathChange;
     Resolution             = new FloatValue("Resolution", 1024);
     Resolution.ChangeEvent = PathChange;
     Load();
     base.Create();
 }
Пример #2
0
 public TextureCubeReference getTextureCube(string Name)
 {
     foreach (SceneObject scene in Scenes)
     {
         TextureCubeReference tc = scene.getTextureCube(Name);
         if (tc != null)
         {
             return(tc);
         }
     }
     return(null);
 }
Пример #3
0
 public void set(TextureCubeReference Value, string Path)
 {
     this.Value = Value;
     this.Path  = Path;
     PerformEvent();
 }
Пример #4
0
 public void set(TextureCubeReference Value)
 {
     this.Value = Value;
     PerformEvent();
 }
Пример #5
0
 public void set(string Path)
 {
     this.Value = LoadTexture(Path);
     PerformEvent();
 }
Пример #6
0
 public TextureCubeValue(string Name, TextureCube Value, string Path)
     : base(Name)
 {
     this.Value = Value != null ? new TextureCubeReference(Value) : null;
     this.Path  = Path;
 }
Пример #7
0
 public TextureCubeValue(string Name, string Path)
     : base(Name)
 {
     this.Value = LoadTexture(Path);
 }
Пример #8
0
 public TextureCubeValue(string Name)
     : base(Name)
 {
     this.Value = null;
     this.Path  = "";
 }