SFML.Net
View Class |
This class defines a view (position, size, etc.) ;
you can consider it as a 2D camera

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)

The View type exposes the following members.

Name | Description | |
---|---|---|
![]() | View |
Create a default view (1000x1000)
|
![]() | View(FloatRect) |
Construct the view from a rectangle
|
![]() | View(View) |
Construct the view from another view
|
![]() | View(Vector2f, Vector2f) |
Construct the view from its center and size
|

Name | Description | |
---|---|---|
![]() | Destroy |
Handle the destruction of the object
(Overrides ObjectBaseDestroy(Boolean).) |
![]() | Dispose |
Explicitely dispose the object
(Inherited from ObjectBase.) |
![]() | Equals |
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.) |
![]() | Finalize |
Dispose the object
(Inherited from ObjectBase.) |
![]() | GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() | GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() | MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() | Move |
Move the view
|
![]() | Reset |
Rebuild the view from a rectangle
|
![]() | Rotate |
Rotate the view
|
![]() | ToString |
Provide a string describing the object
(Overrides ObjectToString.) |
![]() | Zoom |
Resize the view rectangle to simulate a zoom / unzoom effect
|

Name | Description | |
---|---|---|
![]() | Center |
Center of the view
|
![]() | CPointer |
Access to the internal pointer of the object.
For internal use only
(Inherited from ObjectBase.) |
![]() | Rotation |
Rotation of the view, in degrees
|
![]() | Size |
Half-size of the view
|
![]() | Viewport |
Target viewport of the view, defined as a factor of the
size of the target to which the view is applied
|

See also the note on coordinates and undistorted rendering in SFML.Graphics.Transformable.
