Skip to content

D030CB88

Marcel Härtel edited this page Aug 27, 2023 · 2 revisions

Camera2D Class

A basic Camera2D component to move the view of an editor.

Definition

Namespace: MonoGame.Forms.NET.Components
Assembly: MonoGame.Forms.NET (in MonoGame.Forms.NET.dll) Version: 3.2.0

C#

public class Camera2D : ICamera2D, IGameComponent
Inheritance Object → Camera2D
Implements IGameComponent, ICamera2D

Constructors

Camera2D The basic constructor.

Properties

AbsolutPosition Gets or Sets the absolute Position value of the camera.
CurrentRotation Gets or Sets the Rotation value of the camera.
CurrentZoom Gets or Sets the Zoom value of the camera.
DefaultPosition Gets or Sets the default Position value of the camera.
DefaultRotation Gets or Sets the default Rotation value of the camera.
DefaultZoom Gets or Sets the default Zoom value of the camera.
Position Gets or Sets the Position value of the camera.

Methods

GetAbsolutePosition Gets the absolute position of the camera.
GetRotation  
GetTransform Get the Transformation.
GetZoom  
Initialize Initilizes the camera component.
Move Auxiliary method to move the camera
ResetPosition  
ResetRotation  
ResetZoom  
Rotate  
SetDefaultsFromCurrent Set the default values of the camera (Position, Zoom, Rotation) to the current ones.
Zoom  

See Also

Reference

MonoGame.Forms.NET.Components Namespace

Clone this wiki locally