Difference between revisions of "Pixel:setTexture"
From GiderosMobile
Line 8: | Line 8: | ||
Pixel:setTexture(texture,slot,matrix) | Pixel:setTexture(texture,slot,matrix) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | '''Please note: slot is only useful in conjonction with Shader''' | ||
=== Parameters === | === Parameters === |
Revision as of 05:36, 9 November 2023
Available since: Gideros 2016.12
Class: Pixel
Description
Associates a texture to the Pixel.
Pixel:setTexture(texture,slot,matrix)
Please note: slot is only useful in conjonction with Shader
Parameters
texture: (TextureBase or TextureRegion) the texture to associate to the pixel, or nil to deassociate
slot: (number) the texture slot that the texture should be associated to. Leave empty or set to 0 for main texture, or if you don't use a specific shader optional
matrix: (Matrix) an optional transform for the texture optional