GXLoadLightObjIndx

C Specification

#include <revolution/gx.h>
void GXLoadLightObjIndx(
u32         lt_obj_indx,
GXLightID   light );

Arguments

lt_obj_indx Index of a light object.
light Light ID. Accepted values are: GX_LIGHT0, GX_LIGHT1, GX_LIGHT2, ... , GX_LIGHT7.

Return Values

None.

Description

This function instructs the graphics processor to fetch the light object at lt_obj_indx from the array where

GXSetArray(GX_LIGHT_ARRAY, ...);

Then it loads the object into the hardware register associated with the light ID. Note: The data flows directly from the array in DRAM to the graphics processor; therefore, the light object data may not be coherent with the CPU cache. 
The application is responsible for storing the light object data from the CPU cache (using DCStoreRange ) before calling the GXLoadLightObjIndx function.

See Also

GXLoadLightObjImm
GXSetChanCtrl

Revision History

8/10/2006 Corrected mistake with enum type.
03/01/2006 Initial version.


CONFIDENTIAL