WIP: hacky world torus

This commit is contained in:
2016-09-25 00:41:14 -07:00
parent 8a68c1780e
commit 9323380d5c
5 changed files with 76 additions and 19 deletions

View File

@@ -6,7 +6,8 @@ extern crate openvr as vr;
extern crate openvr_sys;
pub use self::vr::Eye;
pub use self::vr::tracking::TrackedDeviceClass;
pub use self::vr::common::Size;
pub use self::vr::tracking::{TrackedDeviceClass, TrackedDevicePoses};
use self::gfx::{tex, Factory, Typed};
use self::gfx_device_gl::Resources as GLResources;
@@ -54,7 +55,7 @@ impl VR {
vr::common::TextureBounds::new((0.0, 1.0), (0.0, 1.0)));
}
pub fn recommended_render_target_size(&self) -> vr::common::Size {
pub fn recommended_render_target_size(&self) -> Size {
self.system.recommended_render_target_size()
}
@@ -149,7 +150,7 @@ pub struct EyeBuffer<T, D>
}
pub fn create_eyebuffer<T, D>(factory: &mut gfx_device_gl::Factory,
size: vr::common::Size)
size: Size)
-> Result<EyeBuffer<T, D>, gfx::CombinedError>
where T: gfx::format::RenderFormat + gfx::format::TextureFormat,
D: gfx::format::DepthFormat + gfx::format::TextureFormat {