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>.
|
Enumerations | |
enum class | CacheGeometry { TriangleMesh , ConvexMesh , HeightField } |
Functions | |
static QString | getCachedFilename (const QString &filePath, CacheGeometry geom) |
static void | readCachedMesh (const QString &meshFilename, physx::PxPhysics &physics, physx::PxTriangleMesh *&triangleMesh, physx::PxConvexMesh *&convexMesh, physx::PxHeightField *&heightField, CacheGeometry geom) |
static void | writeCachedMesh (const QString &meshFilename, physx::PxDefaultMemoryOutputStream &buf, CacheGeometry geom) |
void | writeCachedTriangleMesh (const QString &filePath, physx::PxDefaultMemoryOutputStream &buf) |
void | writeCachedConvexMesh (const QString &filePath, physx::PxDefaultMemoryOutputStream &buf) |
void | writeCachedHeightField (const QString &filePath, physx::PxDefaultMemoryOutputStream &buf) |
static void | readCookedMesh (const QString &meshFilename, physx::PxPhysics &physics, physx::PxTriangleMesh *&triangleMesh, physx::PxConvexMesh *&convexMesh, physx::PxHeightField *&heightField, CacheGeometry geom) |
physx::PxTriangleMesh * | readCachedTriangleMesh (const QString &filePath, physx::PxPhysics &physics) |
physx::PxConvexMesh * | readCachedConvexMesh (const QString &filePath, physx::PxPhysics &physics) |
physx::PxHeightField * | readCachedHeightField (const QString &filePath, physx::PxPhysics &physics) |
physx::PxTriangleMesh * | readCookedTriangleMesh (const QString &filePath, physx::PxPhysics &physics) |
physx::PxConvexMesh * | readCookedConvexMesh (const QString &filePath, physx::PxPhysics &physics) |
physx::PxHeightField * | readCookedHeightField (const QString &filePath, physx::PxPhysics &physics) |
Variables | |
static QString | MESH_CACHE_PATH = qEnvironmentVariable("QT_PHYSICS_CACHE_PATH") |
|
strong |
Enumerator | |
---|---|
TriangleMesh | |
ConvexMesh | |
HeightField |
Definition at line 15 of file qcacheutils.cpp.
|
static |
Definition at line 19 of file qcacheutils.cpp.
References ConvexMesh, extension(), fileName, QString::fromUtf8(), HeightField, MESH_CACHE_PATH, and TriangleMesh.
Referenced by readCachedMesh(), and writeCachedMesh().
physx::PxConvexMesh * QCacheUtils::readCachedConvexMesh | ( | const QString & | filePath, |
physx::PxPhysics & | physics ) |
Definition at line 230 of file qcacheutils.cpp.
References ConvexMesh, and readCachedMesh().
physx::PxHeightField * QCacheUtils::readCachedHeightField | ( | const QString & | filePath, |
physx::PxPhysics & | physics ) |
Definition at line 240 of file qcacheutils.cpp.
References HeightField, and readCachedMesh().
Referenced by QQuick3DPhysicsHeightField::heightField().
|
static |
Definition at line 38 of file qcacheutils.cpp.
References ConvexMesh, getCachedFilename(), HeightField, MESH_CACHE_PATH, qCDebug, qHash(), qScopeGuard(), qWarning, QIODeviceBase::ReadOnly, and TriangleMesh.
Referenced by readCachedConvexMesh(), readCachedHeightField(), and readCachedTriangleMesh().
physx::PxTriangleMesh * QCacheUtils::readCachedTriangleMesh | ( | const QString & | filePath, |
physx::PxPhysics & | physics ) |
Definition at line 220 of file qcacheutils.cpp.
References readCachedMesh(), and TriangleMesh.
physx::PxConvexMesh * QCacheUtils::readCookedConvexMesh | ( | const QString & | filePath, |
physx::PxPhysics & | physics ) |
Definition at line 260 of file qcacheutils.cpp.
References ConvexMesh, and readCookedMesh().
physx::PxHeightField * QCacheUtils::readCookedHeightField | ( | const QString & | filePath, |
physx::PxPhysics & | physics ) |
Definition at line 270 of file qcacheutils.cpp.
References HeightField, and readCookedMesh().
Referenced by QQuick3DPhysicsHeightField::heightField().
|
static |
Definition at line 178 of file qcacheutils.cpp.
References QFileDevice::close(), ConvexMesh, file, HeightField, QIODevice::isOpen(), QFileDevice::map(), QFile::open(), qScopeGuard(), qWarning, QIODeviceBase::ReadOnly, QFile::size(), TriangleMesh, and QFileDevice::unmap().
Referenced by readCookedConvexMesh(), readCookedHeightField(), and readCookedTriangleMesh().
physx::PxTriangleMesh * QCacheUtils::readCookedTriangleMesh | ( | const QString & | filePath, |
physx::PxPhysics & | physics ) |
Definition at line 250 of file qcacheutils.cpp.
References readCookedMesh(), and TriangleMesh.
void QCacheUtils::writeCachedConvexMesh | ( | const QString & | filePath, |
physx::PxDefaultMemoryOutputStream & | buf ) |
Definition at line 168 of file qcacheutils.cpp.
References ConvexMesh, and writeCachedMesh().
void QCacheUtils::writeCachedHeightField | ( | const QString & | filePath, |
physx::PxDefaultMemoryOutputStream & | buf ) |
Definition at line 173 of file qcacheutils.cpp.
References HeightField, and writeCachedMesh().
Referenced by QQuick3DPhysicsHeightField::heightField().
|
static |
Definition at line 117 of file qcacheutils.cpp.
References getCachedFilename(), MESH_CACHE_PATH, qCDebug, qCWarning, qHash(), qScopeGuard(), qWarning, QIODeviceBase::ReadOnly, and QIODeviceBase::WriteOnly.
Referenced by writeCachedConvexMesh(), writeCachedHeightField(), and writeCachedTriangleMesh().
void QCacheUtils::writeCachedTriangleMesh | ( | const QString & | filePath, |
physx::PxDefaultMemoryOutputStream & | buf ) |
Definition at line 163 of file qcacheutils.cpp.
References TriangleMesh, and writeCachedMesh().
|
static |
Definition at line 17 of file qcacheutils.cpp.
Referenced by getCachedFilename(), readCachedMesh(), and writeCachedMesh().