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

Borrowed VALID texture view of a single-sample 2D RGBA8 image's base mip. More...

#include <gpu_sokol.h>

Data Fields

sg_view view
int width
int height
rmgui_gpu_src_t src
rmgui_gpu_alpha_t alpha
int linear
int v_up

Detailed Description

Borrowed VALID texture view of a single-sample 2D RGBA8 image's base mip.

width/height must equal the image dimensions. src lies within the picture, x right and y down from picture top. v_up=0 puts picture top at storage row 0; v_up=1 puts it at storage row height-1. UVs are texels / image size; no atlas inset is added. linear selects linear rather than nearest sampling; both clamp to image edges, not src edges, so linear atlas cells can bleed.

Field Documentation

◆ view

sg_view rmgui_gpu_texture_t::view

◆ width

int rmgui_gpu_texture_t::width

◆ height

int rmgui_gpu_texture_t::height

◆ src

rmgui_gpu_src_t rmgui_gpu_texture_t::src

◆ alpha

rmgui_gpu_alpha_t rmgui_gpu_texture_t::alpha

◆ linear

int rmgui_gpu_texture_t::linear

◆ v_up

int rmgui_gpu_texture_t::v_up

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