Home | History | Annotate | Download | only in referencerenderer

Lines Matching full:edge

57 static inline void initEdgeCCW (EdgeFunction& edge, const HorizontalFill horizontalFill, const VerticalFill verticalFill, const deInt64 x0, const deInt64 y0, const deInt64 x1, const deInt64 y1)
70 edge.a = (y0 - y1);
71 edge.b = (x1 - x0);
72 edge.c = x0*y1 - y0*x1;
73 edge.inclusive = inclusive; //!< \todo [pyry] Swap for CW triangles
76 static inline void reverseEdge (EdgeFunction& edge)
78 edge.a = -edge.a;
79 edge.b = -edge.b;
80 edge.c = -edge.c;
81 edge.inclusive = !edge.inclusive;
84 static inline deInt64 evaluateEdge (const EdgeFunction& edge, const deInt64 x, const deInt64 y)
86 return edge.a*x + edge.b*y + edge.c;
89 static inline bool isInsideCCW (const EdgeFunction& edge, const deInt64 edgeVal)
91 return edge.inclusive ? (edgeVal >= 0) : (edgeVal > 0);
478 // Initialize edge functions.
566 // Edge values
574 // Evaluate edge values
599 // Floating-point edge values for barycentrics etc.
746 // Edge values
754 // Evaluate edge values at sample positions
793 // Floating-point edge values at sample coordinates.
813 // Floating-point edge values at pixel center.
1044 // Edge 0 -> 1 is always along the line and edge 1 -> 2 is in 90 degree angle to the line
1085 // edge has reversed direction