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  IndexBuffer
struct  Lod
struct  Subset
struct  SubsetBounds
struct  TargetBuffer
struct  VertexBuffer
struct  VertexBufferEntry

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 81 of file qssgmesh_p.h.

Member Typedef Documentation

◆ ComponentType

◆ DrawMode

Definition at line 84 of file qssgmesh_p.h.

◆ Winding

Definition at line 85 of file qssgmesh_p.h.

Member Function Documentation

◆ createLightmapUVChannel()

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

Definition at line 1022 of file qssgmesh.cpp.

◆ drawMode()

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

Definition at line 161 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 625 of file qssgmesh.cpp.

◆ fromRuntimeData()

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

Definition at line 764 of file qssgmesh.cpp.

◆ hasLightmapUVChannel()

bool QSSGMesh::Mesh::hasLightmapUVChannel ( ) const

Definition at line 1012 of file qssgmesh.cpp.

◆ indexBuffer()

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

Definition at line 141 of file qssgmesh_p.h.

◆ isValid()

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

Definition at line 159 of file qssgmesh_p.h.

◆ loadAll()

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

Definition at line 600 of file qssgmesh.cpp.

◆ loadMesh()

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

Definition at line 581 of file qssgmesh.cpp.

◆ save()

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

Definition at line 913 of file qssgmesh.cpp.

◆ subsets()

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

Definition at line 143 of file qssgmesh_p.h.

◆ targetBuffer()

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

Definition at line 142 of file qssgmesh_p.h.

◆ vertexBuffer()

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

Definition at line 140 of file qssgmesh_p.h.

◆ winding()

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

Definition at line 162 of file qssgmesh_p.h.

◆ MeshInternal

friend struct MeshInternal
friend

Definition at line 177 of file qssgmesh_p.h.


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