mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Add love.graphics.copyBuffer.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user