TextureBase: Difference between revisions

From GiderosMobile
removed language stuff
Line 28: Line 28:
[[TextureBase.RGBA5551]]<br/><!--GIDEROSCST:TextureBase.RGBA5551 rgba5551-->
[[TextureBase.RGBA5551]]<br/><!--GIDEROSCST:TextureBase.RGBA5551 rgba5551-->
[[TextureBase.RGBA8888]]<br/><!--GIDEROSCST:TextureBase.RGBA8888 rgba8888-->
[[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}}
{{GIDEROS IMPORTANT LINKS}}

Revision as of 09:57, 10 September 2021

Supported platforms:
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: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