aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/vrlayer/index.html
diff options
context:
space:
mode:
authorFlorian Merz <me@fiji-flo.de>2021-02-11 12:07:59 +0100
committerFlorian Merz <me@fiji-flo.de>2021-02-11 12:07:59 +0100
commit6ef1fa4618e08426b874529619a66adbd3d1fcf0 (patch)
tree890e3e27131be010d82ef957fa68db495006cb0e /files/ja/web/api/vrlayer/index.html
parent8260a606c143e6b55a467edf017a56bdcd6cba7e (diff)
downloadtranslated-content-6ef1fa4618e08426b874529619a66adbd3d1fcf0.tar.gz
translated-content-6ef1fa4618e08426b874529619a66adbd3d1fcf0.tar.bz2
translated-content-6ef1fa4618e08426b874529619a66adbd3d1fcf0.zip
unslug ja: move
Diffstat (limited to 'files/ja/web/api/vrlayer/index.html')
-rw-r--r--files/ja/web/api/vrlayer/index.html91
1 files changed, 0 insertions, 91 deletions
diff --git a/files/ja/web/api/vrlayer/index.html b/files/ja/web/api/vrlayer/index.html
deleted file mode 100644
index b0edd0d577..0000000000
--- a/files/ja/web/api/vrlayer/index.html
+++ /dev/null
@@ -1,91 +0,0 @@
----
-title: VRLayer
-slug: Web/API/VRLayer
-translation_of: Web/API/VRLayerInit
----
-<div>{{APIRef("WebVR API")}}{{SeeCompatTable}}</div>
-
-<p><a href="/en-US/docs/Web/API/WebVR_API">WebVR API</a> の <strong><code>VRLayer</code></strong> インターフェイス (ディクショナリ)は,VRHMDへ表示したいコンテンツレイヤー( {{domxref("HTMLCanvasElement")}} または {{domxref("OffscreenCanvas")}})を表します。</p>
-
-<p>{{domxref("VRDisplay.requestPresent()")}} メソッドを使うことでレイヤーを表示することができます。</p>
-
-<h2 id="プロパティ">プロパティ</h2>
-
-<dl>
- <dt>{{domxref("VRLayer.leftBounds")}}</dt>
- <dd>{{domxref("VRDisplay")}} に表示されるキャンバスの左側テクスチャ境界を定義します。</dd>
- <dt>{{domxref("VRLayer.rightBounds")}}</dt>
- <dd>{{domxref("VRDisplay")}} に表示されるキャンバスの右側テクスチャ境界を定義します。</dd>
- <dt>{{domxref("VRLayer.source")}}</dt>
- <dd>{{domxref("VRDisplay")}} に表示されるコンテンツの対象となるキャンバスを定義します。</dd>
-</dl>
-
-<h2 id="例">例</h2>
-
-<pre class="notranslate">// currently returns an empty array
-var layers = vrDisplay.getLayers();
-
-if(navigator.getVRDisplays) {
- console.log('WebVR 1.1 supported');
- // Then get the displays attached to the computer
- navigator.getVRDisplays().then(function(displays) {
- // If a display is available, use it to present the scene
- if(displays.length &gt; 0) {
- vrDisplay = displays[0];
- console.log('Display found');
- // Starting the presentation when the button is clicked: It can only be called in response to a user gesture
- btn.addEventListener('click', function() {
- vrDisplay.requestPresent([{ source: canvas }]).then(function() {
- console.log('Presenting to WebVR display');
-
- // Here it returns an array of VRLayerInit objects
- var layers = vrDisplay.getLayers();
-
- ...
- });
- });
- }
- });
-}</pre>
-
-<p>{{domxref("VRLayerInit")}} objects look something like this:</p>
-
-<pre class="notranslate">{
- leftBounds : [ ... ],
- rightBounds: [ ... ],
- source: <em>canvasReference</em>
-}</pre>
-
-<div class="blockIndicator note">
-<p><strong>Note</strong>: The <code>canvasReference</code> refers to the {{htmlelement("canvas")}} element itself, not the WebGL context associated with the canvas. The other two members are arrays</p>
-</div>
-
-<h2 id="仕様">仕様</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">仕様</th>
- <th scope="col">ステータス</th>
- <th scope="col">備考</th>
- </tr>
- <tr>
- <td>{{SpecName('WebVR', '#interface-vrlayer', 'VRLayer')}}</td>
- <td>{{Spec2('WebVR')}}</td>
- <td>初回定義</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="ブラウザの互換性">ブラウザの互換性</h2>
-
-<p>{{Compat("api.VRLayerInit")}}</p>
-
-<div id="compat-mobile"></div>
-
-<h2 id="参照">参照</h2>
-
-<ul>
- <li><a href="/en-US/docs/Web/API/WebVR_API">WebVR API homepage</a>.</li>
- <li><a href="http://mozvr.com/">MozVr.com</a> — Mozilla VRチームのデモ,ダウンロード,その他のリソース.</li>
-</ul>