| 64 | } |
| 65 | |
| 66 | inline SelectionVolume constructOrthoviewSelectionTest(const render::View& orthoView) |
| 67 | { |
| 68 | render::View scissored(orthoView); |
| 69 | |
| 70 | auto epsilon = registry::getValue<float>(RKEY_SELECT_EPSILON); |
| 71 | Vector2 deviceEpsilon(epsilon / DeviceWidth, epsilon / DeviceHeight); |
| 72 | ConstructSelectionTest(scissored, selection::Rectangle::ConstructFromPoint(Vector2(0, 0), deviceEpsilon)); |
| 73 | |
| 74 | return SelectionVolume(scissored); |
| 75 | } |
| 76 | |
| 77 | // Constructs the given view with a camera projection |
| 78 | // - with the view origin being located at three times the bounding box size away (following the view direction) |
no test coverage detected