gtStateSetOthermode
Composes RDP"othermode" command.
#include "gt.h" void gtStateSetOthermode(Gfx *om, gtStateOthermode_t mode, int data)
Note: Some of these modes are incompatible with the turbo microcode features.
Data: The new data to set the appropriate othermode bits. These macros are the same data macros defined in gbi.h
It composes an RDP 'othermode' command.This library function is used to assemble RDP "othermode" commands for turbo microcode applications.
The gspFast3D microcode presents a more user-friendly "set-and-clear" interface that hides the details of the RDP "othermode" command from the user. This interface is not available with the gspTurbo3D microcode, so this function is necessary to construct that RDP command.
The render mode would usually be set with a macro from gbi.h by using code similar to this:
gDPSetRenderMode(gptr++, G_RM_OPA_SURF, G_RM_OPA_SURF2);
To construct a similar command for the turbo object state, use this code:
gtStateSetOthermode(&(state.sp.rdpOthermode), (G_RM_OPA_SURF | G_RM_OPA_SURF2));