Function SimOneAPI::SetFrameCB

Function Documentation

bool SimOneAPI::SetFrameCB(void (*FrameStart)(int frame), void (*FrameEnd)(int frame))

仿真场景中每帧的回调,每帧开始和结束时调用回调函数

  • function: SetFrameCB

  • brief: Register the callback func which being called at the beginning and end of each frame.

参数
  • FrameStart[in] callback func which being called at the beginning of the frame frame: current frame index

  • FrameEnd[in] callback func which being called at the end of the frame frame: current frame index

返回

Success or not