Esempio n. 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();
 }
 public TextureCubeReference getTextureCube(string Name)
 {
     foreach (SceneObject scene in Scenes)
     {
         TextureCubeReference tc = scene.getTextureCube(Name);
         if (tc != null)
         {
             return(tc);
         }
     }
     return(null);
 }
Esempio n. 3
0
 public void set(TextureCubeReference Value, string Path)
 {
     this.Value = Value;
     this.Path  = Path;
     PerformEvent();
 }
Esempio n. 4
0
 public void set(TextureCubeReference Value)
 {
     this.Value = Value;
     PerformEvent();
 }
Esempio n. 5
0
 public void set(string Path)
 {
     this.Value = LoadTexture(Path);
     PerformEvent();
 }
Esempio n. 6
0
 public TextureCubeValue(string Name, TextureCube Value, string Path)
     : base(Name)
 {
     this.Value = Value != null ? new TextureCubeReference(Value) : null;
     this.Path  = Path;
 }
Esempio n. 7
0
 public TextureCubeValue(string Name, string Path)
     : base(Name)
 {
     this.Value = LoadTexture(Path);
 }
Esempio n. 8
0
 public TextureCubeValue(string Name)
     : base(Name)
 {
     this.Value = null;
     this.Path  = "";
 }