summaryrefslogtreecommitdiff
path: root/clip.c
Commit message (Collapse)AuthorAgeFilesLines
* clip: fix rectclipline.rodri2024-05-031-7/+10
| | | | | mixed up CLIP[TB] and the slope was being computed as an integer division, which caused artifacts.
* clip: avoid division by zero.rodri2024-05-031-2/+2
|
* add a general primitive with support for points, lines and triangles.rodri2024-05-031-0/+220
also got rid of the dependency on OBJ for the entire renderer, instead letting the user load a Model from any given OBJ. this modularity will allow for other formats to be used in the same way, relying on a single, internal representation for the entire pipeline.