Exemplo n.º 1
0
        /*! Instructs HOOPS/3dGS to redraw the scene */
        override protected void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);
            HLONG key = HCS.Open_Segment("?picture");

            HCS.Control_Update_By_Key(key, "redraw everything");
            HCS.Update_Display();
            HCS.Close_Segment();
        }
Exemplo n.º 2
0
        public HPanel()
            : base()
        {
            IntPtr winid = this.Handle;

            //Do some HOOPS prep stuff

            HCS.Delete_Segment("?picture");
            HCS.UnDefine_Alias("?picture");
            HCS.Define_Alias("?picture", "?driver/dx9/window0");

            HCS.Open_Segment("?picture");
            HCS.Set_Driver_Options("use window ID = " + winid);
            HCS.Close_Segment();
        }