NullCameraSensor

Warning

This documentation is for an implementation of a service. This class is not meant to be used directly; instead use the ICameraSensor service via dependency injection to access this functionality.

Information documented here may not be up to date.

class NullCameraSensor : System.Object, ICameraSensor, ISensor

An implementation of T:Protogame.ICameraSensor which provides no cameras.

readonly Texture2D VideoCaptureFrame
readonly System.Byte[] VideoCaptureUnlockedRGBA
readonly System.Nullable<Int32> VideoCaptureWidth
readonly System.Nullable<Int32> VideoCaptureHeight
ICamera ActiveCamera
public void Render(IGameContext gameContext, IRenderContext renderContext)
Parameters:
  • gameContext (Protogame.IGameContext) –
  • renderContext (Protogame.IRenderContext) –
public void Update(IGameContext gameContext, IUpdateContext updateContext)
Parameters:
  • gameContext (Protogame.IGameContext) –
  • updateContext (Protogame.IUpdateContext) –
public System.Collections.Generic.List<ICamera> GetAvailableCameras()