Warning: This site is under construction, most links will be broken.
LightX API -> lxgfx -> mask_a, mask_r, mask_g, mask_b [fields]
Last modified on Thu, 29th Mar 2007 at 01:23 UTC by zippletlxgfx.mask_a, mask_r, mask_g, mask_b: longint;
These fields are bit masks to use to isolate the bits used to hold a specific colour or alpha channel in a pixel. Used with the lxgfx.shift_* fields, you can quickly isolate individual colour channels of a pixel. Note that the mask_a field is undefined when LightX is in 16bpp mode, as the alpha channel is stored seperately.
var
red: byte;
begin
red := (colour and lxgfx.mask_r) shr lxgfx.shift_r;
Class: lxgfx