TP_FreePShape_CB Struct Reference

#include <c4d_particles.h>

Detailed Description

Callback interface for the free-pshape event.
Use TP_MasterSystem::Reg_DeletePShape_CB() and TP_MasterSystem::UReg_DeletePShape_CB() to register and remove the callback.

Public Attributes

void(* FreePShape )(TP_FreePShape_CB *cb, Int32 pid, const TP_PShapePtr &shape)
 

Member Data Documentation

◆ FreePShape

void(* FreePShape) (TP_FreePShape_CB *cb, Int32 pid, const TP_PShapePtr &shape)

Called when shape of particle pid is freed.

Parameters
[in]cbThe TP_FreeParticle_CB callback object.
[in]pidThe particle ID: 0 <= pid < msys->NumParticles()
[in]shapeThe particle shape pointer structure of the particle shape handle.