Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for mock XR devices #8

Merged
merged 2 commits into from Jul 10, 2019
Merged

Add support for mock XR devices #8

merged 2 commits into from Jul 10, 2019

Conversation

@asajeffrey
Copy link
Member

asajeffrey commented Jul 10, 2019

This PR adds a frist-cut API for mocking, and a headless implementation. It's based on the webxr-test API (https://github.com/immersive-web/webxr-test-api/) and the rust-webvr mock API (https://github.com/servo/rust-webvr/blob/master/rust-webvr-api/src/mock.rs).

@asajeffrey
Copy link
Member Author

asajeffrey commented Jul 10, 2019

webxr-api/mock.rs Show resolved Hide resolved

impl Device for HeadlessDevice {
fn floor_transform(&self) -> TypedRigidTransform3D<f32, Native, Floor> {
self.floor_transform.clone()

This comment has been minimized.

@Manishearth

Manishearth Jul 10, 2019

Member

It occurs to me that this API doesn't need to exist, we'll basically always be using the local-to-floor transform from the script crate.

@Manishearth
Copy link
Member

Manishearth commented Jul 10, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Jul 10, 2019

📌 Commit 06a6a07 has been approved by Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Jul 10, 2019

Testing commit 06a6a07 with merge 5eddeab...

bors-servo added a commit that referenced this pull request Jul 10, 2019
Add support for mock XR devices

This PR adds a frist-cut API for mocking, and a headless implementation. It's based on the webxr-test API (https://github.com/immersive-web/webxr-test-api/) and the rust-webvr mock API (https://github.com/servo/rust-webvr/blob/master/rust-webvr-api/src/mock.rs).
@bors-servo
Copy link
Contributor

bors-servo commented Jul 10, 2019

☀️ Test successful - checks-travis
Approved by: Manishearth
Pushing 5eddeab to master...

@bors-servo bors-servo merged commit 06a6a07 into servo:master Jul 10, 2019
3 checks passed
3 checks passed
Travis CI - Pull Request Build Passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.