Difference between revisions of "TextureBase"
From GiderosMobile
(added getTexelSize method) |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | |||
<!-- GIDEROSOBJ:TextureBase --> | <!-- GIDEROSOBJ:TextureBase --> | ||
'''<translate>Supported platforms</translate>:''' [[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/> | '''<translate>Supported platforms</translate>:''' [[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/> | ||
Line 6: | Line 5: | ||
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/Object|Object]]<br/> | '''<translate>Inherits from</translate>:''' [[Special:MyLanguage/Object|Object]]<br/> | ||
− | === | + | === Description === |
− | + | TextureBase is the base class for [[Texture]] and [[TexturePack]] classes. It provides a common functionaly to texture related classes. | |
*TextureBase.CLAMP = "clamp" | *TextureBase.CLAMP = "clamp" | ||
Line 16: | Line 15: | ||
=== <translate>Methods</translate> === | === <translate>Methods</translate> === | ||
[[Special:MyLanguage/TextureBase:getHeight|TextureBase:getHeight]] ''<translate>returns the height of the texture in pixels</translate>''<br/><!-- GIDEROSMTD:TextureBase:getHeight() returns the height of the texture in pixels --> | [[Special:MyLanguage/TextureBase:getHeight|TextureBase:getHeight]] ''<translate>returns the height of the texture in pixels</translate>''<br/><!-- GIDEROSMTD:TextureBase:getHeight() returns the height of the texture in pixels --> | ||
+ | [[Special:MyLanguage/TextureBase:getTexelSize|TextureBase:getTexelSize]] ''<translate>returns the size of a texel</translate>''<br/><!-- GIDEROSMTD:TextureBase:getTexelSize() returns the size of a texel, 1/(gpu texture width), 1/(gpu texture height) --> | ||
[[Special:MyLanguage/TextureBase:getWidth|TextureBase:getWidth]] ''<translate>returns the width of the texture in pixels</translate>''<br/><!-- GIDEROSMTD:TextureBase:getWidth() returns the width of the texture in pixels --> | [[Special:MyLanguage/TextureBase:getWidth|TextureBase:getWidth]] ''<translate>returns the width of the texture in pixels</translate>''<br/><!-- GIDEROSMTD:TextureBase:getWidth() returns the width of the texture in pixels --> | ||
Revision as of 01:01, 25 March 2020
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"
MethodsTextureBase:getHeight returns the height of the texture in pixels |
EventsConstantsTextureBase.CLAMP |