Defines a rectangular region (or all!) of a game
texture. Texture regions are the fill types for drawable objects.
// Texture regions are the fill types for drawable objects var sprite = new Foundation.Sprite( new Foundation.Rectangle(0, 0, 200, 300), someTexture.getRegion('all') );
This type extends:
equals check is based the referenced texture and bounds
This type does not implement any interfaces (except those in the base).
- Reference to the region's texture object.
- Bounding rectangle which defines the region.
(texture: Texture, bounds: Rectangle)
- Pass reference to a texture, and a rectangle region to target in that texture.
- Note: Regions will usually be created by using a Texture object's