예제 #1
0
파일: Form1.cs 프로젝트: pBactusp/REngine
        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");
        }