public PhongShading(Bgr24Bitmap bitmap, Model model, ILighting lighting, bool d, bool n, bool s)
     : base(bitmap, model, lighting)
 {
     _d = d;
     _n = n;
     _s = s;
     _texturesEnabled = d || n || s;
 }
Example #2
0
 public static void InitSystem()
 {
     voiceEngine       = new VoiceEngine();
     lighting          = new Lighting();
     device            = new Device();
     media             = new Media.MediaPlayer();
     speechInterpreter = new InterpreterSpeech();
     camera            = new ImageEngine();
     weather           = new Weather();
     events            = new Events();
     progammer         = new Programmer();
     configuration     = new SystemConfiguration();
 }
Example #3
0
        public Light GetLight(LightSetting setting)
        {
            this.setting = setting;
            switch (setting.Vendor)
            {
            case LightVendor.Anda:
                Lighting = new AndaLight();
                break;

            case LightVendor.Custom:
                //Lighting = new LightingOPT(setting.prm);
                Lighting = new LightCustom(setting.EasySerialPort);
                break;

            case LightVendor.OPT:
                Lighting = new LightingOPT(setting.EasySerialPort);
                break;
            }
            return(this);
        }
Example #4
0
 public GouraudShading(Bgr24Bitmap bitmap, Model model, ILighting lighting)
     : base(bitmap, model, lighting)
 {
 }
Example #5
0
 public PlaneShading(Bgr24Bitmap bitmap, Model model, ILighting lighting)
     : base(bitmap, model)
 {
     _lighting = lighting;
     _zBuffer  = new ZBuffer(_bitmap.PixelWidth, _bitmap.PixelHeight);
 }
Example #6
0
 public Light(int key, ILighting lighting)
     : base(key)
 {
     this.Lighting = lighting;
 }