Difference between revisions of "Pixel:setTexture"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''<translate>Available since</translate>:''' in development<br/>
 
'''<translate>Available since</translate>:''' in development<br/>
 +
'''<translate>Class</translate>:''' [[Special:MyLanguage/Pixel|Pixel]]<br/>
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate>Associate a texture to this pixel</translate>
 
<translate>Associate a texture to this pixel</translate>

Revision as of 09:29, 24 August 2018

Available since: in development
Class: Pixel

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