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

(39f5cf93c7e66647e1fe6967845cbb3015137a03)

#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 , QCacheUtils::TriangleMesh ,
  QCacheUtils::ConvexMesh , QCacheUtils::HeightField
}
enum class  QCacheUtils::CacheGeometry {
  QCacheUtils::TriangleMesh , QCacheUtils::ConvexMesh , QCacheUtils::HeightField , 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")