Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QSSGMesh Namespace Reference

Classes

struct  AssetMeshSubset
 
struct  AssetVertexEntry
 
class  Mesh
 
struct  MeshInternal
 
struct  RuntimeMeshData
 

Functions

static quint32 getAlignedOffset (quint32 offset, quint32 align)
 
size_t simplifyMesh (unsigned int *destination, const unsigned int *indices, size_t indexCount, const float *vertexPositions, size_t vertexCount, size_t vertexPositionsStride, size_t targetIndexCount, float targetError, unsigned int options, float *resultError)
 
float simplifyScale (const float *vertexPositions, size_t vertexCount, size_t vertexPositionsStride)
 
void optimizeVertexCache (unsigned int *destination, const unsigned int *indices, size_t indexCount, size_t vertexCount)
 

Variables

static const size_t MULTI_HEADER_STRUCT_SIZE = 16
 
static const size_t MULTI_ENTRY_STRUCT_SIZE = 16
 
static const size_t MESH_HEADER_STRUCT_SIZE = 12
 
static const size_t MESH_STRUCT_SIZE = 56
 
static const size_t VERTEX_BUFFER_ENTRY_STRUCT_SIZE = 16
 
static const size_t SUBSET_STRUCT_SIZE_V3_V4 = 40
 
static const size_t SUBSET_STRUCT_SIZE_V5 = 48
 
static const size_t SUBSET_STRUCT_SIZE_V6 = 52
 
static const size_t LOD_STRUCT_SIZE = 12
 

Function Documentation

◆ getAlignedOffset()

static quint32 QSSGMesh::getAlignedOffset ( quint32  offset,
quint32  align 
)
inlinestatic

Definition at line 616 of file qssgmesh.cpp.

References Q_ASSERT.

Referenced by QSSGMesh::Mesh::createLightmapUVChannel(), and QSSGMesh::Mesh::fromAssetData().

+ Here is the caller graph for this function:

◆ optimizeVertexCache()

void Q_QUICK3DUTILS_EXPORT QSSGMesh::optimizeVertexCache ( unsigned int *  destination,
const unsigned int *  indices,
size_t  indexCount,
size_t  vertexCount 
)

Definition at line 1259 of file qssgmesh.cpp.

References destination.

Referenced by AssimpUtils::generateMeshData().

+ Here is the caller graph for this function:

◆ simplifyMesh()

size_t Q_QUICK3DUTILS_EXPORT QSSGMesh::simplifyMesh ( unsigned int *  destination,
const unsigned int *  indices,
size_t  indexCount,
const float *  vertexPositions,
size_t  vertexCount,
size_t  vertexPositionsStride,
size_t  targetIndexCount,
float  targetError,
unsigned int  options,
float *  resultError 
)

Definition at line 1249 of file qssgmesh.cpp.

References destination.

Referenced by QT_BEGIN_NAMESPACE::generateMeshLevelsOfDetail().

+ Here is the caller graph for this function:

◆ simplifyScale()

float Q_QUICK3DUTILS_EXPORT QSSGMesh::simplifyScale ( const float *  vertexPositions,
size_t  vertexCount,
size_t  vertexPositionsStride 
)

Definition at line 1254 of file qssgmesh.cpp.

Referenced by QT_BEGIN_NAMESPACE::generateMeshLevelsOfDetail().

+ Here is the caller graph for this function:

Variable Documentation

◆ LOD_STRUCT_SIZE

const size_t QSSGMesh::LOD_STRUCT_SIZE = 12
static

◆ MESH_HEADER_STRUCT_SIZE

const size_t QSSGMesh::MESH_HEADER_STRUCT_SIZE = 12
static

Definition at line 25 of file qssgmesh.cpp.

Referenced by QSSGMesh::MeshInternal::readMeshData(), and QSSGMesh::Mesh::save().

◆ MESH_STRUCT_SIZE

const size_t QSSGMesh::MESH_STRUCT_SIZE = 56
static

◆ MULTI_ENTRY_STRUCT_SIZE

const size_t QSSGMesh::MULTI_ENTRY_STRUCT_SIZE = 16
static

Definition at line 22 of file qssgmesh.cpp.

Referenced by QSSGMesh::MeshInternal::readFileHeader(), and QSSGMesh::Mesh::save().

◆ MULTI_HEADER_STRUCT_SIZE

const size_t QSSGMesh::MULTI_HEADER_STRUCT_SIZE = 16
static

Definition at line 19 of file qssgmesh.cpp.

Referenced by QSSGMesh::MeshInternal::readFileHeader(), and QSSGMesh::Mesh::save().

◆ SUBSET_STRUCT_SIZE_V3_V4

const size_t QSSGMesh::SUBSET_STRUCT_SIZE_V3_V4 = 40
static

Definition at line 34 of file qssgmesh.cpp.

Referenced by QSSGMesh::MeshInternal::readMeshData().

◆ SUBSET_STRUCT_SIZE_V5

const size_t QSSGMesh::SUBSET_STRUCT_SIZE_V5 = 48
static

Definition at line 36 of file qssgmesh.cpp.

Referenced by QSSGMesh::MeshInternal::readMeshData().

◆ SUBSET_STRUCT_SIZE_V6

const size_t QSSGMesh::SUBSET_STRUCT_SIZE_V6 = 52
static

◆ VERTEX_BUFFER_ENTRY_STRUCT_SIZE

const size_t QSSGMesh::VERTEX_BUFFER_ENTRY_STRUCT_SIZE = 16
static