MCPcopy Create free account
hub / github.com/SFML/SFML / applyTransform

Method applyTransform

src/SFML/Graphics/RenderTarget.cpp:789–797  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

787
788////////////////////////////////////////////////////////////
789void RenderTarget::applyTransform(const Transform& transform)
790{
791 // No need to call glMatrixMode(GL_MODELVIEW), it is always the
792 // current mode (for optimization purpose, since it's the most used)
793 if (transform == Transform::Identity)
794 glCheck(glLoadIdentity());
795 else
796 glCheck(glLoadMatrixf(transform.getMatrix()));
797}
798
799
800////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected