| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 ::SetUnhandledExceptionFilter(LocalUnhandledExceptionFilter); | 102 ::SetUnhandledExceptionFilter(LocalUnhandledExceptionFilter); |
| 103 | 103 |
| 104 std::string error; | 104 std::string error; |
| 105 if (!o3d::RendererInstallCheck(&error)) { | 105 if (!o3d::RendererInstallCheck(&error)) { |
| 106 return false; | 106 return false; |
| 107 } | 107 } |
| 108 WNDCLASSEX wc = {0}; | 108 WNDCLASSEX wc = {0}; |
| 109 | 109 |
| 110 wc.lpszClassName = L"MY_WINDOWS_CLASS"; | 110 wc.lpszClassName = L"MY_WINDOWS_CLASS"; |
| 111 wc.cbSize = sizeof(WNDCLASSEX); | 111 wc.cbSize = sizeof(WNDCLASSEX); |
| 112 wc.style = CS_HREDRAW | CS_VREDRAW; | 112 wc.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC; |
| 113 wc.lpfnWndProc = ::WindowProc; | 113 wc.lpfnWndProc = ::WindowProc; |
| 114 wc.cbClsExtra = 0; | 114 wc.cbClsExtra = 0; |
| 115 wc.cbWndExtra = 0; | 115 wc.cbWndExtra = 0; |
| 116 wc.hInstance = instance; | 116 wc.hInstance = instance; |
| 117 wc.hIcon = ::LoadIcon(instance, IDI_APPLICATION); | 117 wc.hIcon = ::LoadIcon(instance, IDI_APPLICATION); |
| 118 wc.hIconSm = NULL; | 118 wc.hIconSm = NULL; |
| 119 wc.hCursor = ::LoadCursor(instance, IDC_ARROW); | 119 wc.hCursor = ::LoadCursor(instance, IDC_ARROW); |
| 120 wc.hbrBackground = static_cast<HBRUSH>(::GetStockObject(BLACK_BRUSH)); | 120 wc.hbrBackground = static_cast<HBRUSH>(::GetStockObject(BLACK_BRUSH)); |
| 121 wc.lpszMenuName = NULL; | 121 wc.lpszMenuName = NULL; |
| 122 | 122 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 delete g_renderer; | 238 delete g_renderer; |
| 239 g_renderer = NULL; | 239 g_renderer = NULL; |
| 240 | 240 |
| 241 delete display_window; | 241 delete display_window; |
| 242 g_display_window = NULL; | 242 g_display_window = NULL; |
| 243 g_program_path = NULL; | 243 g_program_path = NULL; |
| 244 g_program_name = NULL; | 244 g_program_name = NULL; |
| 245 | 245 |
| 246 return ret; | 246 return ret; |
| 247 } | 247 } |
| OLD | NEW |