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

Allow setting near/far planes and listening for view update events #41

Merged
merged 1 commit into from Aug 22, 2019

Conversation

@Manishearth
Copy link
Member

Manishearth commented Aug 20, 2019

r? @asajeffrey

I couldn't handle magicleap, sadly, since I can't get it to build, and it seems to manage its own projection matrices

Fixes #32

Copy link
Member

asajeffrey left a comment

OK, a minor nit about keeping a dirty bit in the clip info, since most of the structs in webxr-api are intended to be immutable. Can we keep the mutable state somewhere else?

pub near: f32,
pub far: f32,
/// Was there an update that needs propagation to the client?
update: bool,

This comment has been minimized.

@asajeffrey

asajeffrey Aug 21, 2019

Member

Hmm, it would be nice if we didn't have to keep a dirty bit on the ClipPlanes itself.

@Manishearth Manishearth force-pushed the Manishearth:wherever-you-are branch from 8feca87 to 3e6486e Aug 21, 2019
@asajeffrey
Copy link
Member

asajeffrey commented Aug 21, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Aug 21, 2019

📌 Commit 3e6486e has been approved by asajeffrey

bors-servo added a commit that referenced this pull request Aug 21, 2019
Allow setting near/far planes and listening for view update events

r? @asajeffrey

I couldn't handle magicleap, sadly, since I can't get it to build, and it seems to manage its own projection matrices

Fixes #32
@bors-servo
Copy link
Contributor

bors-servo commented Aug 21, 2019

Testing commit 3e6486e with merge 6d80f5a...

@jdm
Copy link
Member

jdm commented Aug 21, 2019

error[E0583]: file not found for module `utils`

  --> webxr/lib.rs:31:16

   |

31 | pub(crate) mod utils;

   |                ^^^^^

   |

   = help: name the file either utils.rs or utils/mod.rs inside the directory "webxr"

error: aborting due to previous error
@bors-servo
Copy link
Contributor

bors-servo commented Aug 21, 2019

💔 Test failed - checks-travis

@Manishearth Manishearth force-pushed the Manishearth:wherever-you-are branch from 3e6486e to e77822c Aug 22, 2019
@Manishearth
Copy link
Member Author

Manishearth commented Aug 22, 2019

@bors-servo r=asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented Aug 22, 2019

📌 Commit e77822c has been approved by asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented Aug 22, 2019

Testing commit e77822c with merge ee763bc...

bors-servo added a commit that referenced this pull request Aug 22, 2019
Allow setting near/far planes and listening for view update events

r? @asajeffrey

I couldn't handle magicleap, sadly, since I can't get it to build, and it seems to manage its own projection matrices

Fixes #32
@bors-servo
Copy link
Contributor

bors-servo commented Aug 22, 2019

☀️ Test successful - checks-travis
Approved by: asajeffrey
Pushing ee763bc to master...

@bors-servo bors-servo merged commit e77822c into servo:master Aug 22, 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
bors-servo added a commit to servo/servo that referenced this pull request Aug 23, 2019
Allow setting near/far clip planes

needs servo/webxr#41

r? @asajeffrey

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24018)
<!-- Reviewable:end -->
bors-servo added a commit to servo/servo that referenced this pull request Aug 23, 2019
Allow setting near/far clip planes

needs servo/webxr#41

r? @asajeffrey

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24018)
<!-- Reviewable:end -->
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.

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