MakeRGB15

Creates a 3DO RGB value out of separate red, green, and blue values.

Synopsis

uint32 MakeRGB15 (r, g, b)

Description

This macro creates a 3DO RGB value out of separate red, green, and blue values. The composite RGB value it creates can be written to a bitmap, a CCB's PLUT, or anywhere the default RGB data type is required.

Arguments

r
The red value to be included in the RGB composite. This can be any integer value; the value is coerced by the macro to a uint32 value.
g
The green value to be included in the RGB composite. This can be any integer value; the value is coerced by the macro to a uint32 value.
b
The blue value to be included in the RGB composite. This can be any integer value; the value is coerced by the macro to a uint32 value.
The r, g, and b values must all be in the range 0-31.

Return Value

The macro returns a composite RGB value.

Implementation

Macro implemented in graphics.h V20.

Associated File

graphics.h

See Also

MakeRGB15Pair()