| 385 | MAP_FUNCTION_AND_WRAP( "IsRightHanded", IsRightHanded, "Returns true if Trinity rendering uses a right-handed coordinate system." ); |
| 386 | |
| 387 | void Tr2Renderer::AdjustProjection( const Vector2& scaling, const Vector2& translation ) |
| 388 | { |
| 389 | s_projectionTransform = s_projectionRawTransform; |
| 390 | Matrix& proj = s_projectionTransform; |
| 391 | proj._11 *= scaling.x; |
| 392 | proj._22 *= scaling.y; |
| 393 | proj._31 = scaling.x * proj._31 + proj._34 * translation.x; |
| 394 | proj._32 = scaling.y * proj._32 + proj._34 * translation.y; |
| 395 | |
| 396 | SetProjectionDerivedValues(); |
| 397 | } |
| 398 | |
| 399 | |
| 400 | void Tr2Renderer::SetPerspectiveProjection( float fov, float front, float back, float asp, const Matrix& viewportAdjustment ) |
nothing calls this directly
no test coverage detected