WebXR Raw Camera Access Module: Difference between revisions

From WebXR Wiki
Jump to navigation Jump to search
(Add boilerplate information)
 
(Add short summary and WebIDL)
 
Line 6: Line 6:
  |group = CG
  |group = CG
}}
}}
The WebXR Raw Camera Access module provides a means to access the raw camera image displayed behind an immersive-ar session, when the device is responsible for rendering that camera image.
==WebIDL==
<syntaxhighlight lang="idl">
partial interface XRView {
  [SameObject] readonly attribute XRCamera? camera;
};
[SecureContext, Exposed=Window]
interface XRCamera {
  readonly attribute unsigned long width;
  readonly attribute unsigned long height;
};
partial interface XRWebGLBinding {
  WebGLTexture? getCameraImage(XRCamera camera);
};
</syntaxhighlight>


== External Links ==
== External Links ==

Latest revision as of 01:01, 1 March 2023

WebXR Raw Camera Access Module
StatusCG-REPORT
Last Updated24 June 2021
Editor(s)Piotr Bialecki
CG or WG?CG

The WebXR Raw Camera Access module provides a means to access the raw camera image displayed behind an immersive-ar session, when the device is responsible for rendering that camera image.

WebIDL[edit]

partial interface XRView {
  [SameObject] readonly attribute XRCamera? camera;
};

[SecureContext, Exposed=Window]
interface XRCamera {
  readonly attribute unsigned long width;
  readonly attribute unsigned long height;
};

partial interface XRWebGLBinding {
  WebGLTexture? getCameraImage(XRCamera camera);
};

External Links[edit]