载入中...
搜索中...
未找到
eve::cloth::Cloth类 参考

Script-facing owner and factory for 2D, 3D, and GPU cloth runtimes. 更多...

#include <ClothModule.h>

类 eve::cloth::Cloth 继承关系图:
eve::Module

Public 成员函数

 Module_REG (Cloth)
 
eve::physics::Cloth * newCloth (int cols, int rows, float spacing, float originX, float originY)
 Create a caller-owned 2D cloth grid in pixel space.
 
eve::physics::Cloth3D * newCloth3D (int cols, int rows, float spacing, float originX, float originY, float originZ)
 Create a caller-owned 3D cloth grid in meter space.
 
std::unique_ptr< eve::physics::Cloth3D > createCloth (const eve::physics::ClothModel &model)
 Create an independent 3D runtime by copying a validated model.
 
eve::physics::ClothGPU * newClothGPU (int cols, int rows, float spacing, float originX, float originY)
 Create a caller-owned Vulkan-compute 2D cloth grid.
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 Module.
 
virtual std::string getName () const =0
 Returns the name.
 

详细描述

Script-facing owner and factory for 2D, 3D, and GPU cloth runtimes.

在文件 ClothModule.h 第 17 行定义.

成员函数说明

◆ createCloth()

std::unique_ptr< eve::physics::Cloth3D > eve::cloth::Cloth::createCloth ( const eve::physics::ClothModel &  model)

Create an independent 3D runtime by copying a validated model.

在文件 ClothModule.cpp 第 26 行定义.

引用了 model.

◆ Module_REG()

eve::cloth::Cloth::Module_REG ( Cloth  )

◆ newCloth()

eve::physics::Cloth * eve::cloth::Cloth::newCloth ( int  cols,
int  rows,
float  spacing,
float  originX,
float  originY 
)

Create a caller-owned 2D cloth grid in pixel space.

返回
Owning pointer; the caller must destroy the cloth after use. @ownership Ownership transfers to the caller; the module retains no pointer. @lifetime Valid until caller destruction. @thread Create and use on the owning physics thread. @reentrancy Invokes no callbacks.

在文件 ClothModule.cpp 第 17 行定义.

引用了 cols, rows , 以及 spacing.

◆ newCloth3D()

eve::physics::Cloth3D * eve::cloth::Cloth::newCloth3D ( int  cols,
int  rows,
float  spacing,
float  originX,
float  originY,
float  originZ 
)

Create a caller-owned 3D cloth grid in meter space.

返回
Owning pointer; the caller must destroy the cloth after use. @ownership Ownership transfers to the caller; the module retains no pointer. @lifetime Valid until caller destruction. @thread Create and use on the owning physics thread. @reentrancy Invokes no callbacks.

在文件 ClothModule.cpp 第 21 行定义.

引用了 cols, rows , 以及 spacing.

◆ newClothGPU()

eve::physics::ClothGPU * eve::cloth::Cloth::newClothGPU ( int  cols,
int  rows,
float  spacing,
float  originX,
float  originY 
)

Create a caller-owned Vulkan-compute 2D cloth grid.

返回
Owning pointer; the caller must destroy the cloth after use. @ownership Ownership transfers to the caller; the module retains no pointer. @lifetime Valid until caller destruction and while its graphics backend remains available. @thread Create and use on the owning render thread. @reentrancy Invokes no callbacks.

在文件 ClothModule.cpp 第 30 行定义.

引用了 cols, gpgpu, rows , 以及 spacing.


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