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; }
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(); }
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); }
public GouraudShading(Bgr24Bitmap bitmap, Model model, ILighting lighting) : base(bitmap, model, lighting) { }
public PlaneShading(Bgr24Bitmap bitmap, Model model, ILighting lighting) : base(bitmap, model) { _lighting = lighting; _zBuffer = new ZBuffer(_bitmap.PixelWidth, _bitmap.PixelHeight); }
public Light(int key, ILighting lighting) : base(key) { this.Lighting = lighting; }