Exposed Ortho fields as public (last time it was Perspective)

This commit is contained in:
Dzmitry Malyshau 2015-03-18 01:04:21 +03:00
parent c20350336e
commit 1e4271c2a6

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
#[derive(Copy, Clone, PartialEq, RustcEncodable, RustcDecodable)]
pub struct Ortho<S> {
pub left: S, right: S,
pub bottom: S, top: S,
pub near: S, far: S,
pub left: S,
pub right: S,
pub bottom: S,
pub top: S,
pub near: S,
pub far: S,
}
impl<S: BaseFloat> Projection<S> for Ortho<S> {