Function SimOneAPI::SetFrameCB¶
Defined in File SimOneServiceAPI.h
Function Documentation¶
-
bool SimOneAPI::SetFrameCB(void (*FrameStart)(int frame), void (*FrameEnd)(int frame))¶
仿真场景中每帧的回调函数
Callback function for each frame in a simulation scene.
此函数用于注册在每帧开始和结束时调用的回调函数
This function is used to register callback functions that are called at the beginning and end of each frame in a simulation.
- 参数:¶
- void (*FrameStart)(int frame)¶
[in]
每帧开始时调用的回调函数,函数签名为:void FrameStart(int frame)
Callback function called at the beginning of each frame, function signature: void FrameStart(int frame).
- void (*FrameEnd)(int frame)¶
[in]
每帧结束时调用的回调函数,函数签名为:void FrameEnd(int frame)
Callback function called at the end of each frame, function signature: void FrameEnd(int frame).
- 返回:¶
成功注册返回true,否则返回false
Returns true if successfully registered, false otherwise.