Difference between revisions of "Pixel:setTexture"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' in development<br/>
 
'''Available since:''' in development<br/>
 
=== Description ===
 
=== Description ===
Associate a texture to this pixel
+
<translate>Associate a texture to this pixel</translate>
 
<source lang="lua">
 
<source lang="lua">
 
  Pixel:setTexture(texture,slot,matrix)
 
  Pixel:setTexture(texture,slot,matrix)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''texture''': (TextureBase) The texture to associate to this pixel, or nil to deassociate. <br/>
+
'''texture''': (TextureBase) <translate>The texture to associate to this pixel, or nil to deassociate.</translate> <br/>
'''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/>
+
'''slot''': (number) <translate>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.</translate> '''optional'''<br/>
'''matrix''': (Matrix) an optional transform for the texture '''optional'''<br/>
+
'''matrix''': (Matrix) <translate>an optional transform for the texture</translate> '''optional'''<br/>

Revision as of 13:34, 23 August 2018

Available since: in development

Description

Associate a texture to this pixel

 Pixel:setTexture(texture,slot,matrix)

Parameters

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