Difference between revisions of "TextureBase"

From GiderosMobile
 
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Supported platforms:''' android, ios, mac, pc<br/>
+
<!-- GIDEROSOBJ:TextureBase -->
 +
'''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 +
'''Inherits from:''' [[Object]]<br/>
 +
 
=== Description ===
 
=== Description ===
<translate><br />
+
TextureBase is the base class for [[Texture]] and [[TexturePack]] classes. It provides a common functionaly to texture related classes.
[[TextureBase]] is the base class for [[Texture]] and [[TexturePack]] classes. It provides a common functionaly to texture related classes.<br />
+
 
<br />
+
*TextureBase.CLAMP = "clamp"
&lt;ul&gt;<br />
+
*TextureBase.REPEAT = "repeat"
&lt;li&gt;TextureBase.CLAMP = &quot;clamp&quot;&lt;/li&gt;<br />
+
 
&lt;li&gt;TextureBase.REPEAT = &quot;repeat&quot;&lt;/li&gt;<br />
 
&lt;/ul&gt;<br />
 
<br /></translate>
 
 
{|-
 
{|-
| style="width: 50%;"|
+
| style="width: 50%; vertical-align:top;"|
 
=== Methods ===
 
=== Methods ===
[[TextureBase:getHeight]] - returns the height of the texture in pixels<br/>
+
[[TextureBase:getHeight]] ''returns the height of the texture in pixels''<br/><!--GIDEROSMTD:TextureBase:getHeight() returns the height of the texture in pixels-->
[[TextureBase:getWidth]] - returns the width of the texture in pixels<br/>
+
[[TextureBase:getSize]] ''returns the size of a texture''<br/><!--GIDEROSMTD:TextureBase:getSize() returns the size of a texture-->
| style="width: 50%;"|
+
[[TextureBase:getTexelSize]] ''returns the size of a texel''<br/><!--GIDEROSMTD:TextureBase:getTexelSize() returns the size of a texel, 1/(gpu texture width), 1/(gpu texture height)-->
 +
[[TextureBase:getWidth]] ''returns the width of the texture in pixels''<br/><!--GIDEROSMTD:TextureBase:getWidth() returns the width of the texture in pixels-->
 +
[[TextureBase:update]] ''changes an existing texture content''<br/><!--GIDEROSMTD:TextureBase:update(pixels,width,height) changes an existing texture content-->
 +
 
 +
| style="width: 50%; vertical-align:top;"|
 +
 
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
[[TextureBase.CLAMP]]<br/>
+
[[TextureBase.CLAMP]]<br/><!--GIDEROSCST:TextureBase.CLAMP clamp-->
[[TextureBase.REPEAT]]<br/>
+
[[TextureBase.REPEAT]]<br/><!--GIDEROSCST:TextureBase.REPEAT repeat-->
[[TextureBase.RGB565]]<br/>
+
[[TextureBase.RGB565]]<br/><!--GIDEROSCST:TextureBase.RGB565 rgb565-->
[[TextureBase.RGB888]]<br/>
+
[[TextureBase.RGB888]]<br/><!--GIDEROSCST:TextureBase.RGB888 rgb888-->
[[TextureBase.RGBA4444]]<br/>
+
[[TextureBase.RGBA4444]]<br/><!--GIDEROSCST:TextureBase.RGBA4444 rgba4444-->
[[TextureBase.RGBA5551]]<br/>
+
[[TextureBase.RGBA5551]]<br/><!--GIDEROSCST:TextureBase.RGBA5551 rgba5551-->
[[TextureBase.RGBA8888]]<br/>
+
[[TextureBase.RGBA8888]]<br/><!--GIDEROSCST:TextureBase.RGBA8888 rgba8888-->
 +
[[TextureBase.Y8]]<br/><!--GIDEROSCST:TextureBase.Y8 y8-->
 +
[[TextureBase.A8]]<br/><!--GIDEROSCST:TextureBase.A8 a8-->
 +
[[TextureBase.YA8]]<br/><!--GIDEROSCST:TextureBase.YA8 ya8-->
 
|}
 
|}
 +
 +
{{GIDEROS IMPORTANT LINKS}}

Latest revision as of 21:21, 5 September 2024

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:getSize returns the size of a texture
TextureBase:getTexelSize returns the size of a texel
TextureBase:getWidth returns the width of the texture in pixels
TextureBase:update changes an existing texture content

Events

Constants

TextureBase.CLAMP
TextureBase.REPEAT
TextureBase.RGB565
TextureBase.RGB888
TextureBase.RGBA4444
TextureBase.RGBA5551
TextureBase.RGBA8888
TextureBase.Y8
TextureBase.A8
TextureBase.YA8