Spout.receiver:bind: Difference between revisions
From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2019.5<br/> '''Class:''' Spout<br/> === Description === Connects the receiver to a sender, and reports the sender's real name and..." |
No edit summary |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros | '''Available since:''' Gideros 2018.6.3<br/> | ||
'''Class:''' [[Spout]]<br/> | '''Class:''' [[Spout]]<br/> | ||
Latest revision as of 00:52, 13 November 2026
Available since: Gideros 2018.6.3
Class: Spout
Description
Connects the receiver to a sender, and reports the sender's real name and size.
(bool), (string), (number), (number) = receiver:bind(name, active)
Connecting to a name that is not running returns false; call it again later. This method re-creates Gideros' internal GL textures, so use it when connecting or switching sender rather than every frame.
Parameters
name: (string) the sender to connect to
active: (boolean) when true, Spout ignores "name" and connects to the sender currently flagged as active on the machine. Pass false to connect to the given name. Optional, default = false
Return values
Returns (boolean) true if the connection succeeded
Returns (string) the name of the sender that was actually connected
Returns (number) the sender width
Returns (number) the sender height