Merge pull request #192 from kvark/ortho

Exposed Ortho fields as public (last time it was Perspective)
This commit is contained in:
Dzmitry Malyshau 2015-03-18 01:05:26 +03:00
commit c80f0889be

View file

@ -198,9 +198,12 @@ impl<S: BaseFloat + 'static> ToMatrix4<S> for Perspective<S> {
/// An orthographic projection with arbitrary left/right/bottom/top distances /// An orthographic projection with arbitrary left/right/bottom/top distances
#[derive(Copy, Clone, PartialEq, RustcEncodable, RustcDecodable)] #[derive(Copy, Clone, PartialEq, RustcEncodable, RustcDecodable)]
pub struct Ortho<S> { pub struct Ortho<S> {
pub left: S, right: S, pub left: S,
pub bottom: S, top: S, pub right: S,
pub near: S, far: S, pub bottom: S,
pub top: S,
pub near: S,
pub far: S,
} }
impl<S: BaseFloat> Projection<S> for Ortho<S> { impl<S: BaseFloat> Projection<S> for Ortho<S> {