Pixel:setTexture: Difference between revisions

From GiderosMobile
removed language stuff
m Text replacement - "<source" to "<syntaxhighlight"
Line 5: Line 5:
=== Description ===
=== Description ===
Associates a texture to the pixel.
Associates a texture to the pixel.
<source lang="lua">
<syntaxhighlight lang="lua">
Pixel:setTexture(texture,slot,matrix)
Pixel:setTexture(texture,slot,matrix)
</source>
</source>

Revision as of 13:30, 13 July 2023

Available since: Gideros 2016.12
Class: Pixel

Description

Associates a texture to the pixel. <syntaxhighlight lang="lua"> Pixel:setTexture(texture,slot,matrix) </source>

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