spScale.3p
824 Bytes
.TH spScale 3P local "Silicon Graphics, Inc."
.SH NAME
spScale \- Alter the size and shape of the sprite
.SH C SPECIFICATION
.nf
\f3#include <sp.h>
void spScale(Sprite *sp, s32 xscale, s32 yscale)
\fP
.fi
.SH PARAMETERS
.TP 10
.I *sp
pointer to the sprite.
.TP
.I xscale
Horizontal scale factor (> 1.0 enlarges)
.TP
.I yscale
Vertical scale factor (> 1.0 enlarges)
.SH DESCRIPTION
This function expands or contracts each of the sprites dimensions.
Expansion will make the sprite look a little blurry. If you want
the "big pixel" look, you could set the TextureFilter mode to do
point sampling via
.IR gDPSetTextureFilter( gl++, G_TF_POINT ).
It is not recommended to use scale factors much less than 1.0
for textures with very fine details (e.g. text).
.SH "SEE ALSO"
.IR spDraw (3P),
.IR spScale (3P),
.IR spScissor (3P)