C# 클래스 SpaceSim.Drawing.RenderUtils

파일 보기 프로젝트 열기: zlynn1990/SpaceSim 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ScreenArea int
ScreenHeight int
ScreenWidth int

공개 메소드들

메소드 설명
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

메소드 상세

ComputeBoundingBox() 공개 정적인 메소드

public static ComputeBoundingBox ( DVector2 position, RectangleD cameraBounds, double width, double height ) : RectangleF
position VectorMath.DVector2
cameraBounds VectorMath.RectangleD
width double
height double
리턴 System.Drawing.RectangleF

ComputeEllipseSize() 공개 정적인 메소드

public static ComputeEllipseSize ( DVector2 position, RectangleD cameraBounds, double radius ) : RectangleF
position VectorMath.DVector2
cameraBounds VectorMath.RectangleD
radius double
리턴 System.Drawing.RectangleF

DrawLine() 공개 정적인 메소드

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
리턴 void

DrawRectangles() 공개 정적인 메소드

public static DrawRectangles ( Graphics graphics, List rectangles, Color color ) : void
graphics System.Drawing.Graphics
rectangles List
color System.Drawing.Color
리턴 void

GetContext() 공개 정적인 메소드

public static GetContext ( bool highQuality, Bitmap source ) : Graphics
highQuality bool
source System.Drawing.Bitmap
리턴 System.Drawing.Graphics

WorldToScreen() 공개 정적인 메소드

public static WorldToScreen ( DVector2 point, RectangleD cameraBounds ) : PointF
point VectorMath.DVector2
cameraBounds VectorMath.RectangleD
리턴 System.Drawing.PointF

프로퍼티 상세

ScreenArea 공개적으로 정적으로 프로퍼티

public static int ScreenArea
리턴 int

ScreenHeight 공개적으로 정적으로 프로퍼티

public static int ScreenHeight
리턴 int

ScreenWidth 공개적으로 정적으로 프로퍼티

public static int ScreenWidth
리턴 int