Exemplo n.º 1
0
 public bool InitPictureBox(IntPtr handle)
 {
     try
     {
         PictureBoxRenderControl control = new PictureBoxRenderControl();
         control.PictureBox = (PictureBox)PictureBox.FromHandle(handle);
         control.Init();
         _renderControl = control;
         RShader.InitShaders();
         Screen.Init();
         RLog.Info(GetGLInfo());
         RLog.Info("Picture Box Renderer Initialized.");
         return(true);
     } catch (Exception e) {
         RLog.Error(e);
         return(false);
     }
 }