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
qcacheutils.cpp File Reference

(81cc3ef2f77b44bc2eed117ea2f57cf81edb1a37)

#include "qcacheutils_p.h"
#include <QFile>
#include <QFileInfo>
#include <QtQml/QQmlFile>
#include <extensions/PxExtensionsAPI.h>
#include "qphysicsworld_p.h"
+ Include dependency graph for qcacheutils.cpp:

Go to the source code of this file.

Namespaces

namespace  QCacheUtils
 

Enumerations

enum class  QCacheUtils::CacheGeometry { QCacheUtils::TriangleMesh , QCacheUtils::ConvexMesh , QCacheUtils::HeightField }
 

Functions

static QString QCacheUtils::getCachedFilename (const QString &filePath, CacheGeometry geom)
 
static void QCacheUtils::readCachedMesh (const QString &meshFilename, physx::PxPhysics &physics, physx::PxTriangleMesh *&triangleMesh, physx::PxConvexMesh *&convexMesh, physx::PxHeightField *&heightField, CacheGeometry geom)
 
static void QCacheUtils::writeCachedMesh (const QString &meshFilename, physx::PxDefaultMemoryOutputStream &buf, CacheGeometry geom)
 
void QCacheUtils::writeCachedTriangleMesh (const QString &filePath, physx::PxDefaultMemoryOutputStream &buf)
 
void QCacheUtils::writeCachedConvexMesh (const QString &filePath, physx::PxDefaultMemoryOutputStream &buf)
 
void QCacheUtils::writeCachedHeightField (const QString &filePath, physx::PxDefaultMemoryOutputStream &buf)
 
static void QCacheUtils::readCookedMesh (const QString &meshFilename, physx::PxPhysics &physics, physx::PxTriangleMesh *&triangleMesh, physx::PxConvexMesh *&convexMesh, physx::PxHeightField *&heightField, CacheGeometry geom)
 
physx::PxTriangleMesh * QCacheUtils::readCachedTriangleMesh (const QString &filePath, physx::PxPhysics &physics)
 
physx::PxConvexMesh * QCacheUtils::readCachedConvexMesh (const QString &filePath, physx::PxPhysics &physics)
 
physx::PxHeightField * QCacheUtils::readCachedHeightField (const QString &filePath, physx::PxPhysics &physics)
 
physx::PxTriangleMesh * QCacheUtils::readCookedTriangleMesh (const QString &filePath, physx::PxPhysics &physics)
 
physx::PxConvexMesh * QCacheUtils::readCookedConvexMesh (const QString &filePath, physx::PxPhysics &physics)
 
physx::PxHeightField * QCacheUtils::readCookedHeightField (const QString &filePath, physx::PxPhysics &physics)
 

Variables

static QString QCacheUtils::MESH_CACHE_PATH = qEnvironmentVariable("QT_PHYSICS_CACHE_PATH")