Converts to and from some kind of screen space like Quadratic, Pixel, etc.
See http://deltaengine.net/learn/screenspace
View code on GitHub
Inheritance Hierarchy
DeltaEngine.ScreenSpaces ScreenSpace
DeltaEngine.ScreenSpaces PixelScreenSpace
DeltaEngine.ScreenSpaces QuadraticScreenSpace
DeltaEngine.ScreenSpaces RelativeScreenSpace
Namespace: DeltaEngine.ScreenSpaces
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The ScreenSpace type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ScreenSpace | Initializes a new instance of the ScreenSpace class |
Methods
Name | Description | |
---|---|---|
Dispose | Releases all resources used by the ScreenSpace | |
FromPixelSpace(Rectangle) | ||
FromPixelSpace(Size) | ||
FromPixelSpace(Vector2D) | ||
GetInnerPosition | ||
RaiseViewportSizeChanged | ||
ToPixelSpace(Rectangle) | ||
ToPixelSpace(Size) | ||
ToPixelSpace(Vector2D) | ||
ToPixelSpaceRounded |
The rounded version of ToPixelSpace is used for lines, boxes and fonts where it matters to
actually render at exact pixel positions to get sharp lines, boxes or font rendering.
View code on GitHub | |
Update |
Fields
Name | Description | |
---|---|---|
viewportPixelSize |
Properties
Name | Description | |
---|---|---|
AspectRatio | ||
Bottom | ||
BottomRight | ||
Current | ||
Left | ||
Right | ||
Scene | ||
Top | ||
TopLeft | ||
Viewport |
Events
Name | Description | |
---|---|---|
ViewportSizeChanged |
See Also