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