gDPSetBlendColor [Macro]

Function

gDPSetBlendColor

Sets the blend color

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
Display list pointer.
r
Red component of RGBA color (8-bit precision, 0~255).
g
Green component of RGBA color (8-bit precision, 0~255).
b
Blue component of RGBA color (8-bit precision, 0~255).
a
Alpha component of RGBA color (8-bit precision, 0~255).

Description

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. Alpha component is used as a threshold value that determines to write in the frame buffer.

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

See Also

gDPFillRectangle, gDPSetAlphaCompare, gDPSetCombineMode, gDPSetCycleType, and gDPSetRenderMode

Revision History

02/01/99   Completely rewritten