Data Structures | |
| struct | RwRGBA |
| struct | RwRGBAReal |
Functions | |
| void | RwRGBARealAdd (RwRGBAReal *result, const RwRGBAReal *source1, const RwRGBAReal *source2) |
| void | RwRGBARealSub (RwRGBAReal *result, const RwRGBAReal *source1, const RwRGBAReal *source2) |
| void | RwRGBARealScale (RwRGBAReal *result, const RwRGBAReal *source, RwReal scalar) |
| void | RwRGBAFromRwRGBAReal (RwRGBA *result, const RwRGBAReal *source) |
| void | RwRGBARealFromRwRGBA (RwRGBAReal *result, RwRGBA *source) |
| RwUInt32 | RwRGBAToPixel (RwRGBA *rgbIn, RwInt32 rasterFormat) |
| RwRGBA * | RwRGBASetFromPixel (RwRGBA *rgbOut, RwUInt32 pixelValue, RwInt32 rasterFormat) |
| RwRGBA * | RwRGBAGammaCorrect (RwRGBA *rgb) |
This object represents color and alpha components.
The data is usually stored combined into a single 32-bit integer, with 8 bits per component, although this should not be assumed.
Functions are provided to convert to and from the RwRGBAReal format, which uses individual RwReals to store each component. (Other RenderWare objects usually use the RwRGBA form, but a real number variant is useful for some color processing tasks.)
Further functionality is provided for tasks like gamma correction, storing and retrieving RGBA data directly from a pixel.
|
||||||||||||
|
RwRGBAFromRwRGBAReal is used to convert the specified real color to an RwRGBA. RwRGBA is an integer representation of the color.
|
|
|
RwRGBAGammaCorrect is used to gamma correct an individual RwRGBA pixel according to the current gamma correction value. The gamma value is specified using the function RwImageSetGamma.
|
|
||||||||||||||||
|
RwRGBARealAdd is used to add together the specified real colors. The result of the addition is placed in a third real color.
|
|
||||||||||||
|
RwRGBARealFromRwRGBA is used to convert the specified RwRGBA color to a real color. RwRGBA is an integer representation of the color.
|
|
||||||||||||||||
|
RwRGBARealScale is used to multiply the specified real color by the given scalar. The result is placed in a second real color.
|
|
||||||||||||||||
|
RwRGBARealSub is used to subtract the specified real colors. The second color is subtracted from the first. The result of the subtraction is placed in a third real color.
|
|
||||||||||||||||
|
RwRGBASetFromPixel is used to convert a device dependent pixel value into an RwRGBA value.
|
|
||||||||||||
|
RwRGBAToPixel is used to convert an RwRGBA value into a device dependent pixel value.
|
© 1993-2004 Criterion Software Limited. All rights reserved. Built Thu Feb 12 13:46:51 2004.
Send Feedback