浏览代码

Merge pull request #13442 from servinlp/webglrenderer.animate_documentation

Docs: Added animate function to WebGLRenderer
Mr.doob 7 年之前
父节点
当前提交
90a07e3187
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      docs/api/renderers/WebGLRenderer.html

+ 4 - 0
docs/api/renderers/WebGLRenderer.html

@@ -286,6 +286,10 @@
 		See [page:WebGLRenderer.capabilities capabilities.maxTextures].
 		See [page:WebGLRenderer.capabilities capabilities.maxTextures].
 		</div>
 		</div>
 
 
+		<h3>[method:null animate]( [param:Function callback] )</h3>
+		<div>[page:Function callback] — (optional) If specified, the function will be called every available frame. If left empty it will stop any already ongoing animation started by this function.</div>
+		<div>A build in function that can be used instead of [link:https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame requestAnimationFrame].</div>
+
 		<h3>[method:null clear]( [param:Boolean color], [param:Boolean depth], [param:Boolean stencil] )</h3>
 		<h3>[method:null clear]( [param:Boolean color], [param:Boolean depth], [param:Boolean stencil] )</h3>
 		<div>
 		<div>
 		Tells the renderer to clear its color, depth or stencil drawing buffer(s).
 		Tells the renderer to clear its color, depth or stencil drawing buffer(s).