MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / scaleCallback

Method scaleCallback

src/game/TextureMatrix.cpp:309–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307
308
309void TextureMatrix::scaleCallback(const std::string& /*name*/) {
310 const fvec4 values = BZDB.evalFVec4(scaleVar);
311 if (!isnan(values.x)) {
312 uScaleFreq = values.x;
313 vScaleFreq = values.y;
314 uScale = values.z;
315 vScale = values.w;
316 }
317}
318
319
320void TextureMatrix::shiftCallback(const std::string& /*name*/) {

Callers 1

staticScaleCallbackMethod · 0.80

Calls 2

evalFVec4Method · 0.80
isnanFunction · 0.50

Tested by

no test coverage detected