Difference between revisions of "TextureBase"

From GiderosMobile
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
<translate><br />
 
<translate><br />
[[TextureBase]] is the base class for [[Texture]] and [[TexturePack]] classes. It provides a common functionaly to texture related classes.<br />
+
[[Special:MyLanguage/TextureBase|TextureBase]] is the base class for [[Special:MyLanguage/Texture|Texture]] and [[Special:MyLanguage/TexturePack|TexturePack]] classes. It provides a common functionaly to texture related classes.<br />
 
<br />
 
<br />
 
&lt;ul&gt;<br />
 
&lt;ul&gt;<br />
Line 14: Line 14:
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== Methods ===
 
=== Methods ===
[[TextureBase:getHeight]] ''<translate>returns the height of the texture in pixels</translate>''<br/>
+
[[Special:MyLanguage/TextureBase:getHeight|TextureBase:getHeight]] ''<translate>returns the height of the texture in pixels</translate>''<br/>
[[TextureBase:getWidth]] ''<translate>returns the width of the texture in pixels</translate>''<br/>
+
[[Special:MyLanguage/TextureBase:getWidth|TextureBase:getWidth]] ''<translate>returns the width of the texture in pixels</translate>''<br/>
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
[[TextureBase.CLAMP]]<br/>
+
[[Special:MyLanguage/TextureBase.CLAMP|TextureBase.CLAMP]]<br/>
[[TextureBase.REPEAT]]<br/>
+
[[Special:MyLanguage/TextureBase.REPEAT|TextureBase.REPEAT]]<br/>
[[TextureBase.RGB565]]<br/>
+
[[Special:MyLanguage/TextureBase.RGB565|TextureBase.RGB565]]<br/>
[[TextureBase.RGB888]]<br/>
+
[[Special:MyLanguage/TextureBase.RGB888|TextureBase.RGB888]]<br/>
[[TextureBase.RGBA4444]]<br/>
+
[[Special:MyLanguage/TextureBase.RGBA4444|TextureBase.RGBA4444]]<br/>
[[TextureBase.RGBA5551]]<br/>
+
[[Special:MyLanguage/TextureBase.RGBA5551|TextureBase.RGBA5551]]<br/>
[[TextureBase.RGBA8888]]<br/>
+
[[Special:MyLanguage/TextureBase.RGBA8888|TextureBase.RGBA8888]]<br/>
 
|}
 
|}

Revision as of 16:35, 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