ICameraSensorΒΆ
-
interface
ICameraSensor
: ISensor A sensor which represents all available cameras on the current device.
-
readonly Texture2D
VideoCaptureFrame
The texture representing what the currently active camera is capturing. This value may be null if no active camera is set, or if the image from the active camera is not ready.
-
readonly System.Byte[]
VideoCaptureUnlockedRGBA
The raw RGBA data from the camera. This data is written to by another thread, which means that it is not atomically correct. The data in this array may be written to as you are reading from it.
-
readonly System.Nullable<Int32>
VideoCaptureWidth
The width of the current texture, or null if no texture is currently available.
-
readonly System.Nullable<Int32>
VideoCaptureHeight
The height of the current texture, or null if no texture is currently available.
-
ICamera
ActiveCamera
The currently active camera. This is initially null, and you need to set this value to one of the cameras returned by M:Protogame.ICameraSensor.GetAvailableCameras.
-
System.Collections.Generic.List<ICamera>
GetAvailableCameras
() Gets all of the available cameras on this device.
Returns:
-
readonly Texture2D