ConstantPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
Unrevised from 8.1 to 8.2.
8.1 version

~d~st

Pixels to be painted on a device make a reference to three separate places: the destination, the source and a texture. These pixels are combined to create the actual pixel to be placed into the destination.

Such a combination is defined by a bitwise logical operation, called the paint operation. In Allegro CL, there are 256 possible paint operations that are given numbers from 0 to 255. There are eight possible minterms (of the three places): dst, ds~t, d~st,~dst, d~s~t,~ds~t,~d~st,and ~d~s~t where d is destination, s is source and t is texture (and ~ is the logical not operation). Each minterm may be present or absent from a paint operation.

A source pixel is copied to the corresponding destination pixel whenever the minterm representing the state of that pixel in the source, destination and texture pixmaps is present in the paint operation. (The minterm is "present" if its bit is on in the paint argument.) Thus there are 256 possible operations. Minterms are given the following weights (and to aid programming, named constants set to them):

dst 128 ds~t 64 d~st 32 ~dst 8 d~s~t 16 ~ds~t 4 ~d~st 2 ~d~s~t 1

Copyright (c) 1998-2012, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 8.2. This page was not revised from the 8.1 page.
Created 2010.1.21.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
Unrevised from 8.1 to 8.2.
8.1 version