| 1122 | } |
| 1123 | |
| 1124 | void TriDevice::GetPickRayFromViewport( int x, int y, TriViewport* viewport, const Matrix& view, const Matrix& proj, Vector3& rayWorld, Vector3& startWorld ) |
| 1125 | { |
| 1126 | float xp, yp; |
| 1127 | ScreenToProjection( x, y, &xp, &yp, viewport ); |
| 1128 | |
| 1129 | ConvertProjectionCoordToWorldPickRay( xp, yp, &proj, &view, &startWorld, &rayWorld ); |
| 1130 | } |
| 1131 | |
| 1132 | void TriDevice::ScreenToProjection( int x, int y, float* fx, float* fy ) |
| 1133 | { |
nothing calls this directly
no test coverage detected