Convert triangle rasterization to use barycentric

This commit is contained in:
austin committed 2020-07-01 17:42:50 -07:00
1 parent d0041c77c4
commit 0c5cf83748
3 files changed
+73 -206

No files matched your search

+3 -5
View File
@@ -1,6 +1,7 @@
#ifndef GEOMETRY_H
#include "color.h"
#include "engine.h"
#include "point.h"
#include <cstdint>
#include <vector>
@@ -77,11 +78,8 @@ struct Mesh
// PUBLIC FUNCTIONS
void FillTriangle(
uint32_t *buffer, int width,
float *zbuffer, uint32_t color,
float x0, float y0, float z0,
float x1, float y1, float z1,
float x2, float y2, float z2);
Engine_Buffer &buffer, ColorU32 &color,
Point &p0, Point &p1, Point &p2);
#define GEOMETRY_H