mw::nar::Projection_cl
ClassClass that handles perspective transformation matrices.[Details]
#include <narProjection.h>
Public Methods | |
Projection_cl(f32 w, f32 h, f32 near, f32 far, f32 aov=66.0) | |
void | GetMTX44 (nn::math::MTX44 &r_Mtx) const |
Gets the perspective matrix. | |
void | GetTrimmed (nn::math::MTX44 &r_Mtx, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, f32 aov=66.f) const |
Returns the trimmed projection matrix. | |
void | Set (f32 w, f32 h, f32 near, f32 far, f32 aov=66.0) |
Sets the projection matrix. |
Class that handles perspective transformation matrices.
mw::nar::Projection_cl::Projection_cl |
( | f32 | w, | |
f32 | h, | |||
f32 | near, | |||
f32 | far, | |||
f32 | aov = 66.0 | |||
) | [inline] |
w | Image width. | |
h | Image height. | |
near | Distance to near plane. | |
far | Distance to far plane. | |
aov | Angle of view, in degrees. |
void mw::nar::Projection_cl::GetTrimmed |
( | nn::math::MTX44 & |
r_Mtx, | |
f32 | l, | |||
f32 | r, | |||
f32 | b, | |||
f32 | t, | |||
f32 | n, | |||
f32 | f, | |||
f32 | aov = 66.f | |||
) | const |
Returns the trimmed projection matrix.
[out] | r_Mtx | |
[in] | l,r,b,t | Specifies the trimming position when the x,y coordinate range of the viewing frustum to exclude from trimming is set to [-1,1] . |
n | Distance to near clipping plane. | |
f | Distance to far clipping plane. | |
aov | Angle of view, in degrees. |
void mw::nar::Projection_cl::Set |
( | f32 | w, | |
f32 | h, | |||
f32 | near, | |||
f32 | far, | |||
f32 | aov = 66.0 | |||
) |
Sets the projection matrix.
w | Image width. | |
h | Image height. | |
near | Distance to near plane. | |
far | Distance to far plane. | |
aov | Angle of view, in degrees. |
© 2011-2012 Nintendo. All rights reserved.
CONFIDENTIAL