Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QSSGMesh::Mesh Class Reference

#include <qssgmesh_p.h>

Collaboration diagram for QSSGMesh::Mesh:

Classes

struct  VertexBufferEntry
struct  VertexBuffer
struct  IndexBuffer
struct  TargetBuffer
struct  SubsetBounds
struct  Lod
struct  Subset

Public Types

using DrawMode = QSSGRenderDrawMode
using Winding = QSSGRenderWinding
using ComponentType = QSSGRenderComponentType

Public Member Functions

VertexBuffer vertexBuffer () const
IndexBuffer indexBuffer () const
TargetBuffer targetBuffer () const
QVector< Subsetsubsets () const
bool isValid () const
DrawMode drawMode () const
Winding winding () const
quint32 save (QIODevice *device, quint32 id=0) const
bool hasLightmapUVChannel () const
bool createLightmapUVChannel (float texelsPerUnit, const QMatrix4x4 &scale)

Static Public Member Functions

static Mesh loadMesh (QIODevice *device, quint32 id=0)
static QMap< quint32, MeshloadAll (QIODevice *device)
static Mesh fromAssetData (const QVector< AssetVertexEntry > &vbufEntries, const QByteArray &indexBufferData, ComponentType indexComponentType, const QVector< AssetMeshSubset > &subsets, quint32 numTargets=0, quint32 numTargetComps=0)
static Mesh fromRuntimeData (const RuntimeMeshData &data, QString *error)

Friends

struct MeshInternal

Detailed Description

Definition at line 83 of file qssgmesh_p.h.

Member Typedef Documentation

◆ ComponentType

◆ DrawMode

Definition at line 86 of file qssgmesh_p.h.

◆ Winding

Definition at line 87 of file qssgmesh_p.h.

Member Function Documentation

◆ createLightmapUVChannel()

bool QSSGMesh::Mesh::createLightmapUVChannel ( float texelsPerUnit,
const QMatrix4x4 & scale )

Definition at line 1024 of file qssgmesh.cpp.

◆ drawMode()

DrawMode QSSGMesh::Mesh::drawMode ( ) const
inline

Definition at line 163 of file qssgmesh_p.h.

◆ fromAssetData()

Mesh QSSGMesh::Mesh::fromAssetData ( const QVector< AssetVertexEntry > & vbufEntries,
const QByteArray & indexBufferData,
ComponentType indexComponentType,
const QVector< AssetMeshSubset > & subsets,
quint32 numTargets = 0,
quint32 numTargetComps = 0 )
static

Definition at line 627 of file qssgmesh.cpp.

◆ fromRuntimeData()

Mesh QSSGMesh::Mesh::fromRuntimeData ( const RuntimeMeshData & data,
QString * error )
static

Definition at line 766 of file qssgmesh.cpp.

◆ hasLightmapUVChannel()

bool QSSGMesh::Mesh::hasLightmapUVChannel ( ) const

Definition at line 1014 of file qssgmesh.cpp.

◆ indexBuffer()

IndexBuffer QSSGMesh::Mesh::indexBuffer ( ) const
inline

Definition at line 143 of file qssgmesh_p.h.

◆ isValid()

bool QSSGMesh::Mesh::isValid ( ) const
inline

Definition at line 161 of file qssgmesh_p.h.

◆ loadAll()

QMap< quint32, Mesh > QSSGMesh::Mesh::loadAll ( QIODevice * device)
static

Definition at line 602 of file qssgmesh.cpp.

◆ loadMesh()

Mesh QSSGMesh::Mesh::loadMesh ( QIODevice * device,
quint32 id = 0 )
static

Definition at line 583 of file qssgmesh.cpp.

◆ save()

quint32 QSSGMesh::Mesh::save ( QIODevice * device,
quint32 id = 0 ) const

Definition at line 915 of file qssgmesh.cpp.

◆ subsets()

QVector< Subset > QSSGMesh::Mesh::subsets ( ) const
inline

Definition at line 145 of file qssgmesh_p.h.

◆ targetBuffer()

TargetBuffer QSSGMesh::Mesh::targetBuffer ( ) const
inline

Definition at line 144 of file qssgmesh_p.h.

◆ vertexBuffer()

VertexBuffer QSSGMesh::Mesh::vertexBuffer ( ) const
inline

Definition at line 142 of file qssgmesh_p.h.

◆ winding()

Winding QSSGMesh::Mesh::winding ( ) const
inline

Definition at line 164 of file qssgmesh_p.h.

◆ MeshInternal

friend struct MeshInternal
friend

Definition at line 179 of file qssgmesh_p.h.


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