Exposed Ortho fields as public

This commit is contained in:
Dzmitry Malyshau 2015-03-18 00:59:43 +03:00
parent 6bc43c7738
commit c20350336e

View file

@ -145,9 +145,12 @@ impl<S: BaseFloat, A: Angle<S>> ToMatrix4<S> for PerspectiveFov<S, A> {
/// A perspective projection with arbitrary left/right/bottom/top distances
#[derive(Copy, Clone, PartialEq, RustcEncodable, RustcDecodable)]
pub struct Perspective<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 + 'static> Projection<S> for Perspective<S> {