N64® Functions Menu

al - Audio Library Functions
gDP - DP GBI Macros
gdSP - General GBI Macros
gSP - SP GBI Macros
gt - Turbo Microcode RDP
gu - Graphics Utilities
Math - Math Functions
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive

Nintendo® Confidential

## guSprite2DInit

Syntax

    #include "gu.h"

    void guSprite2DInit(
      uSprite *SpritePointer,
      void *SourceImagePointer,
      void *TlutPointer,
      short Stride,
      short SubImageWidth,
      short SubImageHeight,
      char  SourceImageType,
      char  SourceImageBitSize,
      short ScaleX,
      short ScaleY,
      char  FlipTextureX,
      char  FlipTextureY,
      short SourceImageOffsetS,
      short SourceImageOffsetT,
      short PScreenX,
      short PScreenY);

Arguments
Refer to gspSprite2D for an explanation of the arguments.

Explanation
It initializes a passed-in Sprite structure for subsequent use by the sprite microcode.
Note
Currently guSprite2DInit is a dummy routine that merely copies its parameters into their corresponding location in the passed-in sprite structure. For efficiency reasons, you might want to bypass this function by setting the values directly. However, future releases might do some actual setup work in this function, so for forwards compatibility Nintendo recommends that you call the function.
See Also
gspSprite2D

Nintendo® Confidential Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.
Copyright © 1998
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last Updated April, 1999