std1.0.0-beta-7 SafeC docs

std :: gui::gui_fb

Struct std::GuiFbConfig

#include <std/gui/gui_fb.h> source

struct GuiFbConfig {
    &volatile unsigned char base;
    unsigned long pitch;
    int width;
    int height;
    int bpp;
    int redShift;
    int greenShift;
    int blueShift;
}

Fields

§&volatile unsigned char basesource

linear framebuffer memory (physical/virtual base address)

§unsigned long pitchsource

bytes per scanline (may exceed width*bytesPerPixel if padded)

§int widthsource
§int heightsource
§int bppsource

bits per pixel — 32 (xRGB/xBGR) or 16 (RGB565) supported

§int redShiftsource
§int greenShiftsource
§int blueShiftsource

bit position of each channel's LSB (32bpp only; ignored for 16bpp RGB565)