private void OpenGLControl_OpenGLDraw(object sender, OpenGLEventArgs args) { //OpenGL gl = args.OpenGL; //scn.UpdateTextureBitmap(gl, 0, ImageHelper.BitmapImage2Bitmap(Ch0Image)); //scn.UpdateTextureBitmap(gl, 1, ab.lastBitmap); //scn.UpdateTextureBitmap(gl, 1, ImageHelper.BitmapImage2Bitmap(Ch0Image)); scn.Draw(gl, (float)OpenGLControl.ActualWidth, (float)OpenGLControl.ActualHeight); //scn.Draw(gl, 300, 300); }
private void OpenGLControl_OpenGLDraw(object sender, OpenGLEventArgs args) { shaderScene.Draw(gl, (float)OpenGLControl.ActualWidth, (float)OpenGLControl.ActualHeight); }