| 50 | } |
| 51 | |
| 52 | int32 App::Run() |
| 53 | { |
| 54 | try |
| 55 | { |
| 56 | |
| 57 | Initialize_Internal(); |
| 58 | |
| 59 | AfterReset_Internal(); |
| 60 | |
| 61 | CreatePSOs_Internal(); |
| 62 | |
| 63 | while(window.IsAlive()) |
| 64 | { |
| 65 | if(!window.IsMinimized()) |
| 66 | { |
| 67 | Update_Internal(); |
| 68 | |
| 69 | Render_Internal(); |
| 70 | } |
| 71 | |
| 72 | window.MessageLoop(); |
| 73 | } |
| 74 | } |
| 75 | catch(SampleFramework12::Exception exception) |
| 76 | { |
| 77 | exception.ShowErrorMessage(); |
| 78 | return -1; |
| 79 | } |
| 80 | |
| 81 | Shutdown_Internal(); |
| 82 | |
| 83 | return returnCode; |
| 84 | } |
| 85 | |
| 86 | void App::CalculateFPS() |
| 87 | { |
no test coverage detected