Difference between revisions of "TextureBase:getTexelSize"
From GiderosMobile
(Created page with "__NOTOC__ '''<translate>Available since</translate>:''' Gideros 2011.6<br/> '''<translate>Class</translate>:''' TextureBase<br/> === Descr...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | '''Available since:''' Gideros 2011.6<br/> | |
− | ''' | + | '''Class:''' [[TextureBase]]<br/> |
− | ''' | ||
=== Description === | === Description === | ||
Returns the size of a texel that is 1/(gpu texture width), 1/(gpu texture height). | Returns the size of a texel that is 1/(gpu texture width), 1/(gpu texture height). | ||
− | < | + | <syntaxhighlight lang="lua"> |
(number), (number) = TextureBase:getTexelSize() | (number), (number) = TextureBase:getTexelSize() | ||
− | </ | + | </syntaxhighlight> |
=== Return values === | === Return values === |
Latest revision as of 14:33, 13 July 2023
Available since: Gideros 2011.6
Class: TextureBase
Description
Returns the size of a texel that is 1/(gpu texture width), 1/(gpu texture height).
(number), (number) = TextureBase:getTexelSize()
Return values
Returns (number) the width of the texel: 1/(gpu texture width)
Returns (number) the height of the texel: 1/(gpu texture height)