Lab 5 check
Run the graphics tests before relying on visual inspection. A framebuffer bug can look like a design mistake, but the tests check mode setup, address calculation, clipping, and dumped frame contents directly.
sh
lcom-ng test graphics
lcom-ng run --headless --dump-frame build/rectangle.ppm -- build/examples/vbe_rectangleDiscussion prompts
- Why is pitch not always
width * bytes_per_pixel? - What changes when you double-buffer?
- Which rendering helpers would you want before starting a game, editor, tracker, or visualizer?
External reading
The LCOM video card chapter, VBE chapter, and reactive applications chapter are useful companions. For deeper reference, read OSDev on VESA video modes, the VBE 2.0 specification, and the XPM overview.