diff options
author | chai <chaifix@163.com> | 2019-12-08 00:23:50 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-12-08 00:23:50 +0800 |
commit | 3df29dc54c509c983dc8a0e23eab4160d48144f2 (patch) | |
tree | d8c5287c9979e731e373e7a1481aadd79d3f071b /src/core/rasterizer.h | |
parent | 8e684dc0c76708e3174f005aebcaabc144b85500 (diff) |
+clipping
Diffstat (limited to 'src/core/rasterizer.h')
-rw-r--r-- | src/core/rasterizer.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/rasterizer.h b/src/core/rasterizer.h index e35b24a..eceb8c7 100644 --- a/src/core/rasterizer.h +++ b/src/core/rasterizer.h @@ -3,6 +3,7 @@ #include "../math/math.h" #include "shader.h" +#include "clip.h" void ssrR_putline(int x0, int y0, int x1, int y1, Color color); @@ -12,6 +13,11 @@ bool ssrR_barycentric(Vec2* A, Vec2* B, Vec2* C, Vec2* p, Vec3* out); /*计算重心 void ssrR_center(Vec2* A, Vec2* B, Vec2* C, Vec2* out); /*获得重心*/ bool ssrR_ispointintriangle(Vec2* A, Vec2* B, Vec2* C, Vec2* p); -void ssrR_triangle(Vec4* CA, Vec4* CB, Vec4* CC, Vert* A, Vert* B, Vert* C, Program* program, UniformCollection* uniforms); /*绘制三角形图元*/ +void ssrR_triangle(Vec4* CA, Vec4* CB, Vec4* CC, + Vert* A, Vert* B, Vert* C, + bool from_reg, + ClippedVert* CVA, ClippedVert* CVB, ClippedVert* CVC, + Program* program, UniformCollection* uniforms +); #endif
\ No newline at end of file |