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

Rectangle parameters for ra8_drw_fill_rect. More...

#include <ra8_drw.h>

Data Fields

int16_t x
 Top-left X in pixels.
int16_t y
 Top-left Y in pixels.
uint16_t width_px
 Width in pixels.
uint16_t height_px
 Height in pixels.
uint32_t color_argb8888
 0xAARRGGBB fill colour.

Detailed Description

Rectangle parameters for ra8_drw_fill_rect.

Coordinates are framebuffer pixels relative to the framebuffer origin programmed at init time. color_argb8888 is interpreted as 0xAARRGGBB and pushed into the COLOR1 register.

Definition at line 96 of file ra8_drw.h.

Field Documentation

◆ color_argb8888

uint32_t ra8_drw_rect_t::color_argb8888

0xAARRGGBB fill colour.

Definition at line 101 of file ra8_drw.h.

Referenced by ra8_drw_dlist_add_fill(), and ra8_drw_fill_rect().

◆ height_px

uint16_t ra8_drw_rect_t::height_px

Height in pixels.

Definition at line 100 of file ra8_drw.h.

Referenced by priv_program_rect_bbox(), ra8_drw_blit_textured_rect(), ra8_drw_dlist_add_fill(), and ra8_drw_fill_rect().

◆ width_px

uint16_t ra8_drw_rect_t::width_px

◆ x

int16_t ra8_drw_rect_t::x

Top-left X in pixels.

Definition at line 97 of file ra8_drw.h.

Referenced by priv_ra8_drw_internal_rect_off_surface(), and priv_ra8_drw_internal_rect_origin().

◆ y

int16_t ra8_drw_rect_t::y

Top-left Y in pixels.

Definition at line 98 of file ra8_drw.h.

Referenced by priv_ra8_drw_internal_rect_off_surface(), and priv_ra8_drw_internal_rect_origin().


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