Function SimOneAPI::SetFrameCB

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.

参数 :
  • FrameStart [in]

    每帧开始时调用的回调函数

    Callback function called at the beginning of each frame.

  • frame [in]

    当前帧索引

    Current frame index.

  • FrameEnd [in]

    每帧结束时调用的回调函数

    Callback function called at the end of each frame.

  • frame [in]

    当前帧索引

    Current frame index.

返回 :

成功注册返回true,否则返回false

Returns true if successfully registered, false otherwise.