|
|
@@ -1617,7 +1617,7 @@ class Renderer {
|
|
|
* for best compatibility.
|
|
|
*
|
|
|
* @async
|
|
|
- * @param {?Function} callback - The application's animation loop.
|
|
|
+ * @param {?onAnimationCallback} callback - The application's animation loop.
|
|
|
* @return {Promise} A Promise that resolves when the set has been executed.
|
|
|
*/
|
|
|
async setAnimationLoop( callback ) {
|
|
|
@@ -3114,4 +3114,12 @@ class Renderer {
|
|
|
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * Animation loop parameter of `renderer.setAnimationLoop()`.
|
|
|
+ *
|
|
|
+ * @callback onAnimationCallback
|
|
|
+ * @param {DOMHighResTimeStamp} time - A timestamp indicating the end time of the previous frame's rendering.
|
|
|
+ * @param {XRFrame} [frame] - A reference to the current XR frame. Only relevant when using XR rendering.
|
|
|
+ */
|
|
|
+
|
|
|
export default Renderer;
|