Update the viewport to the correct size of the container window */
| 141 | Update the viewport to the correct size of the container window |
| 142 | */ |
| 143 | void RenderEngine::resize() { |
| 144 | //fix the window size |
| 145 | auto size = surface->GetDrawableArea(); |
| 146 | |
| 147 | //TOOD: update renderer size |
| 148 | |
| 149 | #ifdef __APPLE__ |
| 150 | //resizeMetalLayer(getNativeWindow(window)); |
| 151 | #endif |
| 152 | } |
| 153 | |
| 154 | /** |
| 155 | Initialize static singletons. Invoked automatically if needed. |