| 198 | static VpSpriteSorter _vp_sprite_sorter = nullptr; |
| 199 | |
| 200 | static Point MapXYZToViewport(const Viewport &vp, int x, int y, int z) |
| 201 | { |
| 202 | Point p = RemapCoords(x, y, z); |
| 203 | p.x -= vp.virtual_width / 2; |
| 204 | p.y -= vp.virtual_height / 2; |
| 205 | return p; |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * Initialize viewport of the window for use. |
no test coverage detected