C# Class SpaceSim.Drawing.RenderUtils

Afficher le fichier Open project: zlynn1990/SpaceSim Class Usage Examples

Méthodes publiques

Свойство Type Description
ScreenArea int
ScreenHeight int
ScreenWidth int

Méthodes publiques

Méthode Description
ComputeBoundingBox ( DVector2 position, RectangleD cameraBounds, double width, double height ) : RectangleF
ComputeEllipseSize ( DVector2 position, RectangleD cameraBounds, double radius ) : RectangleF
DrawLine ( Graphics graphics, RectangleD cameraBounds, DVector2 start, DVector2 end, Color color ) : void
DrawRectangles ( Graphics graphics, List rectangles, Color color ) : void
GetContext ( bool highQuality, Bitmap source ) : Graphics
WorldToScreen ( DVector2 point, RectangleD cameraBounds ) : PointF

Method Details

ComputeBoundingBox() public static méthode

public static ComputeBoundingBox ( DVector2 position, RectangleD cameraBounds, double width, double height ) : RectangleF
position VectorMath.DVector2
cameraBounds VectorMath.RectangleD
width double
height double
Résultat System.Drawing.RectangleF

ComputeEllipseSize() public static méthode

public static ComputeEllipseSize ( DVector2 position, RectangleD cameraBounds, double radius ) : RectangleF
position VectorMath.DVector2
cameraBounds VectorMath.RectangleD
radius double
Résultat System.Drawing.RectangleF

DrawLine() public static méthode

public static DrawLine ( Graphics graphics, RectangleD cameraBounds, DVector2 start, DVector2 end, Color color ) : void
graphics System.Drawing.Graphics
cameraBounds VectorMath.RectangleD
start VectorMath.DVector2
end VectorMath.DVector2
color System.Drawing.Color
Résultat void

DrawRectangles() public static méthode

public static DrawRectangles ( Graphics graphics, List rectangles, Color color ) : void
graphics System.Drawing.Graphics
rectangles List
color System.Drawing.Color
Résultat void

GetContext() public static méthode

public static GetContext ( bool highQuality, Bitmap source ) : Graphics
highQuality bool
source System.Drawing.Bitmap
Résultat System.Drawing.Graphics

WorldToScreen() public static méthode

public static WorldToScreen ( DVector2 point, RectangleD cameraBounds ) : PointF
point VectorMath.DVector2
cameraBounds VectorMath.RectangleD
Résultat System.Drawing.PointF

Property Details

ScreenArea public_oe static_oe property

public static int ScreenArea
Résultat int

ScreenHeight public_oe static_oe property

public static int ScreenHeight
Résultat int

ScreenWidth public_oe static_oe property

public static int ScreenWidth
Résultat int