Documentation
¶
Overview ¶
Package CameraFeed provides methods for working with CameraFeed object instances.
Index ¶
- type Advanced
- type Any
- type FeedDataType
- type FeedPosition
- type Instance
- func (self Instance) AsCameraFeed() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) FeedIsActive() bool
- func (self Instance) FeedTransform() Transform2D.OriginXY
- func (self Instance) GetDatatype() gdclass.CameraFeedFeedDataType
- func (self Instance) GetId() int
- func (self Instance) GetName() string
- func (self Instance) GetPosition() gdclass.CameraFeedFeedPosition
- func (self Instance) SetFeedIsActive(value bool)
- func (self Instance) SetFeedTransform(value Transform2D.OriginXY)
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type FeedDataType ¶
type FeedDataType = gdclass.CameraFeedFeedDataType //gd:CameraFeed.FeedDataType
const ( /*No image set for the feed.*/ FeedNoimage FeedDataType = 0 /*Feed supplies RGB images.*/ FeedRgb FeedDataType = 1 /*Feed supplies YCbCr images that need to be converted to RGB.*/ FeedYcbcr FeedDataType = 2 /*Feed supplies separate Y and CbCr images that need to be combined and converted to RGB.*/ FeedYcbcrSep FeedDataType = 3 )
type FeedPosition ¶
type FeedPosition = gdclass.CameraFeedFeedPosition //gd:CameraFeed.FeedPosition
const ( /*Unspecified position.*/ FeedUnspecified FeedPosition = 0 /*Camera is mounted at the front of the device.*/ FeedFront FeedPosition = 1 /*Camera is mounted at the back of the device.*/ FeedBack FeedPosition = 2 )
type Instance ¶
type Instance [1]gdclass.CameraFeed
A camera feed gives you access to a single physical camera attached to your device. When enabled, Godot will start capturing frames from the camera which can then be used. See also [CameraServer]. [b]Note:[/b] Many cameras will return YCbCr images which are split into two textures and need to be combined in a shader. Godot does this automatically for you if you set the environment to show the camera image in the background.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsCameraFeed ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) FeedIsActive ¶
func (Instance) FeedTransform ¶
func (self Instance) FeedTransform() Transform2D.OriginXY
func (Instance) GetDatatype ¶
func (self Instance) GetDatatype() gdclass.CameraFeedFeedDataType
Returns feed image data type.
func (Instance) GetPosition ¶
func (self Instance) GetPosition() gdclass.CameraFeedFeedPosition
Returns the position of camera on the device.
func (Instance) SetFeedIsActive ¶
func (Instance) SetFeedTransform ¶
func (self Instance) SetFeedTransform(value Transform2D.OriginXY)