NNS_G3dGlbPerspective

構文

#include <nnsys/g3d/glbstate.h>
void
NNS_G3dGlbPerspective(
    fx32 fovySin,
    fx32 fovyCos,
    fx32 aspect,
    fx32 n,
    fx32 f
);

引数

fovySin 縦(y)方向の視界角度(画角)/2の正弦をとった値
fovyCos 縦(y)方向の視界角度(画角)/2の余弦をとった値
aspect 縦に対する横の視界の割合(縦横比:視界での幅/高さ)
n 視点からnearクリップ面までの距離
f 視点からfarクリップ面までの距離

返り値

なし。

説明

G3Dライブラリ内部で保持しているグローバル状態に、透視射影行列をセットします。

参照

NNS_G3dGlbPerspectiveW, NNS_G3dGlbOrtho, NNS_G3dGlbFrustum

履歴

2004/08/02 初版