Skip to content

Commit

Permalink
Docs: Added missing forceContextRestore method.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Aug 18, 2021
1 parent 7fb600b commit 4f41e12
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions docs/api/en/renderers/WebGLRenderer.html
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,16 @@ <h3>[method:Object extensions.get]( [param:String extensionName] )</h3>
- *WEBGL_compressed_texture_etc1*
</p>

<h3>[method:null forceContextLoss]( )</h3>
<h3>[method:void forceContextLoss]()</h3>
<p>
Simulate loss of the WebGL context. This requires support for the
[link:https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context WEBGL_lose_context] extensions.
According to [link:https://webglstats.com/ WebGLStats], as of February 2016 90% of WebGL enabled devices support this.
</p>

<h3>[method:void forceContextRestore]( )</h3>
<p>
Simulate restore of the WebGL context. This requires support for the
[link:https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context WEBGL_lose_context] extensions.
</p>

<h3>[method:Float getClearAlpha]()</h3>
Expand Down
9 changes: 7 additions & 2 deletions docs/api/zh/renderers/WebGLRenderer.html
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,16 @@ <h3>[method:Object extensions.get]( [param:String extensionName] )</h3>
- *WEBGL_compressed_texture_etc1*
</p>

<h3>[method:null forceContextLoss]( )</h3>
<h3>[method:void forceContextLoss]()</h3>
<p>
模拟WebGL环境的丢失。需要支持
[link:https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context WEBGL_lose_context]扩展才能用。
根据[link:https://webglstats.com/ WebGLStats], as of February 2016 90% of WebGL enabled devices support this.
</p>

<h3>[method:void forceContextRestore]( )</h3>
<p>
Simulate restore of the WebGL context. This requires support for the
[link:https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context WEBGL_lose_context] extensions.
</p>

<h3>[method:Float getClearAlpha]()</h3>
Expand Down

0 comments on commit 4f41e12

Please sign in to comment.