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
|
|
spClearAttribute
Format
#include <sp.h>
void spClearAttribute(Sprite *sp, u32 attributes)
Arguments
- *sp is the pointer to the sprite
- attributes is the bit-wise OR of the sprite attributes to be changed
What This Function Does
It clears the sprite's current attributes that control how the sprite is to be drawn. Following are the possible attributes:
- SP_TRANSPARENT - Use Alpha to blend the sprite with the frame buffer.
- SP_CUTOUT - Use AlphaCompare to ensure that pixels are not drawn with an alpha less than blendcolor.alpha (automatically set to 1). This can also be used in COPYMODE to disable writing 16-bit RGBA texels with the alpha bit off.
- SP_HIDDEN - Don't draw this sprite.
- SP_Z - Use Z-Buffering to determine sprite visibility.
- SP_SCALE - Use sprite scaling factors.
- SP_FASTCOPY - Use COPY mode to draw the sprite into the frame buffer. This runs the fastest, but it does not allow resizing or high quality transparency.
- SP_TEXSHIFT - Shift texture exactly 1/2 texel in both s and t before drawing it. This creates a better anti-aliased edge along transparent texture boundaries when in CUTOUT mode.
- SP_FRACPOS - Use the frac_s and frac_t fields of the sprite structure to fine-position the texture into the drawn pixels. This allows the texture to be moved as little as 1/32 of a texel.
- SP_TEXSHUF - Indicates that the Tile textures have their odd lines pre-shuffled to work around a LoadTextureBlock problem. See the Texture documentation for a description of this problem.
- SP_EXTERN - Force sprite drawing to use existing drawing modes instead of explicitly setting them. The application must be sure to get all of the details exactly correct. The next drawn sprite will assume nothing about the current drawing modes.
See Also
spDraw
spSetAttribute
|
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 January 1998
|
|