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

Method dumbDownNormal

Engine/source/core/stream/bitStream.cpp:400–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400Point3F BitStream::dumbDownNormal(const Point3F& vec, S32 bitCount)
401{
402 U8 buffer[128];
403 BitStream temp(buffer, 128);
404
405 temp.writeNormalVector(vec, bitCount);
406 temp.setCurPos(0);
407
408 Point3F ret;
409 temp.readNormalVector(&ret, bitCount);
410 return ret;
411}
412
413void BitStream::writeVector( Point3F vec, F32 maxMag, S32 magBits, S32 normalBits )
414{

Callers

nothing calls this directly

Calls 3

writeNormalVectorMethod · 0.80
setCurPosMethod · 0.80
readNormalVectorMethod · 0.80

Tested by

no test coverage detected