RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
Loading...
Searching...
No Matches
target_native_geometry.h File Reference
#include "draw_target.h"

Functions

void rmgui_draw_aa_ellipse (rmgui_fb_t *fb, rmgui_rect_t clip, rmgui_draw_point_t centre, int32_t rx_q16, int32_t ry_q16, rmgui_color_t color, rmgui_draw_mode_t mode)
 Paint the strictly interior samples of an axis-aligned ellipse on fb.
void rmgui_draw_aa_ellipse_to (rmgui_target_t *target, rmgui_rect_t clip, rmgui_draw_point_t centre, int32_t rx_q16, int32_t ry_q16, rmgui_color_t color, rmgui_draw_mode_t mode)
 Paint the same ellipse to CPU, or append AA_ELLIPSE to a RECORD target.

Function Documentation

◆ rmgui_draw_aa_ellipse()

void rmgui_draw_aa_ellipse ( rmgui_fb_t * fb,
rmgui_rect_t clip,
rmgui_draw_point_t centre,
int32_t rx_q16,
int32_t ry_q16,
rmgui_color_t color,
rmgui_draw_mode_t mode )

Paint the strictly interior samples of an axis-aligned ellipse on fb.

Centre and radii are Q16 device pixels, rounded to Q8 halves up; coverage uses draw.h's 16x16 sample centres and OVER/ADD blending. A radius rounding to <= 0, an unsupported mode or an empty clip paints nothing. No allocation.

◆ rmgui_draw_aa_ellipse_to()

void rmgui_draw_aa_ellipse_to ( rmgui_target_t * target,
rmgui_rect_t clip,
rmgui_draw_point_t centre,
int32_t rx_q16,
int32_t ry_q16,
rmgui_color_t color,
rmgui_draw_mode_t mode )

Paint the same ellipse to CPU, or append AA_ELLIPSE to a RECORD target.

Geometry, clipping and blending match rmgui_draw_aa_ellipse. RECORD copies values inline without allocation; capacity/state errors latch on the stream. NULL targets and unsupported modes are no-ops.