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. Note: 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.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
FeedDataType
enum FeedDataType
FeedPosition
enum FeedPosition

Functions

_allocateTexture
void _allocateTexture(long width, long height, long format, long texture_type, long data_type)
_setName
void _setName(String name)
_setPosition
void _setPosition(long position)
_setRgbImg
void _setRgbImg(Image rgb_img)
_setYcbcrImg
void _setYcbcrImg(Image ycbcr_img)
_setYcbcrImgs
void _setYcbcrImgs(Image y_img, Image cbcr_img)
getId
long getId()

Returns the unique ID for this feed.

getName
String getName()

Returns the camera's name.

getPosition
CameraFeed.FeedPosition getPosition()

Returns the position of camera on the device.

getTransform
Transform2D getTransform()
isActive
bool isActive()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(CameraFeed other)
opEquals
bool opEquals(typeof(null) n)
setActive
void setActive(bool active)
setTransform
void setTransform(Transform2D transform)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

feedIsActive
bool feedIsActive [@property getter]
bool feedIsActive [@property setter]

If true, the feed is active.

feedTransform
Transform2D feedTransform [@property getter]
Transform2D feedTransform [@property setter]

The transform applied to the camera's image.

Static functions

_new
CameraFeed _new()

Construct a new instance of CameraFeed. Note: use memnew!CameraFeed instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta