Skip to content

Lab 5 Check

Run the graphics tests before relying on visual inspection. A framebuffer bug can look like a drawing-design mistake, but the tests can check mode setup, address calculation, clipping, and dumped frame contents directly.

sh
machinelab test graphics
machinelab run --headless --dump-frame build/rectangle.ppm -- build/examples/vbe_rectangle

Discussion Prompts

When reviewing the lab, make sure you can explain why pitch is not always width * bytes_per_pixel, what changes when you double-buffer, and which rendering helpers you would want before starting a game, editor, tracker, or visualizer.

External Reading

The LCOM video card chapter, VBE chapter, and reactive applications chapter are useful companion readings. For deeper reference, read OSDev on VESA video modes, the VBE 2.0 specification, and the XPM overview.

Course/docs licensed CC BY 4.0. Code licensed MIT.