mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 18:09:10 +00:00
Robert Bragg
1f0826543e
cogl: Adds _cogl_util_point_in_polygon API
This adds a utility function that can determine if a given point intersects an arbitrary polygon, by counting how many edges a "semi-infinite" horizontal ray crosses from that point. The plan is to use this for a software based read-pixel fast path that avoids using the GPU to rasterize journaled primitives and can instead intersect a point being read with quads in the journal to determine the correct color.
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%