Function
gSPObjLoadTxSprite
Loads a texture and draws a rotating sprite in a compound process
Syntax
#include <ultra64.h> /* gs2dex.h */
gSPObjLoadTxSprite(Gfx *gdl, uObjTxSprite *txsp)
gsSPObjLoadTxSprite( uObjTxSprite *txsp)
Arguments
Description
Loads a texture and then draws a rotating sprite. This macro performs the successive processes of g*SPObjLoadTxtr and g*SPObjSprite as if they were a single macro. In other words, the results of process (A) below are the same as process (B):
If rotation is not necessary, use g*SPObjLoadTxRect or g*SPObjLoadTxRectR. Since g*SPObjLoadTxRect does not reference the 2D matrix settings, the settings do not affect the drawing results. g*SPObjLoadTxRectR references the 2D matrix settings to change the screen coordinates for drawing.
Note
The uObjTxSprite structure is shown below:
typedef struct {
uObjTxtr txtr;
uObjSprite sprite;
} uObjTxSprite;
The uObjTxSprite structure is a concatenation of the uObjTxtr structure and the uObjSprite structure, so it holds both texture load data and sprite drawing data. For details, see gSPObjLoadTxtr and gSPObjSprite.
See Also
gSPObjLoadTxRect, gSPObjLoadTxRectR, gSPObjLoadTxtr, gSPObjSprite
Revision History
02/01/99 Entirely revised.