This class decodes and decompresses quad tree nodes.
More...
#include <NodeCodecQuadTreeHalfFloat.h>
|
JPH_INLINE | DecodingContext (const Header *inHeader) |
| Constructor.
|
|
template<class TriangleContext , class Visitor > |
JPH_INLINE void | WalkTree (const uint8 *inBufferStart, const TriangleContext &inTriangleContext, Visitor &ioVisitor) |
| Walk the node tree calling the Visitor::VisitNodes for each node encountered and Visitor::VisitTriangles for each triangle encountered.
|
|
bool | IsDoneWalking () const |
| This can be used to have the visitor early out (ioVisitor.ShouldAbort() returns true) and later continue again (call WalkTree() again)
|
|
This class decodes and decompresses quad tree nodes.
◆ DecodingContext()
JPH_INLINE NodeCodecQuadTreeHalfFloat::DecodingContext::DecodingContext |
( |
const Header * |
inHeader | ) |
|
|
inlineexplicit |
◆ IsDoneWalking()
bool NodeCodecQuadTreeHalfFloat::DecodingContext::IsDoneWalking |
( |
| ) |
const |
|
inline |
This can be used to have the visitor early out (ioVisitor.ShouldAbort() returns true) and later continue again (call WalkTree() again)
◆ sGetTriangleBlockStart()
static const void * NodeCodecQuadTreeHalfFloat::DecodingContext::sGetTriangleBlockStart |
( |
const uint8 * |
inBufferStart, |
|
|
uint |
inTriangleBlockID |
|
) |
| |
|
inlinestatic |
Convert a triangle block ID to the start of the triangle buffer.
◆ sTriangleBlockIDBits()
static uint NodeCodecQuadTreeHalfFloat::DecodingContext::sTriangleBlockIDBits |
( |
const Header * |
inHeader | ) |
|
|
inlinestatic |
Get the amount of bits needed to store an ID to a triangle block.
◆ WalkTree()
template<class TriangleContext , class Visitor >
JPH_INLINE void NodeCodecQuadTreeHalfFloat::DecodingContext::WalkTree |
( |
const uint8 * |
inBufferStart, |
|
|
const TriangleContext & |
inTriangleContext, |
|
|
Visitor & |
ioVisitor |
|
) |
| |
|
inline |
Walk the node tree calling the Visitor::VisitNodes for each node encountered and Visitor::VisitTriangles for each triangle encountered.
The documentation for this class was generated from the following file: