Difference between revisions of "Pixel:setTexture"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' in development<br/> === Description === Associate a texture to this pixel <source lang="lua"> = Pixel:setTexture(textureslotmatrix,) </source>...") |
|||
Line 4: | Line 4: | ||
Associate a texture to this pixel | Associate a texture to this pixel | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | Pixel:setTexture(texture,slot,matrix) | |
</source> | </source> | ||
− | '''texture | + | '''texture''': (TextureBase) The texture to associate to this pixel, or nil to deassociate. ''''''<br/> |
− | '''slot | + | '''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'''<br/> |
− | '''matrix | + | '''matrix''': (Matrix) an optional transform for the texture '''optional'''<br/> |
Revision as of 10:21, 23 August 2018
Available since: in development
Description
Associate a texture to this pixel
Pixel:setTexture(texture,slot,matrix)
'texture: (TextureBase) The texture to associate to this 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