engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IPhysXCooking类 参考abstract

IPhysXCooking, PhysX cooking and serialization abstraction 更多...

#include <IPhysXCooking.h>

Public 成员函数

virtual bool AllowParallelBuild () const
 Checks whether parallel PhysX cooking is allowed. 更多...
 
virtual EPhysXCookingResult CookConvex (FName Format, EPhysXMeshCookFlags CookFlags, const TArray< FVector > &SrcBuffer, TArray< uint8 > &OutBuffer) const =0
 Cooks the source convex data for the platform and stores the cooked data internally. 更多...
 
virtual bool CookHeightField (FName Format, FIntPoint HFSize, const void *Samples, uint32 SamplesStride, TArray< uint8 > &OutBuffer) const =0
 Cooks the source height field data for the platform and stores the cooked data internally. 更多...
 
virtual bool CookTriMesh (FName Format, EPhysXMeshCookFlags CookFlags, const TArray< FVector > &SrcVertices, const TArray< struct FTriIndices > &SrcIndices, const TArray< uint16 > &SrcMaterialIndices, const bool FlipNormals, TArray< uint8 > &OutBuffer) const =0
 Cooks the source Tri-Mesh data for the platform and stores the cooked data internally. 更多...
 
virtual EPhysXCookingResult CreateConvex (FName Format, EPhysXMeshCookFlags CookFlags, const TArray< FVector > &SrcBuffer, physx::PxConvexMesh *&OutBuffer) const =0
 Cooks the source convex data for the platform and returns the PhysX geometry directly (meant for runtime when you just need the geometry directly without serializing out) 更多...
 
virtual bool CreateHeightField (FName Format, FIntPoint HFSize, const void *Samples, uint32 SamplesStride, physx::PxHeightField *&OutHeightField) const =0
 Cooks the source height field data for the platform and returns the PhysX geometry directly (meant for runtime when you just need the geometry directly without serializing out) 更多...
 
virtual bool CreateTriMesh (FName Format, EPhysXMeshCookFlags CookFlags, const TArray< FVector > &SrcVertices, const TArray< struct FTriIndices > &SrcIndices, const TArray< uint16 > &SrcMaterialIndices, const bool FlipNormals, physx::PxTriangleMesh *&OutTriangleMesh) const =0
 Cooks the source Tri-Mesh data for the platform and returns the PhysX geometry directly (meant for runtime when you just need the geometry directly without serializing out) 更多...
 
virtual physx::PxCooking * GetCooking () const =0
 Get the actual physx cooker object
 
virtual void GetSupportedFormats (TArray< FName > &OutFormats) const =0
 Gets the list of supported formats. 更多...
 
virtual uint16 GetVersion (FName Format) const =0
 Gets the current version of the specified PhysX format. 更多...
 
virtual ~IPhysXCooking ()
 Virtual destructor.
 

详细描述

IPhysXCooking, PhysX cooking and serialization abstraction

成员函数说明

◆ AllowParallelBuild()

virtual bool IPhysXCooking::AllowParallelBuild ( ) const
inlinevirtual

Checks whether parallel PhysX cooking is allowed.

Note: This method is not currently used yet.

返回
true if this PhysX format can cook in parallel, false otherwise.

◆ CookConvex()

virtual EPhysXCookingResult IPhysXCooking::CookConvex ( FName  Format,
EPhysXMeshCookFlags  CookFlags,
const TArray< FVector > &  SrcBuffer,
TArray< uint8 > &  OutBuffer 
) const
pure virtual

Cooks the source convex data for the platform and stores the cooked data internally.

参数
FormatThe desired format
CookFlagsFlags used to provide options for this cook
SrcBufferThe source buffer
OutBufferThe resulting cooked data
返回
An enum indicating full success, partial success, or failure (
参见
EPhysXCookingResult)

◆ CookHeightField()

virtual bool IPhysXCooking::CookHeightField ( FName  Format,
FIntPoint  HFSize,
const void *  Samples,
uint32  SamplesStride,
TArray< uint8 > &  OutBuffer 
) const
pure virtual

Cooks the source height field data for the platform and stores the cooked data internally.

参数
FormatThe desired format
HFSizeSize of height field [NumColumns, NumRows]
SrcBufferThe source buffer
OutBufferThe resulting cooked data
返回
true on success, false otherwise.

◆ CookTriMesh()

virtual bool IPhysXCooking::CookTriMesh ( FName  Format,
EPhysXMeshCookFlags  CookFlags,
const TArray< FVector > &  SrcVertices,
const TArray< struct FTriIndices > &  SrcIndices,
const TArray< uint16 > &  SrcMaterialIndices,
const bool  FlipNormals,
TArray< uint8 > &  OutBuffer 
) const
pure virtual

Cooks the source Tri-Mesh data for the platform and stores the cooked data internally.

参数
FormatThe desired format.
CookFlagsFlags used to provide options for this cook
SrcBufferThe source buffer.
OutBufferThe resulting cooked data.
返回
true on success, false otherwise.

◆ CreateConvex()

virtual EPhysXCookingResult IPhysXCooking::CreateConvex ( FName  Format,
EPhysXMeshCookFlags  CookFlags,
const TArray< FVector > &  SrcBuffer,
physx::PxConvexMesh *&  OutBuffer 
) const
pure virtual

Cooks the source convex data for the platform and returns the PhysX geometry directly (meant for runtime when you just need the geometry directly without serializing out)

参数
FormatThe desired format
CookFlagsFlags used to provide options for this cook
SrcBufferThe source buffer
OutBufferThe resulting cooked data
返回
The cooked convex mesh geometry

◆ CreateHeightField()

virtual bool IPhysXCooking::CreateHeightField ( FName  Format,
FIntPoint  HFSize,
const void *  Samples,
uint32  SamplesStride,
physx::PxHeightField *&  OutHeightField 
) const
pure virtual

Cooks the source height field data for the platform and returns the PhysX geometry directly (meant for runtime when you just need the geometry directly without serializing out)

参数
FormatThe desired format
HFSizeSize of height field [NumColumns, NumRows]
SrcBufferThe source buffer
OutBufferThe resulting cooked data
返回
true on success, false otherwise.

◆ CreateTriMesh()

virtual bool IPhysXCooking::CreateTriMesh ( FName  Format,
EPhysXMeshCookFlags  CookFlags,
const TArray< FVector > &  SrcVertices,
const TArray< struct FTriIndices > &  SrcIndices,
const TArray< uint16 > &  SrcMaterialIndices,
const bool  FlipNormals,
physx::PxTriangleMesh *&  OutTriangleMesh 
) const
pure virtual

Cooks the source Tri-Mesh data for the platform and returns the PhysX geometry directly (meant for runtime when you just need the geometry directly without serializing out)

参数
FormatThe desired format.
CookFlagsFlags used to provide options for this cook
SrcBufferThe source buffer.
OutBufferThe resulting cooked data.
返回
true on success, false otherwise.

◆ GetSupportedFormats()

virtual void IPhysXCooking::GetSupportedFormats ( TArray< FName > &  OutFormats) const
pure virtual

Gets the list of supported formats.

参数
OutFormatsWill hold the list of formats.

◆ GetVersion()

virtual uint16 IPhysXCooking::GetVersion ( FName  Format) const
pure virtual

Gets the current version of the specified PhysX format.

参数
FormatThe format to get the version for.
返回
Version number.

该类的文档由以下文件生成: