示例#1
0
        public MainGame()
        {
            this.IsMouseVisible = true;

            graphics = new GraphicsDeviceManager(this);
            this.graphics.PreparingDeviceSettings += this.GraphicsDevicePreparingDeviceSettings;

            Content.RootDirectory = "Content";

            this.chooser = new Kinect(this, ColorImageFormat.RgbResolution640x480Fps30, DepthImageFormat.Resolution640x480Fps30);
            this.Services.AddService(typeof(Kinect), this.chooser);

            this.Components.Add(this.chooser);

            this.statusCheck = new KinectStatusCheck(this);
            this.Components.Add(this.statusCheck);

            this.depthComponent = new DepthStreamRenderer(this);

            this.plane = new Plane(this);
            this.Components.Add(this.plane);

            UpdateStreamSizeAndLocation();

            // Obliczenia
            a = 7;
            b = 3;

            sum1 = Add(true);
            b1 = BasicTest();

            sum2 = Add(false);
            b2 = BasicTest();
        }
示例#2
0
        public MainGame()
        {
            this.IsMouseVisible = true;

            graphics = new GraphicsDeviceManager(this);
            this.graphics.PreparingDeviceSettings += this.GraphicsDevicePreparingDeviceSettings;

            Content.RootDirectory = "Content";

            this.chooser = new Kinect(this, ColorImageFormat.RgbResolution640x480Fps30, DepthImageFormat.Resolution640x480Fps30);
            this.Services.AddService(typeof(Kinect), this.chooser);

            this.Components.Add(this.chooser);

            this.statusCheck = new KinectStatusCheck(this);
            this.Components.Add(this.statusCheck);

            this.depthComponent = new DepthStreamRenderer(this);

            this.plane = new Plane(this);
            this.Components.Add(this.plane);

            UpdateStreamSizeAndLocation();

            // Obliczenia
            a = 7;
            b = 3;

            sum1 = Add(true);
            b1   = BasicTest();

            sum2 = Add(false);
            b2   = BasicTest();
        }