mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
metal: hook up emulated 'fan' mesh draw mode.
This commit is contained in:
@@ -66,6 +66,12 @@ struct Range
|
||||
return !(first > other.last || last < other.first);
|
||||
}
|
||||
|
||||
void intersect(const Range &other)
|
||||
{
|
||||
first = std::max(first, other.first);
|
||||
last = std::min(last, other.last);
|
||||
}
|
||||
|
||||
void encapsulate(size_t index)
|
||||
{
|
||||
first = std::min(first, index);
|
||||
|
||||
Reference in New Issue
Block a user