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





gDPSetDepthImage [macro]

Sets the Z buffer area.

Syntax

#include <ultra64.h> /* gbi.h */
gDPSetDepthImage(Gfx *gdl, s32 img)
gsDPSetDepthImage(s32 img)

Arguments

  • gdl is the display list pointer.

  • img is the address of an image (64-byte alignment).

Explanation
Sets the area to be used as the Z buffer.

For details, see Section 12.8.1, "Image Location and Format," in the N64 Online Programming Manual.

Notes
This macro must be used if Z buffering is enabled. Image width (width) and pixel size (siz) do not need to be set when the Z buffer area is secured, because the value set by gDPSetColorImage is used for width and the siz is always G_IM_SIZ_16b (16 bits per cycle).

See Also
gDPSetColorImage
gDPSetTextureImage

Revision History
2/1/99 Completely rewritten.




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-1999
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last Updated April, 1999