addInclude() public méthode

public addInclude ( String include ) : void
include String
Résultat void
 public Form1()
 {
     InitializeComponent();
     cam = new Camera(new Point3(0, 2, -3), new Point3(0, 1, 2));
     frame = new Frame(cam, "Cyan");
     frame.addInclude("colors.inc");
     l = Light.pointLight(new Point3(2, 4, -3));
     frame.add(l);
     Event e = f.event1(2, eve);
     frame.addEvent(e);
     frame.addEvent(f.event1(2, add));
     frame.add(f.sphere(f.p3(0, 1, 2, reactive: true), rrad: f.integral(f.lift0(1f), .5f), reactive: true));
     frame.start(30, 20);
 }
Exemple #2
0
 public Form1()
 {
     InitializeComponent();
     cam = new Camera(new Point3(0, 2, -3), new Point3(0, 1, 2));
     f = new Frame(cam, "Cyan");
     f.addInclude("colors.inc");
     for (int i = 0; i < 10; i++)
     {
         s = new Sphere(new Point3(i, 1, 2), 2);
         f.add(s);
     }
     l = new Light(new Point3(2, 4, -3));
     f.add(l);
 }
Exemple #3
0
        public Form1()
        {
            InitializeComponent();
            cam   = new Camera(new Point3(0, 2, -3), new Point3(0, 1, 2));
            frame = new Frame(cam, "Cyan");
            frame.addInclude("colors.inc");
            l = Light.pointLight(new Point3(2, 4, -3));
            frame.add(l);
            Event e = f.event1(2, eve);

            frame.addEvent(e);
            frame.addEvent(f.event1(2, add));
            frame.add(f.sphere(f.p3(0, 1, 2, reactive: true), rrad: f.integral(f.lift0(1f), .5f), reactive: true));
            frame.start(30, 20);
        }