View Class

SFML.Net

View Class
This class defines a view (position, size, etc.) ; you can consider it as a 2D camera
Inheritance Hierarchy
SystemObject  SFMLObjectBase
    SFML.GraphicsView

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public class View : ObjectBase
Public Class View
	Inherits ObjectBase
public ref class View : public ObjectBase
type View =  
    class
        inherit ObjectBase
    end

The View type exposes the following members.

Constructors
  NameDescription
Public methodView
Create a default view (1000x1000)
Public methodView(FloatRect)
Construct the view from a rectangle
Public methodView(View)
Construct the view from another view
Public methodView(Vector2f, Vector2f)
Construct the view from its center and size
Top
Methods
  NameDescription
Protected methodDestroy
Handle the destruction of the object
(Overrides ObjectBaseDestroy(Boolean).)
Public methodDispose
Explicitely dispose the object
(Inherited from ObjectBase.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Dispose the object
(Inherited from ObjectBase.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMove
Move the view
Public methodReset
Rebuild the view from a rectangle
Public methodRotate
Rotate the view
Public methodToString
Provide a string describing the object
(Overrides ObjectToString.)
Public methodZoom
Resize the view rectangle to simulate a zoom / unzoom effect
Top
Properties
  NameDescription
Public propertyCenter
Center of the view
Public propertyCPointer
Access to the internal pointer of the object. For internal use only
(Inherited from ObjectBase.)
Public propertyRotation
Rotation of the view, in degrees
Public propertySize
Half-size of the view
Public propertyViewport
Target viewport of the view, defined as a factor of the size of the target to which the view is applied
Top
Remarks
See also the note on coordinates and undistorted rendering in SFML.Graphics.Transformable.
See Also