Difference between revisions of "TextureBase"

Line 10: Line 10:
 
&lt;li&gt;TextureBase.REPEAT = &quot;repeat&quot;&lt;/li&gt;<br />
 
&lt;li&gt;TextureBase.REPEAT = &quot;repeat&quot;&lt;/li&gt;<br />
 
&lt;/ul&gt;<br />
 
&lt;/ul&gt;<br />
<br />
+
<br />{|-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{|-
 
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Methods ===
 
=== Methods ===
Line 33: Line 18:
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
[[TextureBase.CLAMP]]
+
[[TextureBase.CLAMP]]<br/>
[[TextureBase.REPEAT]]
+
[[TextureBase.REPEAT]]<br/>
[[TextureBase.RGB565]]
+
[[TextureBase.RGB565]]<br/>
[[TextureBase.RGB888]]
+
[[TextureBase.RGB888]]<br/>
[[TextureBase.RGBA4444]]
+
[[TextureBase.RGBA4444]]<br/>
[[TextureBase.RGBA5551]]
+
[[TextureBase.RGBA5551]]<br/>
[[TextureBase.RGBA8888]]
+
[[TextureBase.RGBA8888]]<br/>
 
|}
 
|}

Revision as of 10:12, 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>

{|- | style="width: 50%;"|

Methods

TextureBase:getHeight - returns the height of the texture in pixels
TextureBase:getWidth - returns the width of the texture in pixels
| style="width: 50%;"|

Events

Constants

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