CameraTexture

Texture provided by a CameraFeed.

This texture gives access to the camera texture provided by a CameraFeed. Note: Many cameras supply YCbCr images which need to be converted in a shader.

Members

Aliases

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

Functions

getCameraActive
bool getCameraActive()
getCameraFeedId
long getCameraFeedId()
getWhichFeed
CameraServer.FeedImage getWhichFeed()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(CameraTexture other)
opEquals
bool opEquals(typeof(null) n)
setCameraActive
void setCameraActive(bool active)
setCameraFeedId
void setCameraFeedId(long feed_id)
setWhichFeed
void setWhichFeed(long which_feed)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

cameraFeedId
long cameraFeedId [@property getter]
long cameraFeedId [@property setter]

The ID of the CameraFeed for which we want to display the image.

cameraIsActive
bool cameraIsActive [@property getter]
bool cameraIsActive [@property setter]

Convenience property that gives access to the active property of the CameraFeed.

whichFeed
CameraServer.FeedImage whichFeed [@property getter]
long whichFeed [@property setter]

Which image within the CameraFeed we want access to, important if the camera image is split in a Y and CbCr component.

Static functions

_new
CameraTexture _new()

Construct a new instance of CameraTexture. Note: use memnew!CameraTexture 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