interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / native / omega / allen / SURFACE.md

41 lines · 2652 bytes Raw Blame History Source

Bounded native text surface (L765)

A necessary rendering component for the iMac-first visual alpha, not a full window system, animation, layout engine or display driver. Handwritten Omega; qualified existing font geometry and retained presentation are reused.

Canvas is a fixed884736-byte RGB buffer. Cv fields are width,height, clip-x,clip-y,clip-width,clip-height,initialized,last-advance256.

Invalid public arguments preserve Canvas/Cv; font, mask and pose are scratch for admitted drawing. Global arrays are module-owned, not an untrusted caller mutation interface. Valid font settings and immutable glyph data are required; this component does not promise rollback after arbitrary corruption of those private globals. Maximum span is2304 bytes and positions remain bounded by the qualified maximum glyph advance. No heap, file font or foreign runtime.

Blend each channel using integer (background*(255-alpha)+foreground*alpha)/255, truncated down, from the CURRENT destination pixel. In/Inlen, retained D* text, and offered Outb/Outlen/Err are not renderer scratch. Native tests cover analytic alpha0/128/255 and repeated overlap, an independent crop comparison, negative origins, exact edge/zero clips, oversized/refused arguments and span/glyph parity. Compiled mutants remove the right clip or replace the destination color.

The actual surface-render executable submits BOOT/ASK/RECV through prdo, projects a fixture note into retained presentation, and draws its title/body. Its P6 image is real Omega-produced pixels; reply content is an explicit test fixture, NOT a claimed live-model response. PNG conversion is external lossless format conversion only. Hosted application/boot/device qualification remains open.