1 #ifndef edu_jmu_cs_Rasterizer2D_h 2 #define edu_jmu_cs_Rasterizer2D_h 5 #include "FrameBuffer.h" 8 #include "../pa5/Matrix.hpp" 9 #include "../pa5/Vector.hpp" 53 void drawLine(
const Matrix<2, 1>& p,
const Matrix<2, 1>& q,
Definition: FrameBuffer.h:13
void drawQuadrilateral(const Matrix< 2, 4 > &quad, const Color &color)
Definition: Rasterizer2D.cpp:86
static const int SCAN_LINE
Definition: Rasterizer2D.h:25
Definition: Rasterizer2D.h:20
void clear(const Color &color)
Definition: Rasterizer2D.cpp:13
Rasterizer2D(FrameBuffer *fb)
Definition: Rasterizer2D.cpp:7
static const int POINTWISE
Definition: Rasterizer2D.h:30
void drawLine(const Matrix< 2, 1 > &p, const Matrix< 2, 1 > &q, const Color &color)
Definition: Rasterizer2D.cpp:17
void fillQuadrilateral(const Matrix< 2, 4 > &quad, const Color &color)
Definition: Rasterizer2D.cpp:102
void fillTriangle(const Matrix< 2, 3 > &triangle, const Color &color)
Definition: Rasterizer2D.cpp:108
FrameBuffer * fb
Definition: Rasterizer2D.h:132
void pointwiseFillTriangle(const Matrix< 2, 3 > &triangle, const Color &color)
Definition: Rasterizer2D.cpp:167
void pointwiseFillQuadrilateral(const Matrix< 2, 4 > &quad, const Color &color)
Definition: Rasterizer2D.cpp:114
void drawTriangle(const Matrix< 2, 3 > &triangle, const Color &color)
Definition: Rasterizer2D.cpp:94
void drawPoint(int x, int y, const Color &color)
Definition: Rasterizer2D.cpp:76
int fillTechnique
Definition: Rasterizer2D.h:137