MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / dumbDownNormal

Method dumbDownNormal

Engine/source/core/stream/bitStream.cpp:430–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430Point3F BitStream::dumbDownNormal(const Point3F& vec, S32 bitCount)
431{
432 U8 buffer[128];
433 BitStream temp(buffer, 128);
434
435 temp.writeNormalVector(vec, bitCount);
436 temp.setCurPos(0);
437
438 Point3F ret;
439 temp.readNormalVector(&ret, bitCount);
440 return ret;
441}
442
443void BitStream::writeVector( Point3F vec, F32 maxMag, S32 magBits, S32 normalBits )
444{

Callers

nothing calls this directly

Calls 3

writeNormalVectorMethod · 0.80
setCurPosMethod · 0.80
readNormalVectorMethod · 0.80

Tested by

no test coverage detected