TempleOS - Fill Triangle (1EDLCs4fBJc)

Demonstrates building a triangle-fill routine in TempleOS by capturing three mouse-selected points, plotting scanlines row by row, and rendering the upper and lower halves of the shape. Refactors the implementation from floating-point math to fixed-point I64 math, debugs a crash caused by incorrect bit shifting in a Ring-0 environment, and benchmarks both versions to compare execution speed.

Copyright © 2023 - 2026 Serhii Zasenko. All rights reserved