MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / setFloatValue

Method setFloatValue

Engine/source/console/console.cpp:2686–2705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2684}
2685
2686void ConsoleValue::setFloatValue(F32 val)
2687{
2688 if(type <= TypeInternalString)
2689 {
2690 fval = val;
2691 ival = static_cast<U32>(val);
2692 if(bufferLen > 0)
2693 {
2694 dFree(sval);
2695 bufferLen = 0;
2696 }
2697 sval = typeValueEmpty;
2698 type = TypeInternalFloat;
2699 }
2700 else
2701 {
2702 const char *dptr = Con::getData(TypeF32, &val, 0);
2703 Con::setData(type, dataPtr, 0, 1, &dptr, enumTable);
2704 }
2705}
2706
2707//------------------------------------------------------------------------------
2708

Callers 8

setFloatVariableMethod · 0.45
setCopyVariableMethod · 0.45
execMethod · 0.45
setFloatVariableFunction · 0.45
console.cppFile · 0.45
pushVarMethod · 0.45
pushValueMethod · 0.45
pushFLTMethod · 0.45

Calls 3

getDataFunction · 0.85
setDataFunction · 0.85
dFreeFunction · 0.50

Tested by

no test coverage detected