Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
NodeCodecQuadTreeHalfFloat Class Reference

#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.
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : uint32

Node properties.

Enumerator
TRIANGLE_COUNT_BITS 
TRIANGLE_COUNT_SHIFT 
TRIANGLE_COUNT_MASK 
OFFSET_BITS 
OFFSET_MASK 
OFFSET_NON_SIGNIFICANT_BITS 
OFFSET_NON_SIGNIFICANT_MASK 

Member Data Documentation

◆ HeaderSize

constexpr int NodeCodecQuadTreeHalfFloat::HeaderSize = sizeof(Header)
staticconstexpr

Size of the header (an empty struct is always > 0 bytes so this needs a separate variable)

◆ NumChildrenPerNode

constexpr int NodeCodecQuadTreeHalfFloat::NumChildrenPerNode = 4
staticconstexpr

Number of child nodes of this node.

◆ StackSize

constexpr int NodeCodecQuadTreeHalfFloat::StackSize = 128
staticconstexpr

Stack size to use during DecodingContext::sWalkTree.


The documentation for this class was generated from the following file: