Exemple #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);
 }
Exemple #3
0
 public void set(TextureCubeReference Value, string Path)
 {
     this.Value = Value;
     this.Path  = Path;
     PerformEvent();
 }
Exemple #4
0
 public void set(TextureCubeReference Value)
 {
     this.Value = Value;
     PerformEvent();
 }
Exemple #5
0
 public void set(string Path)
 {
     this.Value = LoadTexture(Path);
     PerformEvent();
 }
Exemple #6
0
 public TextureCubeValue(string Name, TextureCube Value, string Path)
     : base(Name)
 {
     this.Value = Value != null ? new TextureCubeReference(Value) : null;
     this.Path  = Path;
 }
Exemple #7
0
 public TextureCubeValue(string Name, string Path)
     : base(Name)
 {
     this.Value = LoadTexture(Path);
 }
Exemple #8
0
 public TextureCubeValue(string Name)
     : base(Name)
 {
     this.Value = null;
     this.Path  = "";
 }