Add love.graphics.copyBuffer.

This commit is contained in:
Alex Szpakowski
2021-01-17 14:02:00 -04:00
parent e1f40b433d
commit e2838131f2
12 changed files with 89 additions and 1 deletions
+5
View File
@@ -61,6 +61,11 @@ struct Range
return first <= other.first && last >= other.last;
}
bool intersects(const Range &other)
{
return !(first > other.last || last < other.first);
}
void encapsulate(size_t index)
{
first = std::min(first, index);