示例#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);
 }
示例#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  = "";
 }