MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / PushTransform

Method PushTransform

Source/Engine/Render2D/Render2D.cpp:829–840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

827}
828
829void Render2D::PushTransform(const Matrix3x3& transform)
830{
831 RENDER2D_CHECK_RENDERING_STATE;
832
833 // Combine transformation
834 Matrix3x3 finalTransform;
835 Matrix3x3::Multiply(transform, TransformCached, finalTransform);
836
837 // Push it
838 TransformLayersStack.Push(finalTransform);
839 TransformCached = TransformLayersStack.Peek();
840}
841
842void Render2D::PeekTransform(Matrix3x3& transform)
843{

Callers 15

Internal_OnDrawMethod · 0.45
DrawChildrenMethod · 0.45
DrawMethod · 0.45
DrawChildrenMethod · 0.45
DrawMethod · 0.45
DrawChildrenMethod · 0.45
DrawSelfMethod · 0.45
DrawSelfMethod · 0.45
OnDrawMethod · 0.45
DrawMethod · 0.45
DrawCommentsMethod · 0.45
DrawChildrenMethod · 0.45

Calls 3

MultiplyFunction · 0.50
PushMethod · 0.45
PeekMethod · 0.45

Tested by

no test coverage detected