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





gDPSetBlendColor [macro]

Syntax

#include <ultra64.h>  /* gbi.h */
gDPSetBlendColor(Gfx *gdl, u32 r, u32 g, u32 b, u32 a)
gsDPSetBlendColor(u32 r, u32 g, u32 b, u32 a)

Arguments

  • gdl is the display list pointer.

  • r is the red component of RGBA color (8-bit precision, 0~255).

  • g is the Green component of RGBA color (8-bit precision, 0~255).

  • b is the blue component of RGBA color (8-bit precision, 0~255).

  • a is the alpha component of RGBA color (8-bit precision, 0~255).

Explanation
Sets the RDP's blend color. The blend color register is a general-use color register in the blender (BL). This blend color register can, for example, set the alpha component to give a constant transparency to an object when fog is being used.

For details, see Section 12.7.3, "BL Internal Color Registers," in the N64 Online Programming Manual.

See Also
gDPFillRectangle
gDPSetAlphaCompare
gDPSetCombineMode
gDPSetCycleType
gDPSetRenderMode

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