public Form1(GestureEngine gestEng)
 {
     //initialize
     this.gestEng = gestEng;
     gestEng.GestureChanged += new Start_Screen_Graphical.GestureEngine.NewGestureEventHandler(gestEngine_GestureChanged);
     InitializeComponent();
 }
        public test_form_4(int side, GestureEngine gesteng)
        {
            this.gestEngine = gesteng;
            gestEngine.GestureChanged += new Start_Screen_Graphical.GestureEngine.NewGestureEventHandler(gestEngine_GestureChanged);
            this.side = 0;

            // get the list of file extensions
            this.faces = form_utilities.getFileExtensions();
            InitializeComponent();
        }
 public SubScreen_Handler(GestureEngine gesteng)
 {
     this.gesteng = gesteng;
     //this.screen = screen;
 }
        /// <summary>
        /// Default constructor for scene initialization
        /// </summary>
        /// <param name="device"></param>
        /// <param name="form"></param>
        /// <param name="context"></param>
        public Scene(Device device, Form form, DeviceContext context)
        {
            //Get the input for a new gesture
            gestEngine = new GestureEngine();
            //Initialize the subscreen handler
            SSH = new SubScreen_Handler(gestEngine);
            //initialize new skeleton image detection
            //skImg = new SkeletonImage();

            gestEngine.reset();
            gestEngine.init();
            gestEngine.GestureChanged += new Start_Screen_Graphical.GestureEngine.NewGestureEventHandler(gestEngine_GestureChanged);
            this.device = device;
            initTextures();
            Initialize(form, context);
            CreateCube();
            createScreen();
            createAlert();
            CreateConstBuffer(context);
            CubeIndexBuffer();
            ScreenIndexBuffer();
            AlertIndexBuffer();
            BuildShaderInputLayout();
        }