MCPcopy Create free account
hub / github.com/carbonengine/trinity / AdjustProjection

Method AdjustProjection

trinity/Tr2Renderer.cpp:387–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385MAP_FUNCTION_AND_WRAP( "IsRightHanded", IsRightHanded, "Returns true if Trinity rendering uses a right-handed coordinate system." );
386
387void 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
400void Tr2Renderer::SetPerspectiveProjection( float fov, float front, float back, float asp, const Matrix& viewportAdjustment )

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected