Difference between revisions of "TextureBase"

From GiderosMobile
Line 7: Line 7:
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate><br />
 
<translate><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 />
+
[[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 />
+
 
&lt;ul&gt;<br />
+
 
&lt;li&gt;TextureBase.CLAMP = &quot;clamp&quot;&lt;/li&gt;<br />
+
TextureBase.CLAMP = "clamp"
&lt;li&gt;TextureBase.REPEAT = &quot;repeat&quot;&lt;/li&gt;<br />
+
 
&lt;/ul&gt;<br />
+
 
<br /></translate>
+
TextureBase.REPEAT = "repeat"
 +
</translate>
 
{|-
 
{|-
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|

Revision as of 15:42, 26 June 2019


Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
Available since: Gideros 2011.6
Inherits from: Object

Description


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


TextureBase.CLAMP = "clamp"


TextureBase.REPEAT = "repeat"

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