|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Per-pixel + global alpha blending parameters. More...
#include <ra8_drw.h>
Data Fields | |
| bool | use_alpha_channel |
| CONTROL2.USEACB. | |
| bool | src_factor |
| CONTROL2.BSF (use SRC alpha). | |
| bool | dst_factor |
| CONTROL2.BDF (use DST alpha). | |
| bool | src_invert |
| CONTROL2.BSI. | |
| bool | dst_invert |
| CONTROL2.BDI. | |
| bool | src_factor_alpha |
| CONTROL2.BSFA. | |
| bool | dst_factor_alpha |
| CONTROL2.BDFA. | |
| bool | src_invert_alpha |
| CONTROL2.BSIA. | |
| bool | dst_invert_alpha |
| CONTROL2.BDIA. | |
| bool | use_color2_dst |
| CONTROL2.BC2 (COLOR2 as dst). | |
| uint8_t | global_alpha |
| COLOR1.A (0=fully transparent). | |
Per-pixel + global alpha blending parameters.
Captured in CONTROL2.{BSF,BDF,BSI,BDI,BSFA,BDFA,BSIA,BDIA,USEACB} exactly as documented by HUM Ch 62.2.2 p 3691-3692 and the "Blending" subsection of Ch 62.4.7 p 3729. The standard "source over" combination is BSF=1, BDF=1, BSFA=1, BDFA=1, BDIA=1, USEACB=1.
| bool ra8_drw_blend_t::dst_factor |
CONTROL2.BDF (use DST alpha).
Definition at line 117 of file ra8_drw.h.
Referenced by internal_pack_blend_bits().
| bool ra8_drw_blend_t::dst_factor_alpha |
| bool ra8_drw_blend_t::dst_invert |
| bool ra8_drw_blend_t::dst_invert_alpha |
| uint8_t ra8_drw_blend_t::global_alpha |
COLOR1.A (0=fully transparent).
Definition at line 125 of file ra8_drw.h.
Referenced by ra8_drw_set_blend().
| bool ra8_drw_blend_t::src_factor |
CONTROL2.BSF (use SRC alpha).
Definition at line 116 of file ra8_drw.h.
Referenced by internal_pack_blend_bits().
| bool ra8_drw_blend_t::src_factor_alpha |
| bool ra8_drw_blend_t::src_invert |
| bool ra8_drw_blend_t::src_invert_alpha |
| bool ra8_drw_blend_t::use_alpha_channel |
CONTROL2.USEACB.
Definition at line 115 of file ra8_drw.h.
Referenced by internal_pack_blend_bits().
| bool ra8_drw_blend_t::use_color2_dst |
CONTROL2.BC2 (COLOR2 as dst).
Definition at line 124 of file ra8_drw.h.
Referenced by internal_pack_blend_bits().