TextureBase:getTexelSize

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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)