MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / translateTexture

Method translateTexture

radiantcore/patch/Patch.cpp:745–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

743}
744
745void Patch::translateTexture(float s, float t)
746{
747 undoSave();
748
749 s = -1 * s / _shader.getWidth();
750 t = t / _shader.getHeight();
751
752 translateTexCoords(Vector2(s,t));
753
754 controlPointsChanged();
755}
756
757void Patch::scaleTexture(float s, float t)
758{

Callers 4

TEST_FFunction · 0.80
shiftTextureFunction · 0.80

Calls 2

getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected