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

Method setDynamicScaleVar

src/game/TextureMatrix.cpp:468–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466
467
468void TextureMatrix::setDynamicScaleVar(const std::string& var) {
469 if (!scaleVar.empty()) {
470 BZDB.removeCallback(scaleVar, staticScaleCallback, this);
471 }
472 scaleVar = var;
473 if (!scaleVar.empty()) {
474 BZDB.addCallback(scaleVar, staticScaleCallback, this);
475 scaleCallback(spinVar);
476 }
477}
478
479
480void TextureMatrix::setDynamicShiftVar(const std::string& var) {

Callers 2

readMethod · 0.80
AddTextureMatrixMethod · 0.80

Calls 3

emptyMethod · 0.45
removeCallbackMethod · 0.45
addCallbackMethod · 0.45

Tested by

no test coverage detected