Documentation
¶
Overview ¶
Package CameraServer provides methods for working with CameraServer object instances.
Index ¶
- func AddFeed(feed [1]gdclass.CameraFeed)
- func Advanced() class
- func Feeds() [][1]gdclass.CameraFeed
- func GetFeed(index int) [1]gdclass.CameraFeed
- func GetFeedCount() int
- func OnCameraFeedAdded(cb func(id int))
- func OnCameraFeedRemoved(cb func(id int))
- func RemoveFeed(feed [1]gdclass.CameraFeed)
- type FeedImage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFeed ¶
func AddFeed(feed [1]gdclass.CameraFeed)
Adds the camera [param feed] to the camera server.
func Advanced ¶
func Advanced() class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
func GetFeed ¶
func GetFeed(index int) [1]gdclass.CameraFeed
Returns the [CameraFeed] corresponding to the camera with the given [param index].
func OnCameraFeedAdded ¶
func OnCameraFeedAdded(cb func(id int))
func OnCameraFeedRemoved ¶
func OnCameraFeedRemoved(cb func(id int))
func RemoveFeed ¶
func RemoveFeed(feed [1]gdclass.CameraFeed)
Removes the specified camera [param feed].
Types ¶
type FeedImage ¶
type FeedImage = gdclass.CameraServerFeedImage //gd:CameraServer.FeedImage
const ( /*The RGBA camera image.*/ FeedRgbaImage FeedImage = 0 /*The [url=https://en.wikipedia.org/wiki/YCbCr]YCbCr[/url] camera image.*/ FeedYcbcrImage FeedImage = 0 /*The Y component camera image.*/ FeedYImage FeedImage = 0 /*The CbCr component camera image.*/ FeedCbcrImage FeedImage = 1 )
Click to show internal directories.
Click to hide internal directories.