Updated: April 19, 2023 |
Types of window transparencies
#include <screen/screen.h>
enum { SCREEN_TRANSPARENCY_SOURCE = 0, SCREEN_TRANSPARENCY_TEST = 1, SCREEN_TRANSPARENCY_SOURCE_COLOR = 2, SCREEN_TRANSPARENCY_SOURCE_OVER = 3, SCREEN_TRANSPARENCY_NONE = 4, SCREEN_TRANSPARENCY_DISCARD = 5, SCREEN_TRANSPARENCY_REVERSED_TEST = 6 };
The replacement is based on a comparison between the source pixel's alpha value and the reference alpha value. The reference alpha value is dependent on the blitter.
When the source color does match the reference color value, the pixels are treated as transparent.
The replacement is based on a comparison between the source pixel's alpha value and the reference alpha value. The reference alpha value is dependent on the blitter.