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 a Magic Leap back end #35

Merged
merged 4 commits into from Aug 1, 2019
Merged

Add a Magic Leap back end #35

merged 4 commits into from Aug 1, 2019

Conversation

@asajeffrey
Copy link
Member

asajeffrey commented Jul 31, 2019

This PR ports over the magicleap back end from rust-webvr.

I also did a few drive-by fixes, none of which are very exciting.

@asajeffrey
Copy link
Member Author

asajeffrey commented Jul 31, 2019

@asajeffrey asajeffrey mentioned this pull request Jul 31, 2019
3 of 3 tasks complete
impl MagicLeapDevice {
fn start_frame(&mut self) -> Result<(), MLResult> {
if !self.in_frame {
warn!("Starting frame");

This comment has been minimized.

This comment has been minimized.

@Manishearth

Manishearth Aug 1, 2019

Member

(probably should be info everywhere)

This comment has been minimized.

@asajeffrey

asajeffrey Aug 1, 2019

Author Member

Oops, that's a leftover from me debugging.

.ok()?
};

warn!("Started frame");

This comment has been minimized.


warn!("Started frame");
self.in_frame = true;
}

This comment has been minimized.

@Manishearth

Manishearth Aug 1, 2019

Member

maybe an else warn?

}

// Approximate the viewer transform by linear interpolation of the two eyes
fn lerp_transforms(&self) -> RigidTransform3D<f32, Viewer, Native> {

This comment has been minimized.

@Manishearth

Manishearth Aug 1, 2019

Member

ugh but also i see why we need this (Josh needs it too for openxr)

This comment has been minimized.

@asajeffrey

asajeffrey Aug 1, 2019

Author Member

Indeed. If we find ourselves doing this often, we may need to rethink the API.

@asajeffrey asajeffrey force-pushed the asajeffrey:magicleap branch from 2ae3fd0 to 1458b00 Aug 1, 2019
@asajeffrey
Copy link
Member Author

asajeffrey commented Aug 1, 2019

@bors-servo r=Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Aug 1, 2019

📌 Commit 1458b00 has been approved by Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Aug 1, 2019

Testing commit 1458b00 with merge f67b762...

bors-servo added a commit that referenced this pull request Aug 1, 2019
Add a Magic Leap back end

This PR ports over the magicleap back end from rust-webvr.

I also did a few drive-by fixes, none of which are very exciting.
@bors-servo
Copy link
Contributor

bors-servo commented Aug 1, 2019

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

@bors-servo bors-servo merged commit 1458b00 into servo:master Aug 1, 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.