Jolt Physics
A multi core friendly Game Physics Engine
|
#include <NodeCodecQuadTreeHalfFloat.h>
Classes | |
class | DecodingContext |
This class decodes and decompresses quad tree nodes. More... | |
class | EncodingContext |
This class encodes and compresses quad tree nodes. More... | |
struct | Header |
Header for the tree. More... | |
struct | Node |
Node structure. More... | |
Public Types | |
enum | : uint32 { TRIANGLE_COUNT_BITS = 4 , TRIANGLE_COUNT_SHIFT = 28 , TRIANGLE_COUNT_MASK = (1 << TRIANGLE_COUNT_BITS) - 1 , OFFSET_BITS = 28 , OFFSET_MASK = (1 << OFFSET_BITS) - 1 , OFFSET_NON_SIGNIFICANT_BITS = 2 , OFFSET_NON_SIGNIFICANT_MASK = (1 << OFFSET_NON_SIGNIFICANT_BITS) - 1 } |
Node properties. More... | |
Static Public Attributes | |
static constexpr int | NumChildrenPerNode = 4 |
Number of child nodes of this node. | |
static constexpr int | HeaderSize = sizeof(Header) |
Size of the header (an empty struct is always > 0 bytes so this needs a separate variable) | |
static constexpr int | StackSize = 128 |
Stack size to use during DecodingContext::sWalkTree. | |
Node properties.
Enumerator | |
---|---|
TRIANGLE_COUNT_BITS | |
TRIANGLE_COUNT_SHIFT | |
TRIANGLE_COUNT_MASK | |
OFFSET_BITS | |
OFFSET_MASK | |
OFFSET_NON_SIGNIFICANT_BITS | |
OFFSET_NON_SIGNIFICANT_MASK |
|
staticconstexpr |
Size of the header (an empty struct is always > 0 bytes so this needs a separate variable)
|
staticconstexpr |
Number of child nodes of this node.
|
staticconstexpr |
Stack size to use during DecodingContext::sWalkTree.