Pixel:setTexture

From GiderosMobile
Revision as of 23:33, 3 December 2019 by MoKaLux (talk | contribs)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


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