Spout.sender:sendTexture

From GiderosMobile
Revision as of 00:03, 13 November 2026 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2019.5<br/> '''Class:''' Spout<br/> === Description === Publishes one frame to every connected receiver. <syntaxhighlight lang="l...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2019.5
Class: Spout

Description

Publishes one frame to every connected receiver.

(bool) = sender:sendTexture(texture)

The texture is read back to the CPU and written to Spout's shared memory, so the sender size and the texture size should match. The image is flipped vertically on the way out; receivers get it the right way up.

Parameters

texture: (TextureBase) the texture to broadcast, usually a RenderTarget of the sender's size

Return values

Returns (boolean) true if the frame has been published