Shape.fetchTextureRect

Returns a pointer to the Texture Rect. With this you can change the existing Rect without setting a new one. You can e.g. collapse the Rect with this method.

class Shape
final inout pure nothrow
inout(ShortRect*)
fetchTextureRect
()

Examples

Shape s = Shape.make(...);
// A lot of code
s.fetchTextureRect().collapse();

Meta