| 2135 | } |
| 2136 | |
| 2137 | void R_resize(int w, int h) |
| 2138 | { |
| 2139 | if (w <= 0 || h <= 0) |
| 2140 | return; |
| 2141 | |
| 2142 | game.clientRect.w = (float)w; |
| 2143 | game.clientRect.h = (float)h; |
| 2144 | game.aspectRatio = game.clientRect.w / game.clientRect.h; |
| 2145 | |
| 2146 | window.computeScale(); |
| 2147 | game.sceneRect = ScreenRect(0, 0, 1920, 1080); |
| 2148 | |
| 2149 | game.renderTargets.temp2.Resize(1, game.sceneRect.h / 4); |
| 2150 | game.renderTargets.scene.Resize(game.sceneRect.w, game.sceneRect.h); |
| 2151 | game.renderTargets.menu.Resize(game.clientRect.w, game.clientRect.h); |
| 2152 | game.renderTargets.menu.Clear(0.0f, 0.0f, 0.0f, 1.0f); |
| 2153 | game.renderTargets.lighting.Resize(game.clientRect.w, game.clientRect.h); |
| 2154 | game.renderTargets.temp0.Resize(game.clientRect.w, game.clientRect.h); |
| 2155 | game.renderTargets.temp1.Resize(game.clientRect.w, game.clientRect.h); |
| 2156 | } |
| 2157 | |
| 2158 | void P_run() |
| 2159 | { |
no test coverage detected