Skip to content

Instantly share code, notes, and snippets.

@MortimerGoro
Last active November 29, 2016 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MortimerGoro/e2629827d8fd4d7cdcdd6f9fbc4b4a6b to your computer and use it in GitHub Desktop.
Save MortimerGoro/e2629827d8fd4d7cdcdd6f9fbc4b4a6b to your computer and use it in GitHub Desktop.
VRCompositor traits for blogpost
// Trait object that handles WebVR commands.
// Receives the texture_id associated to the WebGLContext.
pub trait VRCompositorHandler: Send {
fn handle(&mut self, command: VRCompositorCommand, texture_id: Option<u32>);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment