TextureBase:getTexelSize: Difference between revisions

From GiderosMobile
m Text replacement - "<source" to "<syntaxhighlight"
m Text replacement - "</source>" to "</syntaxhighlight>"
 
Line 7: Line 7:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
(number), (number) = TextureBase:getTexelSize()
(number), (number) = TextureBase:getTexelSize()
</source>
</syntaxhighlight>


=== Return values ===
=== Return values ===

Latest revision as of 13: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)