Difference between revisions of "TextureBase"

(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === <br /> `TextureBase` is the base class for `Texture` and `TexturePack...")
 
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 11: Line 11:
 
&lt;/ul&gt;<br />
 
&lt;/ul&gt;<br />
 
<br />
 
<br />
 +
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 
{|-
 
{|-
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Methods ===
 
=== Methods ===
 +
[[TextureBase:getHeight]] - returns the height of the texture in pixels<br/>
 +
[[TextureBase:getWidth]] - returns the width of the texture in pixels<br/>
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 +
[[TextureBase.CLAMP]]
 +
[[TextureBase.REPEAT]]
 +
[[TextureBase.RGB565]]
 +
[[TextureBase.RGB888]]
 +
[[TextureBase.RGBA4444]]
 +
[[TextureBase.RGBA5551]]
 +
[[TextureBase.RGBA8888]]
 
|}
 
|}

Revision as of 09:58, 23 August 2018

Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6

Description


`TextureBase` is the base class for `Texture` and `TexturePack` classes. It provides a common functionaly to texture related classes.

<ul>
<li>TextureBase.CLAMP = "clamp"</li>
<li>TextureBase.REPEAT = "repeat"</li>
</ul>








Methods

TextureBase:getHeight - returns the height of the texture in pixels
TextureBase:getWidth - returns the width of the texture in pixels

Events

Constants

TextureBase.CLAMP TextureBase.REPEAT TextureBase.RGB565 TextureBase.RGB888 TextureBase.RGBA4444 TextureBase.RGBA5551 TextureBase.RGBA8888