|
NAMEAG_BlendFn —
agar pixel blending function
SYNOPSIS#include <agar/core.h> #include <agar/gui.h> DESCRIPTIONTheAG_BlendFn type specifies an arithmetic operation to
use when blending two pixels. The incoming pixel is referred to as the
"source" pixel. The target pixel already in the frame buffer is
referred to as the "destination" pixel.
AG_BlendFn is defined as:
typedef enum ag_blend_func { AG_ALPHA_OVERLAY, /* sA+dA */ AG_ALPHA_SRC, /* sA */ AG_ALPHA_DST, /* dA */ AG_ALPHA_ONE_MINUS_DST, /* 1-dA */ AG_ALPHA_ONE_MINUS_SRC /* 1-sA */ } AG_BlendFn; The blending functions differ in how the weight of the destination pixel (versus the weight of the source pixel) is selected.
SEE ALSOAG_Intro(3), AG_Widget(3), AG_Window(3), glBlendFunc(3)HISTORYTheAG_BlendFn type first appeared in Agar 1.3.
Visit the GSP FreeBSD Man Page Interface. |