Exposed Ortho fields as public (last time it was Perspective)
This commit is contained in:
parent
c20350336e
commit
1e4271c2a6
1 changed files with 6 additions and 3 deletions
|
@ -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> {
|
||||||
|
|
Loading…
Reference in a new issue