Small test performing zero-overdraw polygon rendering
Marcel Sondaar
Public Domain
test_poly.bas | Small test performing zero-overdraw polygon rendering |
Functions | |
Triangle | 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, c 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
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
Sub Triangle( vram As Byte Ptr, x1 As Long, y1 As Long, x2 As Long, y2 As Long, x3 As Long, y3 As Long, c as Byte )