Convert triangle rasterization to use barycentric
This commit is contained in:
3 files changed
+73
-206
No files matched your search
+3
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user