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

## spScale

Syntax

    #include <sp.h>
    void spScale(Sprite *sp, s32 xscale, s32 yscale)

Arguments

- *sp is the pointer to the sprite
- xscale is the horizontal scale factor (greater than 1.0 enlarges)
- yscale is the vertical scale factor (greater than 1.0 enlarges)

Explanation
It alters the size and shape of the sprite by expanding or contracting each of the sprite's dimensions. Expansion makes the sprite look a little blurry. If you want the "big pixel" look, you could set the TextureFilter mode to do point sampling by using gDPSetTextureFilter(gl++,G_TF_POINT). Nintendo recommends that you not use scale factors much less than 1.0 for textures with very fine details (for example, text).
See Also
spDraw
spScale
spScissor

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 March 1998