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. | |
using | TriangleHeader = typename TriangleCodec::TriangleHeader |
Header for the triangles. | |
Public Member Functions | |
bool | Convert (const Array< IndexedTriangle > &inTriangles, const Array< AABBTreeBuilder::Node > &inNodes, const VertexList &inVertices, const AABBTreeBuilder::Node *inRoot, bool inStoreUserData, const char *&outError) |
Convert AABB tree. Returns false if failed. | |
const ByteBuffer & | GetBuffer () const |
Get resulting data. | |
ByteBuffer & | GetBuffer () |
Get resulting data. | |
const NodeHeader * | GetNodeHeader () const |
Get header for tree. | |
const TriangleHeader * | GetTriangleHeader () const |
Get header for triangles. | |
const void * | GetRoot () const |
Get root of resulting tree. | |
Static Public Attributes | |
static const int | HeaderSize = NodeCodec::HeaderSize |
Size in bytes of the header of the tree. | |
static const int | NumChildrenPerNode = NodeCodec::NumChildrenPerNode |
Maximum number of children per node in the tree. | |
static const int | TriangleHeaderSize = TriangleCodec::TriangleHeaderSize |
Size in bytes of the header for the triangles. | |
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.