Difference between revisions of "TextureRegion"
From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === <br /> The `TextureRegion` class specifies a texture and a rectangula...") |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Supported platforms:''' <br/> | + | '''Supported platforms:''' android, ios, mac, pc<br/> |
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
Line 7: | Line 7: | ||
within a texture atlas which is a large image, which contains many smaller sub-images.<br /> | within a texture atlas which is a large image, which contains many smaller sub-images.<br /> | ||
<br /> | <br /> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
{|- | {|- | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === | ||
+ | [[TextureRegion.new]] - creates a new TextureRegion object<br/> | ||
+ | [[TextureRegion.new]] - <br/> | ||
+ | [[TextureRegion:getRegion]] - returns the coordinates of the region<br/> | ||
+ | [[TextureRegion:getScale]] - returns the scale ratio of the underlying atlas<br/> | ||
+ | [[TextureRegion:setRegion]] - sets the coordinates of the region<br/> | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Events === | === Events === | ||
=== Constants === | === Constants === | ||
|} | |} |
Revision as of 08:57, 23 August 2018
Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6
Description
The `TextureRegion` class specifies a texture and a rectangular region in it. It is used to define independent texture regions
within a texture atlas which is a large image, which contains many smaller sub-images.
MethodsTextureRegion.new - creates a new TextureRegion object |
EventsConstants |