Beispiel #1
0
 public LightsEditor(Lights lights)
 {
     InitializeComponent();
     this.lights = lights;
     this.build_gui();
     this.lights.LightTypeChanged += new EventHandler(lights_LightTypeChanged);
 }
Beispiel #2
0
 public LightsEditor(Lights lights)
 {
     InitializeComponent();
     this.lights = lights;
     this.build_gui();
     this.lights.LightTypeChanged += new EventHandler(lights_LightTypeChanged);
 }
Beispiel #3
0
 public Renmas(Image output_image)
 {
     int ret = Init();//throw exception if error ocured!!!
     if (ret != 0) throw new Exception("Interface to renmas if failed to create.");
     this.camera = new Camera(this);
     this.options = new Options(this);
     this.lights = new Lights(this);
     this.shapes = new Shapes(this);
     this.output_image = output_image;
     this.tone_mapping_operators = new ToneMappingOperators(this);
     this.materials = new Materials(this);
 }
Beispiel #4
0
        public Renmas(Image output_image)
        {
            int ret = Init();//throw exception if error ocured!!!

            if (ret != 0)
            {
                throw new Exception("Interface to renmas if failed to create.");
            }
            this.camera                 = new Camera(this);
            this.options                = new Options(this);
            this.lights                 = new Lights(this);
            this.shapes                 = new Shapes(this);
            this.output_image           = output_image;
            this.tone_mapping_operators = new ToneMappingOperators(this);
            this.materials              = new Materials(this);
        }