Difference between revisions of "TextureBase:getTexelSize"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== 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).
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number), (number) = TextureBase:getTexelSize()
 
(number), (number) = TextureBase:getTexelSize()
 
</source>
 
</source>

Revision as of 15:31, 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). <syntaxhighlight lang="lua"> (number), (number) = TextureBase:getTexelSize() </source>

Return values

Returns (number) the width of the texel: 1/(gpu texture width)
Returns (number) the height of the texel: 1/(gpu texture height)