postest.h

Position Test Functions.
[詳細]

#include <nds/arm9/video.h>
#include <nds/arm9/videoGL.h>

ソースコードを見る。

関数

GL_STATIC_INL bool PosTestBusy ()
 true if the hardware is currently performing a position/vertex/box test.
GL_STATIC_INL void PosTest_Asynch (v16 x, v16 y, v16 z)
 Starts a position test asynchronously.
GL_STATIC_INL void PosTest (v16 x, v16 y, v16 z)
 Performs a position test.
GL_STATIC_INL int32 PosTestWresult ()
 Returns the distance from the camera of the last position test, pretty darn useful.
GL_STATIC_INL int32 PosTestXresult ()
 Returns absolute X position of the last position test (location if the modelview matrix was identity).
GL_STATIC_INL int32 PosTestYresult ()
 Returns absolute Y position of the last position test (location if the modelview matrix was identity).
GL_STATIC_INL int32 PosTestZresult ()
 Returns absolute Z position of the last position test (location if the modelview matrix was identity).

説明

Position Test Functions.

The position test multiplies a given vector by the position matrix and returns the coords(x,y,z,w). The position test is really quick, about 10x faster than a box test.

関数

GL_STATIC_INL void PosTest ( v16  x,
v16  y,
v16  z 
)

Performs a position test.

引数:
x specifies x offset from the current modelview matrix
y specifies y offset from the current modelview matrix
z specifies z offset from the current modelview matrix
GL_STATIC_INL void PosTest_Asynch ( v16  x,
v16  y,
v16  z 
)

Starts a position test asynchronously.

引数:
x specifies x offset from the current modelview matrix
y specifies y offset from the current modelview matrix
z specifies z offset from the current modelview matrix
GL_STATIC_INL bool PosTestBusy (  ) 

true if the hardware is currently performing a position/vertex/box test.

戻り値:
whether a test is being performed
GL_STATIC_INL int32 PosTestWresult (  ) 

Returns the distance from the camera of the last position test, pretty darn useful.

戻り値:
W magnitude
GL_STATIC_INL int32 PosTestXresult (  ) 

Returns absolute X position of the last position test (location if the modelview matrix was identity).

戻り値:
Absolute X position
GL_STATIC_INL int32 PosTestYresult (  ) 

Returns absolute Y position of the last position test (location if the modelview matrix was identity).

戻り値:
Absolute Y position
GL_STATIC_INL int32 PosTestZresult (  ) 

Returns absolute Z position of the last position test (location if the modelview matrix was identity).

戻り値:
Absolute Z position
 全て クラス ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義
libndsに対してMon Apr 26 23:39:50 2010に生成されました。  doxygen 1.6.3