Difference between revisions of "TextureBase"

From GiderosMobile
Line 15: Line 15:
 
=== Methods ===
 
=== Methods ===
 
[[TextureBase:getHeight]] ''returns the height of the texture in pixels''<br/><!--GIDEROSMTD:TextureBase:getHeight() returns the height of the texture in pixels-->
 
[[TextureBase:getHeight]] ''returns the height of the texture in pixels''<br/><!--GIDEROSMTD:TextureBase:getHeight() returns the height of the texture in pixels-->
 +
[[TextureBase:getSize]] ''returns the size of a texture''<br/><!--GIDEROSMTD:TextureBase:getSize() returns the size of a texture-->
 
[[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: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:getWidth]] ''returns the width of the texture in pixels''<br/><!--GIDEROSMTD:TextureBase:getWidth() returns the width of the texture in pixels-->
  
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 +
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===

Revision as of 08:03, 22 September 2021

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

Events

Constants

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