Jolt Physics
A multi core friendly Game Physics Engine
|
Conversion algorithm that converts an AABB tree to an optimized binary buffer. More...
#include <AABBTreeToBuffer.h>
Public Types | |
using | NodeHeader = typename NodeCodec::Header |
Header for the tree. More... | |
using | TriangleHeader = typename TriangleCodec::TriangleHeader |
Header for the triangles. More... | |
Public Member Functions | |
bool | Convert (const VertexList &inVertices, const AABBTreeBuilder::Node *inRoot, const char *&outError) |
Convert AABB tree. Returns false if failed. More... | |
const ByteBuffer & | GetBuffer () const |
Get resulting data. More... | |
ByteBuffer & | GetBuffer () |
Get resulting data. More... | |
const NodeHeader * | GetNodeHeader () const |
Get header for tree. More... | |
const TriangleHeader * | GetTriangleHeader () const |
Get header for triangles. More... | |
const void * | GetRoot () const |
Get root of resulting tree. More... | |
Static Public Attributes | |
static const int | HeaderSize = NodeCodec::HeaderSize |
Size in bytes of the header of the tree. More... | |
static const int | NumChildrenPerNode = NodeCodec::NumChildrenPerNode |
Maximum number of children per node in the tree. More... | |
static const int | TriangleHeaderSize = TriangleCodec::TriangleHeaderSize |
Size in bytes of the header for the triangles. More... | |
Conversion algorithm that converts an AABB tree to an optimized binary buffer.
using AABBTreeToBuffer< TriangleCodec, NodeCodec >::NodeHeader = typename NodeCodec::Header |
Header for the tree.
using AABBTreeToBuffer< TriangleCodec, NodeCodec >::TriangleHeader = typename TriangleCodec::TriangleHeader |
Header for the triangles.
|
inline |
Convert AABB tree. Returns false if failed.
|
inline |
Get resulting data.
|
inline |
Get resulting data.
|
inline |
Get header for tree.
|
inline |
Get root of resulting tree.
|
inline |
Get header for triangles.
|
static |
Size in bytes of the header of the tree.
|
static |
Maximum number of children per node in the tree.
|
static |
Size in bytes of the header for the triangles.