#include <revolution/gx.h>
void GXLoadLightObjIndx(
u32 lt_obj_indx,
GXLightID light );
lt_obj_indx |
Index of a light object. |
|
Light ID. Accepted values are: GX_LIGHT0, GX_LIGHT1, GX_LIGHT2, ... , GX_LIGHT7. |
None.
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.
GXLoadLightObjImm
GXSetChanCtrl
8/10/2006 Corrected mistake with enum type.
03/01/2006 Initial version.
CONFIDENTIAL