ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_drw_blend_t Struct Reference

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).

Detailed Description

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.

Definition at line 114 of file ra8_drw.h.

Field Documentation

◆ dst_factor

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().

◆ dst_factor_alpha

bool ra8_drw_blend_t::dst_factor_alpha

CONTROL2.BDFA.

Definition at line 121 of file ra8_drw.h.

Referenced by internal_pack_blend_bits().

◆ dst_invert

bool ra8_drw_blend_t::dst_invert

CONTROL2.BDI.

Definition at line 119 of file ra8_drw.h.

Referenced by internal_pack_blend_bits().

◆ dst_invert_alpha

bool ra8_drw_blend_t::dst_invert_alpha

CONTROL2.BDIA.

Definition at line 123 of file ra8_drw.h.

Referenced by internal_pack_blend_bits().

◆ global_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().

◆ src_factor

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().

◆ src_factor_alpha

bool ra8_drw_blend_t::src_factor_alpha

CONTROL2.BSFA.

Definition at line 120 of file ra8_drw.h.

Referenced by internal_pack_blend_bits().

◆ src_invert

bool ra8_drw_blend_t::src_invert

CONTROL2.BSI.

Definition at line 118 of file ra8_drw.h.

Referenced by internal_pack_blend_bits().

◆ src_invert_alpha

bool ra8_drw_blend_t::src_invert_alpha

CONTROL2.BSIA.

Definition at line 122 of file ra8_drw.h.

Referenced by internal_pack_blend_bits().

◆ use_alpha_channel

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().

◆ use_color2_dst

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().


The documentation for this struct was generated from the following file: