nn::gd::CTR::Light::SetSpotDirection Member Function

Syntax

void SetSpotDirection(
     f32 X,
     f32 Y,
     f32 Z
);

Arguments

Name Description
in X Sets the x-coordinate of the spotlight.
in Y Sets the y-coordinate of the spotlight.
in Z Sets the z-coordinate of the spotlight.

Return Values

None.

Description

Sets the spotlight light direction. SOURCE_TYPE_PUNCTUAL must be specified for the light type to be set using SetLightType. This function is an immediate function. (The immediate function directly generates commands and inserts them into the command buffer.)

The data format inserted into the command buffer is:
0x00000000 (Y << 16) | X
0x00000004 [Reserved]
0x00000008 Z
0x0000000c [Reserved]
The X,Y, and Z components are in a signed 13-bit fixed point value with a 11-bit fractional portion. This function converts from 32-bit to a signed 13-bit fixed point value with a 11-bit fractional portion format.

See Also

Utils::Float32ToFix13Fraction11

Revision History

2011/02/17
Initial version.

CONFIDENTIAL