Beispiel #1
0
        private void Render()
        {
            RE.Render(camera_Selected, scene_Selected, mesh_Selected);

            Bitmap tempBitmap = RE.ScaleToFit(RE.Frame, displayPB.Size);

            displayPB.BackgroundImage = tempBitmap; // RE.ScaleToFit(RE.Frame, displayPB.Size);
            offset_w = (displayPB.Width - tempBitmap.Width) / 2;
            offset_h = (displayPB.Height - tempBitmap.Height) / 2;

            displayPB.Refresh();

            //MessageBox.Show("Rendering has completed");
        }