Difference between revisions of "Pixel:setTexture"

From GiderosMobile
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' in development<br/>
+
<languages />
=== Description ===
+
'''<translate>Available since</translate>:''' in development<br/>
Associate a texture to this pixel
+
'''<translate>Class</translate>:''' [[Special:MyLanguage/Pixel|Pixel]]<br/>
 +
=== <translate>Description</translate> ===
 +
<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>
'''texture''': (TextureBase) The texture to associate to this pixel, or nil to deassociate. ''''''<br/>
+
=== <translate>Parameters</translate> ===
'''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/>
+
'''texture''': (TextureBase or TexteureRegion) <translate>The texture to associate to this pixel, or nil to deassociate.</translate> <br/>
'''matrix''': (Matrix) an optional transform for the texture '''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) <translate>an optional transform for the texture</translate> '''optional'''<br/>
 +
 
 +
{{Pixel}}

Revision as of 23:33, 3 December 2019


Available since: in development
Class: Pixel

Description

Associate a texture to this pixel

 Pixel:setTexture(texture,slot,matrix)

Parameters

texture: (TextureBase or TexteureRegion) 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