Difference between revisions of "Pixel:setTexture"

From GiderosMobile
(removed language stuff)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2016.12<br/>
'''<translate>Available since</translate>:''' in development<br/>
+
'''Class:''' [[Pixel]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Pixel|Pixel]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Associate a texture to this pixel</translate>
+
Associates a texture to the pixel.
 
<source lang="lua">
 
<source lang="lua">
Pixel:setTexture(texture,slot,matrix)
+
Pixel:setTexture(texture,slot,matrix)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''texture''': (TextureBase or TexteureRegion) <translate>The texture to associate to this pixel, or nil to deassociate.</translate> <br/>
+
=== Parameters ===
'''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/>
+
'''texture''': (TextureBase or TextureRegion) the texture to associate to the pixel, or nil to deassociate<br/>
'''matrix''': (Matrix) <translate>an optional transform for the texture</translate> '''optional'''<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/>
 +
'''matrix''': (Matrix) an optional transform for the texture '''optional'''<br/>
  
 
{{Pixel}}
 
{{Pixel}}

Revision as of 23:53, 21 October 2021

Available since: Gideros 2016.12
Class: Pixel

Description

Associates a texture to the pixel.

Pixel:setTexture(texture,slot,matrix)

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