Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QSSGMeshBVHBuilder Class Reference

#include <qssgmeshbvhbuilder_p.h>

+ Collaboration diagram for QSSGMeshBVHBuilder:

Public Member Functions

 QSSGMeshBVHBuilder (const QSSGMesh::Mesh &mesh)
 
 QSSGMeshBVHBuilder (const QByteArray &vertexBuffer, int stride, int posOffset, bool hasUV=false, int uvOffset=-1, bool hasIndexBuffer=false, const QByteArray &indexBuffer=QByteArray(), QSSGRenderComponentType indexBufferType=QSSGRenderComponentType::Int32)
 
std::unique_ptr< QSSGMeshBVHbuildTree ()
 

Detailed Description

Definition at line 23 of file qssgmeshbvhbuilder_p.h.

Constructor & Destructor Documentation

◆ QSSGMeshBVHBuilder() [1/2]

QSSGMeshBVHBuilder::QSSGMeshBVHBuilder ( const QSSGMesh::Mesh & mesh)

◆ QSSGMeshBVHBuilder() [2/2]

QSSGMeshBVHBuilder::QSSGMeshBVHBuilder ( const QByteArray & vertexBuffer,
int stride,
int posOffset,
bool hasUV = false,
int uvOffset = -1,
bool hasIndexBuffer = false,
const QByteArray & indexBuffer = QByteArray(),
QSSGRenderComponentType indexBufferType = QSSGRenderComponentType::Int32 )

Definition at line 44 of file qssgmeshbvhbuilder.cpp.

References Int16, Int32, UnsignedInt16, and UnsignedInt32.

Member Function Documentation

◆ buildTree()

std::unique_ptr< QSSGMeshBVH > QSSGMeshBVHBuilder::buildTree ( )

Definition at line 68 of file qssgmeshbvhbuilder.cpp.

References QSSGMeshBVHNode::boundingData, QSSGMesh::Mesh::drawMode(), QSSGBaseTypeHelpers::getSizeOfType(), QSSGMesh::Mesh::isValid(), QSSGMeshBVHNode::offset, QByteArray::size(), and QSSGMesh::Mesh::subsets().

+ Here is the call graph for this function:

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