Spout.sender:sendTexture: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2019.5<br/> '''Class:''' Spout<br/> === Description === Publishes one frame to every connected receiver. <syntaxhighlight lang="l..."
 
No edit summary
 
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Available since:''' Gideros 2019.5<br/>
'''Available since:''' Gideros 2018.6.3<br/>
'''Class:''' [[Spout]]<br/>
'''Class:''' [[Spout]]<br/>



Latest revision as of 00:53, 13 November 2026

Available since: Gideros 2018.6.3
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