Difference between revisions of "TextureBase"

From GiderosMobile
Line 14: Line 14:
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Methods ===
 
=== Methods ===
[[TextureBase:getHeight]] - returns the height of the texture in pixels<br/>
+
[[TextureBase:getHeight]] {{<translate>returns the height of the texture in pixels</translate>}}<br/>
[[TextureBase:getWidth]] - returns the width of the texture in pixels<br/>
+
[[TextureBase:getWidth]] {{<translate>returns the width of the texture in pixels</translate>}}<br/>
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Events ===
 
=== Events ===

Revision as of 14:17, 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 Template:Returns the height of the texture in pixels
TextureBase:getWidth Template:Returns the width of the texture in pixels

Events

Constants

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