RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
Loading...
Searching...
No Matches
rmgui_target_composite_args_t Struct Reference

RMGUI_CMD_COMPOSITE uses blit.src/tint, rect/clip and an RGBA or SUBSTREAM source resource. More...

#include <target_composite.h>

Data Fields

rmgui_rect_t mask
rmgui_rect_t shape_rect
int radius
int nearest
uint32_t shape_resource

Detailed Description

RMGUI_CMD_COMPOSITE uses blit.src/tint, rect/clip and an RGBA or SUBSTREAM source resource.

A SUBSTREAM renders once on transparent caller scratch; its pixels are sampled as straight RGBA, not premultiplied layer colors. blit.extra points to this payload. Rounded coverage is applied before optional shape coverage. Nearest uses floor(i*S/D); otherwise filtering is exactly fb.h's alpha-weighted bilinear/area sampling. shape_resource UINT32_MAX means no shape. Shape maps independently over shape_rect.

Field Documentation

◆ mask

rmgui_rect_t rmgui_target_composite_args_t::mask

◆ shape_rect

rmgui_rect_t rmgui_target_composite_args_t::shape_rect

◆ radius

int rmgui_target_composite_args_t::radius

◆ nearest

int rmgui_target_composite_args_t::nearest

◆ shape_resource

uint32_t rmgui_target_composite_args_t::shape_resource

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