test_poly.bas

Small test performing zero-overdraw polygon rendering

Author

Marcel Sondaar

License

Public Domain

Summary
test_poly.basSmall test performing zero-overdraw polygon rendering
Functions
TriangleDraws an opaque, edge-precise, no-overdraw triangle vram - pointer to video memory x1 - first x coordinate y1 - first y coordinate x2 - second x coordinate y2 - second y coordinate x3 - third x coordinate y3 - third y coordinate c - color to render with
Todo’s
hand optimize to assembly

Functions

Triangle

Sub Triangle(vram As Byte Ptr,
x1 As Long,
y1 As Long,
x2 As Long,
y2 As Long,
x3 As Long,
y3 As Long,
as Byte)

Draws an opaque, edge-precise, no-overdraw triangle vram - pointer to video memory x1 - first x coordinate y1 - first y coordinate x2 - second x coordinate y2 - second y coordinate x3 - third x coordinate y3 - third y coordinate c - color to render with

Todo’s

hand optimize to assembly

Sub Triangle(vram As Byte Ptr,
x1 As Long,
y1 As Long,
x2 As Long,
y2 As Long,
x3 As Long,
y3 As Long,
as Byte)
Draws an opaque, edge-precise, no-overdraw triangle vram - pointer to video memory x1 - first x coordinate y1 - first y coordinate x2 - second x coordinate y2 - second y coordinate x3 - third x coordinate y3 - third y coordinate c - color to render with